Class BasicUserImpl

    • Constructor Detail

      • BasicUserImpl

        public BasicUserImpl()
    • Method Detail

      • getPassword

        public String getPassword()
        Returns the user's password. This method should not be used by the application directly, because it's meaning depends upon the implementation of UserManager that manages this particular user object. Some implementations will use this attribute for storing a password encrypted in some way, other will not use it at all, when user entered password is presented to some external authority (like NT domain controller) to validate it. See also UserManager.authenticate(User,String) .
        Specified by:
        getPassword in interface User
        Returns:
        A String with the password for the user.
      • getGroups

        public GroupSet getGroups()
        Get the groups this user is part of
        Specified by:
        getGroups in interface BasicUser
        Returns:
        a set of groups
      • setGroups

        public void setGroups​(GroupSet groups)
        Set the groups this user is part of
        Specified by:
        setGroups in interface BasicUser
        Parameters:
        groups - the set of groups
      • removeGroup

        public void removeGroup​(Group group)
        Remove the group from the list of groups
        Specified by:
        removeGroup in interface BasicUser
        Parameters:
        group - the group to remove
      • addGroup

        public void addGroup​(Group group)
        Add the group to the list of groups
        Specified by:
        addGroup in interface BasicUser
        Parameters:
        group - the group to add
      • setGroupsAsSet

        public <T extends Group> void setGroupsAsSet​(Set<T> groups)
        Set the groups this user is part of as a Set
        Specified by:
        setGroupsAsSet in interface BasicUser
        Parameters:
        groups - the set of groups
      • getGroupsAsSet

        public <T extends GroupSet<T> getGroupsAsSet()
        Get the groups this user is part of as a Set
        Specified by:
        getGroupsAsSet in interface BasicUser
        Returns:
        a set of groups