public class AutoAdministrationValidatorUtil extends Object
Constructor and Description |
---|
AutoAdministrationValidatorUtil() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getAllowedServiceInstances(String autoAdminChannelId)
Returns a collection of allowed service instances for the current user.
|
static boolean |
hasPermissionToEditContent(SessionConfig sessionConfig,
String itemId,
ITransaction transaction)
Returns true if the current user has permission to edit the content, otherwise false.
|
public static boolean hasPermissionToEditContent(SessionConfig sessionConfig, String itemId, ITransaction transaction) throws PortalObjectNotFoundException, PortalException, ManagerException
ServiceInstancePermissions.EDIT_SERVICE_INSTANCE_CONTENT
permission and workflow permissions on given content.sessionConfig
- user information.itemId
- the itemId from the content.transaction
- persistence transaction.PortalException
ManagerException
PortalObjectNotFoundException
public Collection<String> getAllowedServiceInstances(String autoAdminChannelId) throws ManagerException, PortalException
autoAdminChannelId
- channel id defined as root of auto administration service instance.ManagerException
PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.