Liferay 6.1.2-ce-ga3

com.liferay.portlet.assetpublisher.util
Class AssetPublisherUtil

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

public class AssetPublisherUtil
extends Object


Field Summary
static String SCOPE_ID_GROUP_PREFIX
           
static String SCOPE_ID_LAYOUT_PREFIX
           
static String SCOPE_ID_LAYOUT_UUID_PREFIX
           
 
Constructor Summary
AssetPublisherUtil()
           
 
Method Summary
static void addAndStoreSelection(PortletRequest portletRequest, String className, long classPK, int assetEntryOrder)
           
static void addRecentFolderId(PortletRequest portletRequest, String className, long classPK)
           
static void addSelection(PortletRequest portletRequest, PortletPreferences portletPreferences)
           
static void addSelection(String assetEntryType, long assetEntryId, int assetEntryOrder, PortletPreferences portletPreferences)
           
static void addUserAttributes(User user, String[] customUserAttributeNames, AssetEntryQuery assetEntryQuery)
           
static AssetEntryQuery getAssetEntryQuery(PortletPreferences portletPreferences, long[] scopeGroupIds)
           
static String[] getAssetTagNames(PortletPreferences portletPreferences, long scopeGroupId)
           
static String getClassName(AssetRendererFactory assetRendererFactory)
           
static long[] getClassNameIds(PortletPreferences portletPreferences, long[] availableClassNameIds)
           
static Long[] getClassTypeIds(PortletPreferences portletPreferences, String className, Long[] availableClassTypeIds)
           
static long[] getGroupIds(PortletPreferences portletPreferences, long scopeGroupId, Layout layout)
           
static long getRecentFolderId(PortletRequest portletRequest, String className)
           
static void removeAndStoreSelection(List<String> assetEntryUuids, PortletPreferences portletPreferences)
           
static void removeRecentFolderId(PortletRequest portletRequest, String className, long classPK)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCOPE_ID_GROUP_PREFIX

public static final String SCOPE_ID_GROUP_PREFIX
See Also:
Constant Field Values

SCOPE_ID_LAYOUT_PREFIX

public static final String SCOPE_ID_LAYOUT_PREFIX
See Also:
Constant Field Values

SCOPE_ID_LAYOUT_UUID_PREFIX

public static final String SCOPE_ID_LAYOUT_UUID_PREFIX
See Also:
Constant Field Values
Constructor Detail

AssetPublisherUtil

public AssetPublisherUtil()
Method Detail

addAndStoreSelection

public static void addAndStoreSelection(PortletRequest portletRequest,
                                        String className,
                                        long classPK,
                                        int assetEntryOrder)
                                 throws Exception
Throws:
Exception

addRecentFolderId

public static void addRecentFolderId(PortletRequest portletRequest,
                                     String className,
                                     long classPK)

addSelection

public static void addSelection(PortletRequest portletRequest,
                                PortletPreferences portletPreferences)
                         throws Exception
Throws:
Exception

addSelection

public static void addSelection(String assetEntryType,
                                long assetEntryId,
                                int assetEntryOrder,
                                PortletPreferences portletPreferences)
                         throws Exception
Throws:
Exception

addUserAttributes

public static void addUserAttributes(User user,
                                     String[] customUserAttributeNames,
                                     AssetEntryQuery assetEntryQuery)
                              throws Exception
Throws:
Exception

getAssetEntryQuery

public static AssetEntryQuery getAssetEntryQuery(PortletPreferences portletPreferences,
                                                 long[] scopeGroupIds)
                                          throws Exception
Throws:
Exception

getAssetTagNames

public static String[] getAssetTagNames(PortletPreferences portletPreferences,
                                        long scopeGroupId)
                                 throws Exception
Throws:
Exception

getClassName

public static String getClassName(AssetRendererFactory assetRendererFactory)

getClassNameIds

public static long[] getClassNameIds(PortletPreferences portletPreferences,
                                     long[] availableClassNameIds)

getClassTypeIds

public static Long[] getClassTypeIds(PortletPreferences portletPreferences,
                                     String className,
                                     Long[] availableClassTypeIds)

getGroupIds

public static long[] getGroupIds(PortletPreferences portletPreferences,
                                 long scopeGroupId,
                                 Layout layout)

getRecentFolderId

public static long getRecentFolderId(PortletRequest portletRequest,
                                     String className)

removeAndStoreSelection

public static void removeAndStoreSelection(List<String> assetEntryUuids,
                                           PortletPreferences portletPreferences)
                                    throws Exception
Throws:
Exception

removeRecentFolderId

public static void removeRecentFolderId(PortletRequest portletRequest,
                                        String className,
                                        long classPK)

Liferay 6.1.2-ce-ga3