Class UserManagerImpl

  • All Implemented Interfaces:
    UserManager

    @Service
    public class UserManagerImpl
    extends Object
    implements UserManager
    A UserManager implementation built upon the silverpeas user management system.
    • Constructor Detail

      • UserManagerImpl

        public UserManagerImpl()
    • Method Detail

      • getUsersInRole

        public User[] getUsersInRole​(String roleName,
                                     String modelId)
        Description copied from interface: UserManager
        Returns all the users having a given role relative to a processModel.

        Users in removed states are taken into account if it exists a valid replacement at the instant of method call for the given role name on the process represented by modelId parameter.

        Specified by:
        getUsersInRole in interface UserManager
        Parameters:
        roleName - the role name to check.
        modelId - the identifier of the model which is the identifier of the component instance id.
        Returns:
        an array of User instances corresponding to given parameters.
      • getUsersInGroup

        public User[] getUsersInGroup​(String groupId,
                                      String modelId)
        Description copied from interface: UserManager
        Returns all the users into given group and its sub groups.

        Users in removed states are taken into account if it exists a valid replacement at the instant of method call on the process represented by modelId parameter.

        Specified by:
        getUsersInGroup in interface UserManager
        modelId - the identifier of the model which is the identifier of the component instance id.
        Returns:
        an array of User instances corresponding to given parameters.
      • getRelatedUser

        public User getRelatedUser​(User user,
                                   String relation,
                                   String peasId)
                            throws WorkflowException
        Get a user from a given user and relation
        Specified by:
        getRelatedUser in interface UserManager
        Parameters:
        user - reference user
        relation - relation between given user and searched user
        peasId - the id of workflow peas associated to that information
        Returns:
        the user that has the given relation with given user
        Throws:
        WorkflowException