Class UserImpl

  • All Implemented Interfaces:
    User

    public final class UserImpl
    extends Object
    implements User
    A User implementation built upon the silverpeas user management system.
    • Constructor Detail

      • UserImpl

        public UserImpl​(UserDetail userDetail)
        UserImpl is built from a UserDetail and admin .
    • Method Detail

      • getUserId

        public String getUserId()
        Returns the user id
        Specified by:
        getUserId in interface User
        Returns:
        user id
      • getFullName

        public String getFullName()
        Returns the user full name (firstname lastname)
        Specified by:
        getFullName in interface User
        Returns:
        user full name
      • getInfo

        public String getInfo​(String infoName)
        Returns the named info
        Specified by:
        getInfo in interface User
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object user)
        compare this user with another
        Overrides:
        equals in class Object
        Returns:
        true if two users are the same