Liferay 6.2.0-ce-m4

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_CHILD_GROUP_PREFIX
           
static String SCOPE_ID_GROUP_PREFIX
           
static String SCOPE_ID_LAYOUT_PREFIX
           
static String SCOPE_ID_LAYOUT_UUID_PREFIX
           
static String SCOPE_ID_PARENT_GROUP_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, String portletId)
           
static void addSelection(PortletRequest portletRequest, PortletPreferences portletPreferences, String portletId, long assetEntryId, int assetEntryOrder, String assetEntryType)
           
static void addUserAttributes(User user, String[] customUserAttributeNames, AssetEntryQuery assetEntryQuery)
           
static void checkAssetEntries()
           
static List<AssetEntry> getAssetEntries(PortletPreferences preferences, Layout layout, long scopeGroupId, boolean checkPermission)
           
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 Map<Locale,String> getEmailAssetEntryAddedBodyMap(PortletPreferences preferences)
           
static boolean getEmailAssetEntryAddedEnabled(PortletPreferences preferences)
           
static Map<Locale,String> getEmailAssetEntryAddedSubjectMap(PortletPreferences preferences)
           
static String getEmailFromAddress(PortletPreferences preferences, long companyId)
           
static String getEmailFromName(PortletPreferences preferences, long companyId)
           
static long getGroupIdFromScopeId(String scopeId, long siteGroupId, boolean privateLayout)
           
static long[] getGroupIds(PortletPreferences portletPreferences, long scopeGroupId, Layout layout)
           
static long getRecentFolderId(PortletRequest portletRequest, String className)
           
static String getScopeId(Group group, long scopeGroupId)
           
static boolean isScopeIdSelectable(PermissionChecker permissionChecker, String scopeId, long companyGroupId, Layout layout)
           
static boolean isSubscribed(long companyId, long userId, long plid, String portletId)
           
static void notifySubscribers(PortletPreferences preferences, long plid, String portletId, List<AssetEntry> assetEntries)
           
static void removeAndStoreSelection(List<String> assetEntryUuids, PortletPreferences portletPreferences)
           
static void removeRecentFolderId(PortletRequest portletRequest, String className, long classPK)
           
static void subscribe(PermissionChecker permissionChecker, long groupId, long plid, String portletId)
           
static void unsubscribe(PermissionChecker permissionChecker, long plid, String portletId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCOPE_ID_CHILD_GROUP_PREFIX

public static final String SCOPE_ID_CHILD_GROUP_PREFIX
See Also:
Constant Field Values

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

SCOPE_ID_PARENT_GROUP_PREFIX

public static final String SCOPE_ID_PARENT_GROUP_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,
                                String portletId)
                         throws Exception
Throws:
Exception

addSelection

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

addUserAttributes

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

checkAssetEntries

public static void checkAssetEntries()
                              throws Exception
Throws:
Exception

getAssetEntries

public static List<AssetEntry> getAssetEntries(PortletPreferences preferences,
                                               Layout layout,
                                               long scopeGroupId,
                                               boolean checkPermission)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getAssetEntryQuery

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

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)

getEmailAssetEntryAddedBodyMap

public static Map<Locale,String> getEmailAssetEntryAddedBodyMap(PortletPreferences preferences)

getEmailAssetEntryAddedEnabled

public static boolean getEmailAssetEntryAddedEnabled(PortletPreferences preferences)

getEmailAssetEntryAddedSubjectMap

public static Map<Locale,String> getEmailAssetEntryAddedSubjectMap(PortletPreferences preferences)

getEmailFromAddress

public static String getEmailFromAddress(PortletPreferences preferences,
                                         long companyId)
                                  throws SystemException
Throws:
SystemException

getEmailFromName

public static String getEmailFromName(PortletPreferences preferences,
                                      long companyId)
                               throws SystemException
Throws:
SystemException

getGroupIdFromScopeId

public static long getGroupIdFromScopeId(String scopeId,
                                         long siteGroupId,
                                         boolean privateLayout)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getGroupIds

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

getRecentFolderId

public static long getRecentFolderId(PortletRequest portletRequest,
                                     String className)

getScopeId

public static String getScopeId(Group group,
                                long scopeGroupId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

isScopeIdSelectable

public static boolean isScopeIdSelectable(PermissionChecker permissionChecker,
                                          String scopeId,
                                          long companyGroupId,
                                          Layout layout)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

isSubscribed

public static boolean isSubscribed(long companyId,
                                   long userId,
                                   long plid,
                                   String portletId)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

notifySubscribers

public static void notifySubscribers(PortletPreferences preferences,
                                     long plid,
                                     String portletId,
                                     List<AssetEntry> assetEntries)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

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)

subscribe

public static void subscribe(PermissionChecker permissionChecker,
                             long groupId,
                             long plid,
                             String portletId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

unsubscribe

public static void unsubscribe(PermissionChecker permissionChecker,
                               long plid,
                               String portletId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

Liferay 6.2.0-ce-m4