Interface DirectoryEntity

All Known Subinterfaces:
Group, GroupWithAttributes, GroupWithMembers, InternalDirectoryGroup, LDAPDirectoryEntity, TimestampedGroup, TimestampedUser, User, UserWithAttributes
All Known Implementing Classes:
BaseImmutableGroup, BaseImmutableUser, DelegatingGroupWithAttributes, DelegatingUserWithAttributes, GroupEntity, GroupTemplate, GroupTemplateWithAttributes, GroupWithMembershipChanges, ImmutableDirectoryGroup, ImmutableDirectoryGroupWithAttributes, ImmutableGroup, ImmutableGroupWithAttributes, ImmutableTimestampedUser, ImmutableTimestampedUserWithAttributes, ImmutableUser, ImmutableUserWithAttributes, InternalDirectoryEntity, InternalGroup, InternalGroupWithAttributes, InternalUser, InternalUserWithAttributes, LDAPGroupWithAttributes, LDAPUserWithAttributes, MinimalUser, UserEntity, UserTemplate, UserTemplateWithAttributes, UserTemplateWithCredentialAndAttributes

public interface DirectoryEntity
Represents a directory entity.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Implementations must ensure equality based on getDirectoryId() and case-insensitive getName().
    long
     
     
    int
    Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName().
  • Method Details

    • getDirectoryId

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

      String getName()
      Returns:
      name of the entity.
    • equals

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

      int hashCode()
      Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName().
      Overrides:
      hashCode in class Object
      Returns:
      hashcode.