Class MinimalUser

java.lang.Object
com.atlassian.crowd.model.user.MinimalUser
All Implemented Interfaces:
DirectoryEntity

public class MinimalUser extends Object implements DirectoryEntity
  • Constructor Details

    • MinimalUser

      public MinimalUser(long id, long directoryId, String name)
  • Method Details

    • getDirectoryId

      public long getDirectoryId()
      Specified by:
      getDirectoryId in interface DirectoryEntity
      Returns:
      id of the directory in which the DirectoryEntity is stored.
    • getName

      public String getName()
      Specified by:
      getName in interface DirectoryEntity
      Returns:
      name of the entity.
    • getId

      public long getId()
    • equals

      public boolean equals(Object obj)
      Description copied from interface: DirectoryEntity
      Implementations must ensure equality based on getDirectoryId() and case-insensitive getName().
      Specified by:
      equals in interface DirectoryEntity
      Overrides:
      equals in class Object
      Parameters:
      obj - object to compare to.
      Returns:
      true if and only if the directoryId and the lowercase names of the directory entities match.
    • hashCode

      public int hashCode()
      Description copied from interface: DirectoryEntity
      Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName().
      Specified by:
      hashCode in interface DirectoryEntity
      Overrides:
      hashCode in class Object
      Returns:
      hashcode.