lumis.service.autoadministration
Class AutoAdministrationValidatorUtil

Package class diagram package AutoAdministrationValidatorUtil
java.lang.Object
  extended by lumis.service.autoadministration.AutoAdministrationValidatorUtil

public class AutoAdministrationValidatorUtil
extends Object

Utility class to make validations.

Since:
7.0.0

Constructor Summary
AutoAdministrationValidatorUtil()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoAdministrationValidatorUtil

public AutoAdministrationValidatorUtil()
Method Detail

hasPermissionToEditContent

public static boolean hasPermissionToEditContent(SessionConfig sessionConfig,
                                                 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 verifies ServiceInstancePermissions.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 Collection<String> getAllowedServiceInstances(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


Lumisportal  7.0.0.121130 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.