com.liferay.portlet.assetpublisher.util
Class AssetPublisherUtil
java.lang.Object
com.liferay.portlet.assetpublisher.util.AssetPublisherUtil
public class AssetPublisherUtil
- extends Object
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(ThemeDisplay themeDisplay,
PortletPreferences portletPreferences,
String portletId,
long assetEntryId,
int assetEntryOrder,
String assetEntryType)
|
static void |
addUserAttributes(User user,
String[] customUserAttributeNames,
AssetEntryQuery assetEntryQuery)
|
static void |
checkAssetEntries()
|
static long[] |
getAssetCategoryIds(PortletPreferences portletPreferences)
|
static List<AssetEntry> |
getAssetEntries(PortletPreferences portletPreferences,
Layout layout,
long scopeGroupId,
int max,
boolean checkPermission)
|
static List<AssetEntry> |
getAssetEntries(PortletRequest portletRequest,
PortletPreferences portletPreferences,
PermissionChecker permissionChecker,
long[] groupIds,
long[] assetCategoryIds,
String[] assetEntryXmls,
String[] assetTagNames,
boolean deleteMissingAssetEntries,
boolean checkPermission)
|
static List<AssetEntry> |
getAssetEntries(PortletRequest portletRequest,
PortletPreferences portletPreferences,
PermissionChecker permissionChecker,
long[] groupIds,
String[] assetEntryXmls,
boolean deleteMissingAssetEntries,
boolean checkPermission)
|
static AssetEntryQuery |
getAssetEntryQuery(PortletPreferences portletPreferences,
long[] scopeGroupIds)
|
static AssetPublisher |
getAssetPublisher()
|
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 portletPreferences)
|
static boolean |
getEmailAssetEntryAddedEnabled(PortletPreferences portletPreferences)
|
static Map<Locale,String> |
getEmailAssetEntryAddedSubjectMap(PortletPreferences portletPreferences)
|
static String |
getEmailFromAddress(PortletPreferences portletPreferences,
long companyId)
|
static String |
getEmailFromName(PortletPreferences portletPreferences,
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 long |
getSubscriptionClassPK(long plid,
String portletId)
|
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 portletPreferences,
long plid,
String portletId,
List<AssetEntry> assetEntries)
|
static void |
processAssetEntryQuery(User user,
PortletPreferences portletPreferences,
AssetEntryQuery assetEntryQuery)
|
static void |
registerAssetQueryProcessor(String name,
AssetEntryQueryProcessor assetQueryProcessor)
|
static void |
removeAndStoreSelection(List<String> assetEntryUuids,
PortletPreferences portletPreferences)
|
static void |
removeRecentFolderId(PortletRequest portletRequest,
String className,
long classPK)
|
void |
setAssetPublisher(AssetPublisher assetPublisher)
|
static void |
subscribe(PermissionChecker permissionChecker,
long groupId,
long plid,
String portletId)
|
static void |
unregisterAssetQueryProcessor(String assetQueryProcessorClassName)
|
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 |
AssetPublisherUtil
public AssetPublisherUtil()
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(ThemeDisplay themeDisplay,
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
getAssetCategoryIds
public static long[] getAssetCategoryIds(PortletPreferences portletPreferences)
throws Exception
- Throws:
Exception
getAssetEntries
public static List<AssetEntry> getAssetEntries(PortletPreferences portletPreferences,
Layout layout,
long scopeGroupId,
int max,
boolean checkPermission)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getAssetEntries
public static List<AssetEntry> getAssetEntries(PortletRequest portletRequest,
PortletPreferences portletPreferences,
PermissionChecker permissionChecker,
long[] groupIds,
long[] assetCategoryIds,
String[] assetEntryXmls,
String[] assetTagNames,
boolean deleteMissingAssetEntries,
boolean checkPermission)
throws Exception
- Throws:
Exception
getAssetEntries
public static List<AssetEntry> getAssetEntries(PortletRequest portletRequest,
PortletPreferences portletPreferences,
PermissionChecker permissionChecker,
long[] groupIds,
String[] assetEntryXmls,
boolean deleteMissingAssetEntries,
boolean checkPermission)
throws Exception
- Throws:
Exception
getAssetEntryQuery
public static AssetEntryQuery getAssetEntryQuery(PortletPreferences portletPreferences,
long[] scopeGroupIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getAssetPublisher
public static AssetPublisher getAssetPublisher()
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 portletPreferences)
getEmailAssetEntryAddedEnabled
public static boolean getEmailAssetEntryAddedEnabled(PortletPreferences portletPreferences)
getEmailAssetEntryAddedSubjectMap
public static Map<Locale,String> getEmailAssetEntryAddedSubjectMap(PortletPreferences portletPreferences)
getEmailFromAddress
public static String getEmailFromAddress(PortletPreferences portletPreferences,
long companyId)
throws SystemException
- Throws:
SystemException
getEmailFromName
public static String getEmailFromName(PortletPreferences portletPreferences,
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
getSubscriptionClassPK
public static long getSubscriptionClassPK(long plid,
String portletId)
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 portletPreferences,
long plid,
String portletId,
List<AssetEntry> assetEntries)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
processAssetEntryQuery
public static void processAssetEntryQuery(User user,
PortletPreferences portletPreferences,
AssetEntryQuery assetEntryQuery)
throws Exception
- Throws:
Exception
registerAssetQueryProcessor
public static void registerAssetQueryProcessor(String name,
AssetEntryQueryProcessor assetQueryProcessor)
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
unregisterAssetQueryProcessor
public static void unregisterAssetQueryProcessor(String assetQueryProcessorClassName)
unsubscribe
public static void unsubscribe(PermissionChecker permissionChecker,
long plid,
String portletId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setAssetPublisher
public void setAssetPublisher(AssetPublisher assetPublisher)