Class AssetEntryLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portlet.asset.service.base.AssetEntryLocalServiceBaseImpl
com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl
All Implemented Interfaces:
com.liferay.asset.kernel.service.AssetEntryLocalService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.asset.kernel.model.AssetEntry>, com.liferay.portal.kernel.service.PersistedModelLocalService

public class AssetEntryLocalServiceImpl extends AssetEntryLocalServiceBaseImpl
Provides the local service for accessing, deleting, updating, and validating asset entries.
Author:
Brian Wing Shun Chan, Bruno Farache, Zsolt Berentey
  • Constructor Details

    • AssetEntryLocalServiceImpl

      public AssetEntryLocalServiceImpl()
  • Method Details

    • deleteEntries

      public void deleteEntries(long companyId, String className) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteEntry

      @SystemEvent(type=1) public com.liferay.asset.kernel.model.AssetEntry deleteEntry(com.liferay.asset.kernel.model.AssetEntry entry) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteEntry

      public com.liferay.asset.kernel.model.AssetEntry deleteEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteEntry

      public com.liferay.asset.kernel.model.AssetEntry deleteEntry(String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteGroupEntries

      public void deleteGroupEntries(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • destroy

      public void destroy()
      Overrides:
      destroy in class AssetEntryLocalServiceBaseImpl
    • fetchEntry

      public com.liferay.asset.kernel.model.AssetEntry fetchEntry(long entryId)
    • fetchEntry

      public com.liferay.asset.kernel.model.AssetEntry fetchEntry(long classNameId, long classPK)
    • fetchEntry

      public com.liferay.asset.kernel.model.AssetEntry fetchEntry(long groupId, String classUuid)
    • fetchEntry

      public com.liferay.asset.kernel.model.AssetEntry fetchEntry(String className, long classPK)
    • getCompanyEntries

      public List<com.liferay.asset.kernel.model.AssetEntry> getCompanyEntries(long companyId, int start, int end)
    • getCompanyEntriesCount

      public int getCompanyEntriesCount(long companyId)
    • getEntries

      public List<com.liferay.asset.kernel.model.AssetEntry> getEntries(com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery)
    • getEntries

      public List<com.liferay.asset.kernel.model.AssetEntry> getEntries(long[] groupIds, long[] classNameIds, long[] classTypeIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator, int start, int end, String orderByCol1, String orderByCol2, String orderByType1, String orderByType2)
    • getEntries

      public List<com.liferay.asset.kernel.model.AssetEntry> getEntries(long[] groupIds, long[] classNameIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator, int start, int end, String orderByCol1, String orderByCol2, String orderByType1, String orderByType2)
    • getEntriesCount

      public int getEntriesCount(com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery)
    • getEntriesCount

      public int getEntriesCount(long[] groupIds, long[] classNameIds, long[] classTypeIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator)
    • getEntriesCount

      public int getEntriesCount(long[] groupIds, long[] classNameIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator)
    • getEntry

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

      public com.liferay.asset.kernel.model.AssetEntry getEntry(long groupId, String classUuid) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getEntry

      public com.liferay.asset.kernel.model.AssetEntry getEntry(String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getEntryPriority

      public double getEntryPriority(long classNameId, long classPK)
    • getEntryPriority

      public double getEntryPriority(String className, long classPK)
    • getGroupEntries

      public List<com.liferay.asset.kernel.model.AssetEntry> getGroupEntries(long groupId)
    • getTopViewedEntries

      public List<com.liferay.asset.kernel.model.AssetEntry> getTopViewedEntries(String className, boolean asc, int start, int end)
    • getTopViewedEntries

      public List<com.liferay.asset.kernel.model.AssetEntry> getTopViewedEntries(String[] className, boolean asc, int start, int end)
    • incrementViewCounter

      public void incrementViewCounter(long userId, com.liferay.asset.kernel.model.AssetEntry assetEntry) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • incrementViewCounter

      @Transactional(propagation=SUPPORTS, readOnly=true) public com.liferay.asset.kernel.model.AssetEntry incrementViewCounter(long companyId, long userId, String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • incrementViewCounter

      @Transactional(enabled=false) public void incrementViewCounter(long companyId, long userId, String className, long classPK, int increment)
    • reindex

      public void reindex(List<com.liferay.asset.kernel.model.AssetEntry> entries) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      public com.liferay.portal.kernel.search.Hits search(long companyId, long[] groupIds, long userId, long[] classNameIds, long classTypeId, String keywords, boolean showNonindexable, int[] statuses, int start, int end, com.liferay.portal.kernel.search.Sort sort)
    • search

      public com.liferay.portal.kernel.search.Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int status, int start, int end)
    • search

      public com.liferay.portal.kernel.search.Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int[] statuses, int start, int end)
    • search

      public com.liferay.portal.kernel.search.Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int[] statuses, int start, int end, com.liferay.portal.kernel.search.Sort sort)
    • search

      public com.liferay.portal.kernel.search.Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, int status, int start, int end)
    • search

      public com.liferay.portal.kernel.search.Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int status, boolean andSearch, int start, int end)
    • search

      public com.liferay.portal.kernel.search.Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int[] statuses, boolean andSearch, int start, int end)
    • search

      public com.liferay.portal.kernel.search.Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, int status, boolean andSearch, int start, int end)
    • search

      public com.liferay.portal.kernel.search.Hits search(long companyId, long[] groupIds, long userId, String className, String keywords, int status, int start, int end)
    • search

      public com.liferay.portal.kernel.search.Hits search(long companyId, long[] groupIds, long userId, String className, String userName, String title, String description, String assetCategoryIds, String assetTagNames, int status, boolean andSearch, int start, int end)
    • searchCount

      public long searchCount(long companyId, long[] groupIds, long userId, long[] classNameIds, long classTypeId, String keywords, boolean showNonindexable, int[] statuses)
    • searchCount

      public long searchCount(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int[] statuses)
    • searchCount

      public long searchCount(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, String assetCategoryIds, String assetTagNames, boolean showInvisible, boolean showNonindexable, int[] statuses, boolean andSearch)
    • searchCount

      public long searchCount(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showInvisible, boolean showNonindexable, int[] statuses, boolean andSearch)
    • searchCount

      public long searchCount(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int[] statuses, boolean andSearch)
    • updateEntry

      public com.liferay.asset.kernel.model.AssetEntry updateEntry(long userId, long groupId, Date createDate, Date modifiedDate, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean listable, boolean visible, Date startDate, Date endDate, Date publishDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, Double priority) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateEntry

      public com.liferay.asset.kernel.model.AssetEntry updateEntry(long userId, long groupId, Date createDate, Date modifiedDate, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean listable, boolean visible, Date startDate, Date endDate, Date publishDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, Double priority, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateEntry

      public com.liferay.asset.kernel.model.AssetEntry updateEntry(long userId, long groupId, String className, long classPK, long[] categoryIds, String[] tagNames) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateEntry

      public com.liferay.asset.kernel.model.AssetEntry updateEntry(String className, long classPK, Date publishDate, Date expirationDate, boolean listable, boolean visible) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateVisible

      public com.liferay.asset.kernel.model.AssetEntry updateVisible(com.liferay.asset.kernel.model.AssetEntry entry, boolean visible) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateVisible

      public com.liferay.asset.kernel.model.AssetEntry updateVisible(String className, long classPK, boolean visible) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • validate

      public void validate(long groupId, String className, long classPK, long classTypePK, long[] categoryIds, String[] tagNames) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • validate

      public void validate(long groupId, String className, long classTypePK, long[] categoryIds, String[] tagNames) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • buildSearchContext

      protected com.liferay.portal.kernel.search.SearchContext buildSearchContext(long companyId, long[] groupIds, long userId, long classTypeId, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int[] statuses, boolean andSearch, int start, int end)
    • buildSearchContext

      protected com.liferay.portal.kernel.search.SearchContext buildSearchContext(long companyId, long[] groupIds, long userId, long classTypeId, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int[] statuses, boolean andSearch, int start, int end, com.liferay.portal.kernel.search.Sort sort)
    • buildSearchContext

      protected com.liferay.portal.kernel.search.SearchContext buildSearchContext(long companyId, long[] groupIds, long userId, long classTypeId, String keywords, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int[] statuses, boolean andSearch, int start, int end)
    • buildSearchContext

      protected com.liferay.portal.kernel.search.SearchContext buildSearchContext(long companyId, long[] groupIds, long userId, long classTypeId, String keywords, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int[] statuses, boolean andSearch, int start, int end, com.liferay.portal.kernel.search.Sort sort)
    • buildSearchContext

      protected com.liferay.portal.kernel.search.SearchContext buildSearchContext(long companyId, long[] groupIds, long userId, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int[] statuses, boolean andSearch, int start, int end)
    • checkCategories

      protected long[] checkCategories(String className, long classPK, long[] categoryIds) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • doSearch

      protected com.liferay.portal.kernel.search.Hits doSearch(long companyId, String className, com.liferay.portal.kernel.search.SearchContext searchContext) throws Exception
      Throws:
      Exception
    • doSearch

      protected com.liferay.portal.kernel.search.Hits doSearch(long[] classNameIds, com.liferay.portal.kernel.search.SearchContext searchContext) throws Exception
      Throws:
      Exception
    • doSearchCount

      protected long doSearchCount(long companyId, String className, com.liferay.portal.kernel.search.SearchContext searchContext) throws Exception
      Throws:
      Exception
    • doSearchCount

      protected long doSearchCount(long[] classNameIds, com.liferay.portal.kernel.search.SearchContext searchContext) throws Exception
      Throws:
      Exception
    • getAssetEntryQuery

      protected com.liferay.asset.kernel.service.persistence.AssetEntryQuery getAssetEntryQuery(long[] groupIds, long[] classNameIds, long[] classTypeIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator, int start, int end, String orderByCol1, String orderByCol2, String orderByType1, String orderByType2)
    • getAssetEntryQuery

      protected com.liferay.asset.kernel.service.persistence.AssetEntryQuery getAssetEntryQuery(long[] groupIds, long[] classNameIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator, int start, int end, String orderByCol1, String orderByCol2, String orderByType1, String orderByType2)
    • getClassNameIds

      protected long[] getClassNameIds(long companyId, String className)
    • getTagIds

      protected long[] getTagIds(long[] groupIds, String tagName)
    • reindex

      protected void reindex(com.liferay.asset.kernel.model.AssetEntry entry) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException