com.liferay.portlet.assetpublisher.util
Class AssetPublisherUtil

java.lang.Object
  extended by com.liferay.portlet.assetpublisher.util.AssetPublisherUtil

public class AssetPublisherUtil
extends java.lang.Object

View Source

Author:
Raymond Augé

Constructor Summary
AssetPublisherUtil()
           
 
Method Summary
static void addAndStoreSelection(javax.portlet.ActionRequest actionRequest, java.lang.String className, long classPK, int assetEntryOrder)
           
static void addRecentFolderId(javax.portlet.PortletRequest portletRequest, java.lang.String className, long classPK)
           
static void addSelection(javax.portlet.ActionRequest actionRequest, javax.portlet.PortletPreferences preferences)
           
static void addSelection(java.lang.String assetEntryType, long assetEntryId, int assetEntryOrder, javax.portlet.PortletPreferences preferences)
           
static com.liferay.portlet.asset.service.persistence.AssetEntryQuery getAssetEntryQuery(javax.portlet.PortletPreferences preferences, long scopeGroupId)
           
static java.lang.String[] getAssetTagNames(javax.portlet.PortletPreferences preferences, long scopeGroupId)
           
static long[] getClassNameIds(javax.portlet.PortletPreferences preferences, long[] availableClassNameIds)
           
static long[] getGroupIds(javax.portlet.PortletPreferences preferences, long scopeGroupId, com.liferay.portal.model.Layout layout)
           
static long getRecentFolderId(javax.portlet.PortletRequest portletRequest, java.lang.String className)
           
static void removeAndStoreSelection(java.util.List<java.lang.Long> assetEntryIds, javax.portlet.PortletPreferences preferences)
           
static void removeRecentFolderId(javax.portlet.PortletRequest portletRequest, java.lang.String className, long classPK)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetPublisherUtil

public AssetPublisherUtil()
Method Detail

addAndStoreSelection

public static void addAndStoreSelection(javax.portlet.ActionRequest actionRequest,
                                        java.lang.String className,
                                        long classPK,
                                        int assetEntryOrder)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

addRecentFolderId

public static void addRecentFolderId(javax.portlet.PortletRequest portletRequest,
                                     java.lang.String className,
                                     long classPK)

addSelection

public static void addSelection(javax.portlet.ActionRequest actionRequest,
                                javax.portlet.PortletPreferences preferences)
                         throws java.lang.Exception
Throws:
java.lang.Exception

addSelection

public static void addSelection(java.lang.String assetEntryType,
                                long assetEntryId,
                                int assetEntryOrder,
                                javax.portlet.PortletPreferences preferences)
                         throws java.lang.Exception
Throws:
java.lang.Exception

getAssetEntryQuery

public static com.liferay.portlet.asset.service.persistence.AssetEntryQuery getAssetEntryQuery(javax.portlet.PortletPreferences preferences,
                                                                                               long scopeGroupId)
                                                                                        throws java.lang.Exception
Throws:
java.lang.Exception

getAssetTagNames

public static java.lang.String[] getAssetTagNames(javax.portlet.PortletPreferences preferences,
                                                  long scopeGroupId)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

getClassNameIds

public static long[] getClassNameIds(javax.portlet.PortletPreferences preferences,
                                     long[] availableClassNameIds)

getGroupIds

public static long[] getGroupIds(javax.portlet.PortletPreferences preferences,
                                 long scopeGroupId,
                                 com.liferay.portal.model.Layout layout)

getRecentFolderId

public static long getRecentFolderId(javax.portlet.PortletRequest portletRequest,
                                     java.lang.String className)

removeAndStoreSelection

public static void removeAndStoreSelection(java.util.List<java.lang.Long> assetEntryIds,
                                           javax.portlet.PortletPreferences preferences)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

removeRecentFolderId

public static void removeRecentFolderId(javax.portlet.PortletRequest portletRequest,
                                        java.lang.String className,
                                        long classPK)