com.liferay.portlet.assetpublisher.util
Class AssetPublisherImpl
java.lang.Object
com.liferay.portlet.assetpublisher.util.AssetPublisherImpl
- All Implemented Interfaces:
- AssetPublisher
public class AssetPublisherImpl
- extends Object
- implements AssetPublisher
Method Summary |
void |
addAndStoreSelection(PortletRequest portletRequest,
String className,
long classPK,
int assetEntryOrder)
|
void |
addRecentFolderId(PortletRequest portletRequest,
String className,
long classPK)
|
void |
addSelection(PortletRequest portletRequest,
PortletPreferences portletPreferences,
String portletId)
|
void |
addSelection(ThemeDisplay themeDisplay,
PortletPreferences portletPreferences,
String portletId,
long assetEntryId,
int assetEntryOrder,
String assetEntryType)
|
void |
addUserAttributes(User user,
String[] customUserAttributeNames,
AssetEntryQuery assetEntryQuery)
|
void |
checkAssetEntries()
|
long[] |
getAssetCategoryIds(PortletPreferences portletPreferences)
|
List<AssetEntry> |
getAssetEntries(PortletPreferences portletPreferences,
Layout layout,
long scopeGroupId,
int max,
boolean checkPermission)
|
List<AssetEntry> |
getAssetEntries(PortletRequest portletRequest,
PortletPreferences portletPreferences,
PermissionChecker permissionChecker,
long[] groupIds,
long[] allCategoryIds,
String[] assetEntryXmls,
String[] allTagNames,
boolean deleteMissingAssetEntries,
boolean checkPermission)
|
List<AssetEntry> |
getAssetEntries(PortletRequest portletRequest,
PortletPreferences portletPreferences,
PermissionChecker permissionChecker,
long[] groupIds,
String[] assetEntryXmls,
boolean deleteMissingAssetEntries,
boolean checkPermission)
|
AssetEntryQuery |
getAssetEntryQuery(PortletPreferences portletPreferences,
long[] scopeGroupIds)
|
String[] |
getAssetTagNames(PortletPreferences portletPreferences,
long scopeGroupId)
|
String |
getClassName(AssetRendererFactory assetRendererFactory)
|
long[] |
getClassNameIds(PortletPreferences portletPreferences,
long[] availableClassNameIds)
|
Long[] |
getClassTypeIds(PortletPreferences portletPreferences,
String className,
Long[] availableClassTypeIds)
|
Map<Locale,String> |
getEmailAssetEntryAddedBodyMap(PortletPreferences portletPreferences)
|
boolean |
getEmailAssetEntryAddedEnabled(PortletPreferences portletPreferences)
|
Map<Locale,String> |
getEmailAssetEntryAddedSubjectMap(PortletPreferences portletPreferences)
|
String |
getEmailFromAddress(PortletPreferences portletPreferences,
long companyId)
|
String |
getEmailFromName(PortletPreferences portletPreferences,
long companyId)
|
long |
getGroupIdFromScopeId(String scopeId,
long siteGroupId,
boolean privateLayout)
|
long[] |
getGroupIds(PortletPreferences portletPreferences,
long scopeGroupId,
Layout layout)
|
long |
getRecentFolderId(PortletRequest portletRequest,
String className)
|
String |
getScopeId(Group group,
long scopeGroupId)
|
long |
getSubscriptionClassPK(long plid,
String portletId)
|
boolean |
isScopeIdSelectable(PermissionChecker permissionChecker,
String scopeId,
long companyGroupId,
Layout layout)
|
boolean |
isSubscribed(long companyId,
long userId,
long plid,
String portletId)
|
void |
notifySubscribers(PortletPreferences portletPreferences,
long plid,
String portletId,
List<AssetEntry> assetEntries)
|
void |
processAssetEntryQuery(User user,
PortletPreferences portletPreferences,
AssetEntryQuery assetEntryQuery)
|
void |
registerAssetQueryProcessor(String assetQueryProcessorClassName,
AssetEntryQueryProcessor assetQueryProcessor)
|
void |
removeAndStoreSelection(List<String> assetEntryUuids,
PortletPreferences portletPreferences)
|
void |
removeRecentFolderId(PortletRequest portletRequest,
String className,
long classPK)
|
void |
subscribe(PermissionChecker permissionChecker,
long groupId,
long plid,
String portletId)
|
void |
unregisterAssetQueryProcessor(String assetQueryProcessorClassName)
|
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 |
AssetPublisherImpl
public AssetPublisherImpl()
addAndStoreSelection
public void addAndStoreSelection(PortletRequest portletRequest,
String className,
long classPK,
int assetEntryOrder)
throws Exception
- Specified by:
addAndStoreSelection
in interface AssetPublisher
- Throws:
Exception
addRecentFolderId
public void addRecentFolderId(PortletRequest portletRequest,
String className,
long classPK)
- Specified by:
addRecentFolderId
in interface AssetPublisher
addSelection
public void addSelection(PortletRequest portletRequest,
PortletPreferences portletPreferences,
String portletId)
throws Exception
- Specified by:
addSelection
in interface AssetPublisher
- Throws:
Exception
addSelection
public void addSelection(ThemeDisplay themeDisplay,
PortletPreferences portletPreferences,
String portletId,
long assetEntryId,
int assetEntryOrder,
String assetEntryType)
throws Exception
- Specified by:
addSelection
in interface AssetPublisher
- Throws:
Exception
addUserAttributes
public void addUserAttributes(User user,
String[] customUserAttributeNames,
AssetEntryQuery assetEntryQuery)
throws Exception
- Specified by:
addUserAttributes
in interface AssetPublisher
- Throws:
Exception
checkAssetEntries
public void checkAssetEntries()
throws Exception
- Specified by:
checkAssetEntries
in interface AssetPublisher
- Throws:
Exception
getAssetCategoryIds
public long[] getAssetCategoryIds(PortletPreferences portletPreferences)
throws Exception
- Specified by:
getAssetCategoryIds
in interface AssetPublisher
- Throws:
Exception
getAssetEntries
public List<AssetEntry> getAssetEntries(PortletPreferences portletPreferences,
Layout layout,
long scopeGroupId,
int max,
boolean checkPermission)
throws PortalException,
SystemException
- Specified by:
getAssetEntries
in interface AssetPublisher
- Throws:
PortalException
SystemException
getAssetEntries
public List<AssetEntry> getAssetEntries(PortletRequest portletRequest,
PortletPreferences portletPreferences,
PermissionChecker permissionChecker,
long[] groupIds,
long[] allCategoryIds,
String[] assetEntryXmls,
String[] allTagNames,
boolean deleteMissingAssetEntries,
boolean checkPermission)
throws Exception
- Specified by:
getAssetEntries
in interface AssetPublisher
- Throws:
Exception
getAssetEntries
public List<AssetEntry> getAssetEntries(PortletRequest portletRequest,
PortletPreferences portletPreferences,
PermissionChecker permissionChecker,
long[] groupIds,
String[] assetEntryXmls,
boolean deleteMissingAssetEntries,
boolean checkPermission)
throws Exception
- Specified by:
getAssetEntries
in interface AssetPublisher
- Throws:
Exception
getAssetEntryQuery
public AssetEntryQuery getAssetEntryQuery(PortletPreferences portletPreferences,
long[] scopeGroupIds)
throws PortalException,
SystemException
- Specified by:
getAssetEntryQuery
in interface AssetPublisher
- Throws:
PortalException
SystemException
getAssetTagNames
public String[] getAssetTagNames(PortletPreferences portletPreferences,
long scopeGroupId)
throws Exception
- Specified by:
getAssetTagNames
in interface AssetPublisher
- Throws:
Exception
getClassName
public String getClassName(AssetRendererFactory assetRendererFactory)
- Specified by:
getClassName
in interface AssetPublisher
getClassNameIds
public long[] getClassNameIds(PortletPreferences portletPreferences,
long[] availableClassNameIds)
- Specified by:
getClassNameIds
in interface AssetPublisher
getClassTypeIds
public Long[] getClassTypeIds(PortletPreferences portletPreferences,
String className,
Long[] availableClassTypeIds)
- Specified by:
getClassTypeIds
in interface AssetPublisher
getEmailAssetEntryAddedBodyMap
public Map<Locale,String> getEmailAssetEntryAddedBodyMap(PortletPreferences portletPreferences)
- Specified by:
getEmailAssetEntryAddedBodyMap
in interface AssetPublisher
getEmailAssetEntryAddedEnabled
public boolean getEmailAssetEntryAddedEnabled(PortletPreferences portletPreferences)
- Specified by:
getEmailAssetEntryAddedEnabled
in interface AssetPublisher
getEmailAssetEntryAddedSubjectMap
public Map<Locale,String> getEmailAssetEntryAddedSubjectMap(PortletPreferences portletPreferences)
- Specified by:
getEmailAssetEntryAddedSubjectMap
in interface AssetPublisher
getEmailFromAddress
public String getEmailFromAddress(PortletPreferences portletPreferences,
long companyId)
throws SystemException
- Specified by:
getEmailFromAddress
in interface AssetPublisher
- Throws:
SystemException
getEmailFromName
public String getEmailFromName(PortletPreferences portletPreferences,
long companyId)
throws SystemException
- Specified by:
getEmailFromName
in interface AssetPublisher
- Throws:
SystemException
getGroupIdFromScopeId
public long getGroupIdFromScopeId(String scopeId,
long siteGroupId,
boolean privateLayout)
throws PortalException,
SystemException
- Specified by:
getGroupIdFromScopeId
in interface AssetPublisher
- Throws:
PortalException
SystemException
getGroupIds
public long[] getGroupIds(PortletPreferences portletPreferences,
long scopeGroupId,
Layout layout)
- Specified by:
getGroupIds
in interface AssetPublisher
getRecentFolderId
public long getRecentFolderId(PortletRequest portletRequest,
String className)
- Specified by:
getRecentFolderId
in interface AssetPublisher
getScopeId
public String getScopeId(Group group,
long scopeGroupId)
throws PortalException,
SystemException
- Specified by:
getScopeId
in interface AssetPublisher
- Throws:
PortalException
SystemException
getSubscriptionClassPK
public long getSubscriptionClassPK(long plid,
String portletId)
throws PortalException,
SystemException
- Specified by:
getSubscriptionClassPK
in interface AssetPublisher
- Throws:
PortalException
SystemException
isScopeIdSelectable
public boolean isScopeIdSelectable(PermissionChecker permissionChecker,
String scopeId,
long companyGroupId,
Layout layout)
throws PortalException,
SystemException
- Specified by:
isScopeIdSelectable
in interface AssetPublisher
- Throws:
PortalException
SystemException
isSubscribed
public boolean isSubscribed(long companyId,
long userId,
long plid,
String portletId)
throws PortalException,
SystemException
- Specified by:
isSubscribed
in interface AssetPublisher
- Throws:
PortalException
SystemException
notifySubscribers
public void notifySubscribers(PortletPreferences portletPreferences,
long plid,
String portletId,
List<AssetEntry> assetEntries)
throws PortalException,
SystemException
- Specified by:
notifySubscribers
in interface AssetPublisher
- Throws:
PortalException
SystemException
processAssetEntryQuery
public void processAssetEntryQuery(User user,
PortletPreferences portletPreferences,
AssetEntryQuery assetEntryQuery)
throws Exception
- Specified by:
processAssetEntryQuery
in interface AssetPublisher
- Throws:
Exception
registerAssetQueryProcessor
public void registerAssetQueryProcessor(String assetQueryProcessorClassName,
AssetEntryQueryProcessor assetQueryProcessor)
- Specified by:
registerAssetQueryProcessor
in interface AssetPublisher
removeAndStoreSelection
public void removeAndStoreSelection(List<String> assetEntryUuids,
PortletPreferences portletPreferences)
throws Exception
- Specified by:
removeAndStoreSelection
in interface AssetPublisher
- Throws:
Exception
removeRecentFolderId
public void removeRecentFolderId(PortletRequest portletRequest,
String className,
long classPK)
- Specified by:
removeRecentFolderId
in interface AssetPublisher
subscribe
public void subscribe(PermissionChecker permissionChecker,
long groupId,
long plid,
String portletId)
throws PortalException,
SystemException
- Specified by:
subscribe
in interface AssetPublisher
- Throws:
PortalException
SystemException
unregisterAssetQueryProcessor
public void unregisterAssetQueryProcessor(String assetQueryProcessorClassName)
- Specified by:
unregisterAssetQueryProcessor
in interface AssetPublisher
unsubscribe
public void unsubscribe(PermissionChecker permissionChecker,
long plid,
String portletId)
throws PortalException,
SystemException
- Specified by:
unsubscribe
in interface AssetPublisher
- Throws:
PortalException
SystemException