Class ProcessesUtils

java.lang.Object
org.exoplatform.processes.Utils.ProcessesUtils

public class ProcessesUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The membership type of a space's administrators: in a process's managing space, they are the process managers
    static final String
    The membership type of a space's members
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <S, D> void
    broadcast(org.exoplatform.services.listener.ListenerService listenerService, String eventName, S source, D data)
     
    static org.exoplatform.social.core.space.model.Space
     
    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)
     
    static String
    getUserNameByIdentityId(org.exoplatform.social.core.manager.IdentityManager identityManager, long identityId)
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PROCESSES_GROUP

      public static final String PROCESSES_GROUP
      See Also:
    • MANAGER_MEMBERSHIP_TYPE

      public static final String 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

      public static final String 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 service
      aclIdentity - 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

      public static org.exoplatform.social.core.space.model.Space getProjectParentSpace(Long projectId)
    • 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)