Interface AssetHelper


public interface AssetHelper
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final char[]
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addLayoutTags(javax.servlet.http.HttpServletRequest httpServletRequest, List<com.liferay.asset.kernel.model.AssetTag> tags)
     
    javax.portlet.PortletURL
    getAddPortletURL(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, long groupId, String className, long classTypeId, long[] allAssetCategoryIds, String[] allAssetTagNames, String redirect)
     
    getAddURLPopUp(long groupId, long plid, javax.portlet.PortletURL addPortletURL, boolean addDisplayPageParameter, com.liferay.portal.kernel.model.Layout layout)
     
    List<com.liferay.asset.kernel.model.AssetEntry>
    getAssetEntries(com.liferay.portal.kernel.search.Hits hits)
     
    List<com.liferay.asset.kernel.model.AssetEntry>
    getAssetEntries(com.liferay.portal.search.hits.SearchHits searchHits)
     
    getAssetKeywords(String className, long classPK)
     
    getAssetKeywords(String className, long classPK, Locale locale)
     
    getAssetPublisherAddItemHolders(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, long groupId, long[] classNameIds, long[] classTypeIds, long[] allAssetCategoryIds, String[] allAssetTagNames, String redirect)
     
    default boolean
     
    com.liferay.portal.kernel.search.Hits
    search(com.liferay.portal.kernel.search.SearchContext searchContext, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int start, int end)
     
    com.liferay.portal.search.hits.SearchHits
    search(com.liferay.portal.kernel.search.SearchContext searchContext, List<com.liferay.asset.kernel.service.persistence.AssetEntryQuery> assetEntryQueries, int start, int end)
     
    com.liferay.portal.kernel.search.Hits
    search(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int start, int end)
     
    com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetEntry>
    searchAssetEntries(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, long[] assetCategoryIds, String[] assetTagNames, Map<String,Serializable> attributes, long companyId, String keywords, com.liferay.portal.kernel.model.Layout layout, Locale locale, long scopeGroupId, TimeZone timeZone, long userId, int start, int end)
     
    com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetEntry>
    searchAssetEntries(com.liferay.portal.kernel.search.SearchContext searchContext, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int start, int end)
     
    com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetEntry>
    searchAssetEntries(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int start, int end)
     
    long
    searchCount(com.liferay.portal.kernel.search.SearchContext searchContext, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery)
     
    long
    searchCount(com.liferay.portal.kernel.search.SearchContext searchContext, List<com.liferay.asset.kernel.service.persistence.AssetEntryQuery> assetEntryQueries, int start, int end)
     
  • Field Details

    • ASSET_ENTRY_ABSTRACT_LENGTH

      static final int ASSET_ENTRY_ABSTRACT_LENGTH
      See Also:
    • INVALID_CHARACTERS

      static final char[] INVALID_CHARACTERS
  • Method Details

    • addLayoutTags

      Set<String> addLayoutTags(javax.servlet.http.HttpServletRequest httpServletRequest, List<com.liferay.asset.kernel.model.AssetTag> tags)
    • getAddPortletURL

      javax.portlet.PortletURL getAddPortletURL(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, long groupId, String className, long classTypeId, long[] allAssetCategoryIds, String[] allAssetTagNames, String redirect) throws Exception
      Throws:
      Exception
    • getAddURLPopUp

      String getAddURLPopUp(long groupId, long plid, javax.portlet.PortletURL addPortletURL, boolean addDisplayPageParameter, com.liferay.portal.kernel.model.Layout layout)
    • getAssetEntries

      List<com.liferay.asset.kernel.model.AssetEntry> getAssetEntries(com.liferay.portal.kernel.search.Hits hits)
    • getAssetEntries

      List<com.liferay.asset.kernel.model.AssetEntry> getAssetEntries(com.liferay.portal.search.hits.SearchHits searchHits)
    • getAssetKeywords

      String getAssetKeywords(String className, long classPK)
    • getAssetKeywords

      String getAssetKeywords(String className, long classPK, Locale locale)
    • getAssetPublisherAddItemHolders

      List<AssetPublisherAddItemHolder> getAssetPublisherAddItemHolders(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, long groupId, long[] classNameIds, long[] classTypeIds, long[] allAssetCategoryIds, String[] allAssetTagNames, String redirect) throws Exception
      Throws:
      Exception
    • isValidWord

      default boolean isValidWord(String word)
    • search

      com.liferay.portal.kernel.search.Hits search(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int start, int end) throws Exception
      Throws:
      Exception
    • search

      com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int start, int end) throws Exception
      Throws:
      Exception
    • search

      com.liferay.portal.search.hits.SearchHits search(com.liferay.portal.kernel.search.SearchContext searchContext, List<com.liferay.asset.kernel.service.persistence.AssetEntryQuery> assetEntryQueries, int start, int end) throws Exception
      Throws:
      Exception
    • searchAssetEntries

      com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetEntry> searchAssetEntries(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, long[] assetCategoryIds, String[] assetTagNames, Map<String,Serializable> attributes, long companyId, String keywords, com.liferay.portal.kernel.model.Layout layout, Locale locale, long scopeGroupId, TimeZone timeZone, long userId, int start, int end) throws Exception
      Throws:
      Exception
    • searchAssetEntries

      com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetEntry> searchAssetEntries(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int start, int end) throws Exception
      Throws:
      Exception
    • searchAssetEntries

      com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetEntry> searchAssetEntries(com.liferay.portal.kernel.search.SearchContext searchContext, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int start, int end) throws Exception
      Throws:
      Exception
    • searchCount

      long searchCount(com.liferay.portal.kernel.search.SearchContext searchContext, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery) throws Exception
      Throws:
      Exception
    • searchCount

      long searchCount(com.liferay.portal.kernel.search.SearchContext searchContext, List<com.liferay.asset.kernel.service.persistence.AssetEntryQuery> assetEntryQueries, int start, int end) throws Exception
      Throws:
      Exception