com.atlassian.crowd.model
Interface DirectoryEntity

All Known Subinterfaces:
Group, GroupWithAttributes, InternalDirectoryGroup, LDAPDirectoryEntity, TimestampedGroup, TimestampedUser, User, UserWithAttributes
All Known Implementing Classes:
DelegatingGroupWithAttributes, DelegatingUserWithAttributes, DemoGroup, DemoUser, GroupEntity, GroupTemplate, GroupTemplateWithAttributes, ImmutableGroup, ImmutableUser, InternalDirectoryEntity, InternalGroup, InternalGroupWithAttributes, InternalUser, InternalUserWithAttributes, LDAPGroupWithAttributes, LDAPUserWithAttributes, UserEntity, UserTemplate, UserTemplateWithAttributes, UserTemplateWithCredentialAndAttributes

public interface DirectoryEntity

Represents a directory entity.


Method Summary
 boolean equals(Object o)
          Implementations must ensure equality based on getDirectoryId() and case-insensitive getName().
 long getDirectoryId()
           
 String getName()
           
 int hashCode()
          Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName().
 

Method Detail

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.


Copyright © 2013 Atlassian. All Rights Reserved.