Class UserServiceImpl

    • Constructor Detail

      • UserServiceImpl

        public UserServiceImpl()
    • Method Detail

      • get

        public User get​(String userId)
        gets detailed information about a specified user by id
        Specified by:
        get in interface UserService
        Parameters:
        userId - the user id
        Returns:
        the user
      • getByName

        public List<? extends User> getByName​(String userName)
        get detailed information about users matching specified name across all domains
        Specified by:
        getByName in interface UserService
        Parameters:
        userName - the user name
        Returns:
        the of list users matching the name across all domains
      • getByName

        public User getByName​(String userName,
                              String domainId)
        get detailed information about a user specified by username and domain id
        Specified by:
        getByName in interface UserService
        Parameters:
        userName - the user name
        domainId - the domain identifier
        Returns:
        the user or null if not found
      • getUserDomain

        public Domain getUserDomain​(String userId)
        Specified by:
        getUserDomain in interface UserService
        Parameters:
        userId - the user id
        Returns:
        the domain of the user
      • update

        public User update​(User user)
        updates the password for or enables or disables a specified user.
        Specified by:
        update in interface UserService
        Parameters:
        user - the user set to update
        Returns:
        the updated user
      • create

        public User create​(User user)
        create a new user
        Specified by:
        create in interface UserService
        Parameters:
        user - the user
        Returns:
        the newly created user
      • create

        public User create​(String domainId,
                           String name,
                           String password,
                           String email,
                           boolean enabled)
        creates a new user
        Specified by:
        create in interface UserService
        Parameters:
        domainId - the domain id
        name - the name of the new user
        password - the password of the new user
        email - the email of the new user
        enabled - the enabled of the new user
        Returns:
        the newly created user
      • listUserGroups

        public List<? extends Group> listUserGroups​(String userId)
        lists groups for a specified user
        Specified by:
        listUserGroups in interface UserService
        Parameters:
        userId - the user id
        Returns:
        list of groups for a user
      • list

        public List<? extends User> list()
        lists users.
        Specified by:
        list in interface UserService
        Returns:
        list of users
      • listProjectUserRoles

        public List<? extends Role> listProjectUserRoles​(String userId,
                                                         String projectId)
        list role assignments for specified user in project context
        Specified by:
        listProjectUserRoles in interface UserService
        Parameters:
        userId - the user id
        Returns:
        list of role assignments for specified user
      • listDomainUserRoles

        public List<? extends Role> listDomainUserRoles​(String userId,
                                                        String domainId)
        list role assignment for specified user in domain context
        Specified by:
        listDomainUserRoles in interface UserService
        Parameters:
        userId - the user identifier
        domainId - the domain identifier
        Returns:
        list of role assignments for specified user and domain
      • changePassword

        public ActionResponse changePassword​(String userId,
                                             String originalPassword,
                                             String password)
        change password for user.
        Specified by:
        changePassword in interface UserService
        Parameters:
        userId - the user identifier
        originalPassword - the original password
        password - the new password
        Returns:
        the action response