com.liferay.portlet.asset.service.impl
Class AssetEntryServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.base.PrincipalBean
      extended by com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
          extended by com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl
All Implemented Interfaces:
com.liferay.portlet.asset.service.AssetEntryService

public class AssetEntryServiceImpl
extends AssetEntryServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan, Jorge Ferrer, Bruno Farache

Field Summary
 
Fields inherited from class com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryPropertyFinder, assetCategoryPropertyLocalService, assetCategoryPropertyPersistence, assetCategoryPropertyService, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagPropertyFinder, assetTagPropertyKeyFinder, assetTagPropertyLocalService, assetTagPropertyPersistence, assetTagPropertyService, assetTagService, assetTagStatsLocalService, assetTagStatsPersistence, assetVocabularyLocalService, assetVocabularyPersistence, assetVocabularyService, blogsEntryFinder, blogsEntryLocalService, blogsEntryPersistence, blogsEntryService, bookmarksEntryFinder, bookmarksEntryLocalService, bookmarksEntryPersistence, bookmarksEntryService, companyLocalService, companyPersistence, companyService, counterLocalService, counterService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, dlFileEntryService, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlFolderService, groupFinder, groupLocalService, groupPersistence, groupService, journalArticleFinder, journalArticleLocalService, journalArticlePersistence, journalArticleResourceLocalService, journalArticleResourcePersistence, journalArticleService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService, wikiPageFinder, wikiPageLocalService, wikiPagePersistence, wikiPageResourceLocalService, wikiPageResourcePersistence, wikiPageService
 
Fields inherited from class com.liferay.portal.service.base.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
AssetEntryServiceImpl()
           
 
Method Summary
 void deleteEntry(long entryId)
           
