Package org.exoplatform.processes.Utils
Class ProcessesUtils
java.lang.Object
org.exoplatform.processes.Utils.ProcessesUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <S,D> void broadcast(org.exoplatform.services.listener.ListenerService listenerService, String eventName, S source, D data) static org.exoplatform.social.core.space.model.SpacegetProjectParentSpace(Long projectId) static org.exoplatform.social.core.space.model.SpacegetProjectParentSpace(org.exoplatform.task.service.ProjectService projectService, org.exoplatform.social.core.space.spi.SpaceService spaceService, Long projectId) static StringgetUserNameByIdentityId(org.exoplatform.social.core.manager.IdentityManager identityManager, long identityId) static booleanisProcessesAdministrator(org.exoplatform.portal.config.UserACL userACL, org.exoplatform.services.security.Identity aclIdentity) Checks whether a user administers every process: a member of /platform/processes or a platform administrator creates, edits and deletes any process, and manages any request
-
Field Details
-
PROCESSES_GROUP
- See Also:
-
MANAGER_MEMBERSHIP_TYPE
The membership type of a space's administrators: in a process's managing space, they are the process managers- See Also:
-
MEMBER_MEMBERSHIP_TYPE
The membership type of a space's members- See Also:
-
-
Constructor Details
-
ProcessesUtils
public ProcessesUtils()
-
-
Method Details
-
isProcessesAdministrator
public static boolean isProcessesAdministrator(org.exoplatform.portal.config.UserACL userACL, org.exoplatform.services.security.Identity aclIdentity) Checks whether a user administers every process: a member of /platform/processes or a platform administrator creates, edits and deletes any process, and manages any request- Parameters:
userACL- the platform ACL serviceaclIdentity- the user's security identity- Returns:
- true when the user administers every process
-
getUserNameByIdentityId
public static String getUserNameByIdentityId(org.exoplatform.social.core.manager.IdentityManager identityManager, long identityId) -
getProjectParentSpace
-
getProjectParentSpace
public static org.exoplatform.social.core.space.model.Space getProjectParentSpace(org.exoplatform.task.service.ProjectService projectService, org.exoplatform.social.core.space.spi.SpaceService spaceService, Long projectId) -
broadcast
public static <S,D> void broadcast(org.exoplatform.services.listener.ListenerService listenerService, String eventName, S source, D data)
-