Package lumis.service.autoadministration
Class AutoAdministrationValidatorUtil
- java.lang.Object
-
- lumis.service.autoadministration.AutoAdministrationValidatorUtil
-
public class AutoAdministrationValidatorUtil extends java.lang.Object
Utility class to make validations.- Since:
- 7.0.0
- Version:
- $Revision: 15056 $ $Date: 2012-11-29 18:51:41 -0200 (Thu, 29 Nov 2012) $
-
-
Constructor Summary
Constructors Constructor Description AutoAdministrationValidatorUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>
getAllowedServiceInstances(java.lang.String autoAdminChannelId)
Returns a collection of allowed service instances for the current user.static boolean
hasPermissionToEditContent(SessionConfig sessionConfig, java.lang.String itemId, ITransaction transaction)
Returns true if the current user has permission to edit the content, otherwise false.
-
-
-
Method Detail
-
hasPermissionToEditContent
public static boolean hasPermissionToEditContent(SessionConfig sessionConfig, java.lang.String itemId, ITransaction transaction) throws PortalObjectNotFoundException, PortalException, ManagerException
Returns true if the current user has permission to edit the content, otherwise false. The permissions to edit content verifiesServiceInstancePermissions.EDIT_SERVICE_INSTANCE_CONTENT
permission and workflow permissions on given content.- Parameters:
sessionConfig
- user information.itemId
- the itemId from the content.transaction
- persistence transaction.- Returns:
- true if the current user has permission to edit the content, otherwise false.
- Throws:
PortalException
ManagerException
PortalObjectNotFoundException
- Since:
- 7.0.0
-
getAllowedServiceInstances
public java.util.Collection<java.lang.String> getAllowedServiceInstances(java.lang.String autoAdminChannelId) throws ManagerException, PortalException
Returns a collection of allowed service instances for the current user.- Parameters:
autoAdminChannelId
- channel id defined as root of auto administration service instance.- Returns:
- a collection of allowed service instances for the current user.
- Throws:
ManagerException
PortalException
- Since:
- 7.0.0
-
-