protected  java.lang.String exportToRSS(java.lang.String name, java.lang.String description, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String tagURL, java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
           
protected  long[] filterCategoryIds(long[] categoryIds)
           
protected  void filterQuery(com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
           
protected  long[] filterTagIds(long[] tagIds)
           
 java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(long companyId, int start, int end)
           
 int getCompanyEntriesCount(long companyId)
           
 java.lang.String getCompanyEntriesRSS(long companyId, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String tagURL)
           
 com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(long companyId, int start, int end, java.lang.String languageId)
           
 java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
           
 int getEntriesCount(com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
           
 java.lang.String getEntriesRSS(com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String tagURL)
           
 com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
           
 com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(java.lang.String className, long classPK)
           
 com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(long companyId, java.lang.String portletId, java.lang.String keywords, java.lang.String languageId, int start, int end)
           
 int searchEntryDisplaysCount(long companyId, java.lang.String portletId, java.lang.String keywords, java.lang.String languageId)
           
 com.liferay.portlet.asset.model.AssetEntry updateEntry(long groupId, java.lang.String className, long classPK, long[] categoryIds, java.lang.String[] tagNames, boolean visible, java.util.Date startDate, java.util.Date endDate, java.util.Date publishDate, java.util.Date expirationDate, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String summary, java.lang.String url, int height, int width, java.lang.Integer priority, boolean sync)
           
 
Methods inherited from class com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryPropertyFinder, getAssetCategoryPropertyLocalService, getAssetCategoryPropertyPersistence, getAssetCategoryPropertyService, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagPropertyFinder, getAssetTagPropertyKeyFinder, getAssetTagPropertyLocalService, getAssetTagPropertyPersistence, getAssetTagPropertyService, getAssetTagService, getAssetTagStatsLocalService, getAssetTagStatsPersistence, getAssetVocabularyLocalService, getAssetVocabularyPersistence, getAssetVocabularyService, getBlogsEntryFinder, getBlogsEntryLocalService, getBlogsEntryPersistence, getBlogsEntryService, getBookmarksEntryFinder, getBookmarksEntryLocalService, getBookmarksEntryPersistence, getBookmarksEntryService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getCounterService, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getDLFileEntryService, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getJournalArticleFinder, getJournalArticleLocalService, getJournalArticlePersistence, getJournalArticleResourceLocalService, getJournalArticleResourcePersistence, getJournalArticleService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWikiPageFinder, getWikiPageLocalService, getWikiPagePersistence, getWikiPageResourceLocalService, getWikiPageResourcePersistence, getWikiPageService, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryPropertyFinder, setAssetCategoryPropertyLocalService, setAssetCategoryPropertyPersistence, setAssetCategoryPropertyService, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagPropertyFinder, setAssetTagPropertyKeyFinder, setAssetTagPropertyLocalService, setAssetTagPropertyPersistence, setAssetTagPropertyService, setAssetTagService, setAssetTagStatsLocalService, setAssetTagStatsPersistence, setAssetVocabularyLocalService, setAssetVocabularyPersistence, setAssetVocabularyService, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setBlogsEntryService, setBookmarksEntryFinder, setBookmarksEntryLocalService, setBookmarksEntryPersistence, setBookmarksEntryService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setCounterService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryPersistence, setDLFileEntryService, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setJournalArticleFinder, setJournalArticleLocalService, setJournalArticlePersistence, setJournalArticleResourceLocalService, setJournalArticleResourcePersistence, setJournalArticleService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWikiPageFinder, setWikiPageLocalService, setWikiPagePersistence, setWikiPageResourceLocalService, setWikiPageResourcePersistence, setWikiPageService
 
Methods inherited from class com.liferay.portal.service.base.PrincipalBean
getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetEntryServiceImpl

public AssetEntryServiceImpl()
Method Detail

deleteEntry

public void deleteEntry(long entryId)
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getCompanyEntries

public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(long companyId,
                                                                                    int start,
                                                                                    int end)
                                                                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getCompanyEntriesCount

public int getCompanyEntriesCount(long companyId)
                           throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getCompanyEntriesRSS

public java.lang.String getCompanyEntriesRSS(long companyId,
                                             int max,
                                             java.lang.String type,
                                             double version,
                                             java.lang.String displayStyle,
                                             java.lang.String feedURL,
                                             java.lang.String tagURL)
                                      throws com.liferay.portal.kernel.exception.PortalException,
                                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getCompanyEntryDisplays

public com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(long companyId,
                                                                                   int start,
                                                                                   int end,
                                                                                   java.lang.String languageId)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getEntries

public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
                                                                      throws com.liferay.portal.kernel.exception.PortalException,
                                                                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getEntriesCount

public int getEntriesCount(com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getEntriesRSS

public java.lang.String getEntriesRSS(com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery,
                                      java.lang.String type,
                                      double version,
                                      java.lang.String displayStyle,
                                      java.lang.String feedURL,
                                      java.lang.String tagURL)
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getEntry

public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
                                                    throws com.liferay.portal.kernel.exception.PortalException,
                                                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

incrementViewCounter

public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(java.lang.String className,
                                                                       long classPK)
                                                                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

searchEntryDisplays

public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(long companyId,
                                                                               java.lang.String portletId,
                                                                               java.lang.String keywords,
                                                                               java.lang.String languageId,
                                                                               int start,
                                                                               int end)
                                                                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

searchEntryDisplaysCount

public int searchEntryDisplaysCount(long companyId,
                                    java.lang.String portletId,
                                    java.lang.String keywords,
                                    java.lang.String languageId)
                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateEntry

public com.liferay.portlet.asset.model.AssetEntry updateEntry(long groupId,
                                                              java.lang.String className,
                                                              long classPK,
                                                              long[] categoryIds,
                                                              java.lang.String[] tagNames,
                                                              boolean visible,
                                                              java.util.Date startDate,
                                                              java.util.Date endDate,
                                                              java.util.Date publishDate,
                                                              java.util.Date expirationDate,
                                                              java.lang.String mimeType,
                                                              java.lang.String title,
                                                              java.lang.String description,
                                                              java.lang.String summary,
                                                              java.lang.String url,
                                                              int height,
                                                              int width,
                                                              java.lang.Integer priority,
                                                              boolean sync)
                                                       throws com.liferay.portal.kernel.exception.PortalException,
                                                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

exportToRSS

protected java.lang.String exportToRSS(java.lang.String name,
                                       java.lang.String description,
                                       java.lang.String type,
                                       double version,
                                       java.lang.String displayStyle,
                                       java.lang.String feedURL,
                                       java.lang.String tagURL,
                                       java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
                                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

filterCategoryIds

protected long[] filterCategoryIds(long[] categoryIds)
                            throws com.liferay.portal.kernel.exception.PortalException,
                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

filterQuery

protected void filterQuery(com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

filterTagIds

protected long[] filterTagIds(long[] tagIds)
                       throws com.liferay.portal.kernel.exception.PortalException,
                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException