Class UserItem

    • Constructor Detail

      • UserItem

        public UserItem​(@Nonnull
                        User user)
    • Method Detail

      • getCreationDate

        public Date getCreationDate()
        Description copied from interface: DirectoryItem
        Gets the date at which this item has been created into the directory.
        Specified by:
        getCreationDate in interface DirectoryItem
        Returns:
        the item creation date.
      • getOriginalId

        public String getOriginalId()
        Description copied from interface: DirectoryItem
        Gets the unique identifier of the person referred by this item.
        Specified by:
        getOriginalId in interface DirectoryItem
        Returns:
        the unique identifier of the person.
      • getAccessLevel

        public String getAccessLevel()
      • getUserDetail

        public UserDetail getUserDetail()
        Gets the details of the user associated to the item.
        Returns:
        a UserDetail instance explicitly. If the item has been initialized from User instance which is not a UserDetail one, then UserDetail instance is reached from persistence.
      • getUserFull

        public UserFull getUserFull()
        Gets full data of the user associated to the item.
        Returns:
        a UserFull instance.
      • equals

        public boolean equals​(Object o)
        This implementation to indicates that the equals is explicitly delegated to the overridden class.
        Overrides:
        equals in class AbstractDirectoryItem
      • hashCode

        public int hashCode()
        This implementation to indicates that the hasCode is explicitly delegated to the overridden class.
        Overrides:
        hashCode in class AbstractDirectoryItem