public class LDAPGroupWithAttributes extends Object implements GroupWithAttributes, LDAPDirectoryEntity
| Constructor and Description |
|---|
LDAPGroupWithAttributes(String dn,
GroupTemplateWithAttributes group) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Group group) |
boolean |
equals(Object o)
Implementations must ensure equality based on
getDirectoryId() and case-insensitive getName().
|
String |
getDescription() |
long |
getDirectoryId() |
String |
getDn()
Gets the standardised distinguished name for the LDAP entity.
|
String |
getExternalId()
This will return
null for directories which do not support external ids |
Set<String> |
getKeys()
Gets all the keys of the attributes.
|
String |
getName() |
GroupType |
getType() |
String |
getValue(String attributeName)
Returns any value associated with the given key, returns
null if there is no value. |
Set<String> |
getValues(String attributeName)
Get all the values associated with a given key.
|
int |
hashCode()
Implementations must produce a hashcode based on
getDirectoryId() and case-insensitive getName().
|
boolean |
isActive() |
boolean |
isEmpty() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLdapNamepublic LDAPGroupWithAttributes(String dn, GroupTemplateWithAttributes group)
public String getDn()
LDAPDirectoryEntitygetDn in interface LDAPDirectoryEntitypublic String getName()
getName in interface DirectoryEntitypublic long getDirectoryId()
getDirectoryId in interface DirectoryEntitypublic GroupType getType()
public boolean isActive()
public String getDescription()
getDescription in interface Groupnull if there is no description.public Set<String> getValues(String attributeName)
AttributesgetValues in interface AttributesattributeName - the key to retrieve the values forpublic String getValue(String attributeName)
Attributesnull if there is no value.getValue in interface AttributesattributeName - the key to retrieve the value fornull if there is no valuepublic Set<String> getKeys()
AttributesgetKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributes@Nullable public String getExternalId()
Groupnull for directories which do not support external idsgetExternalId in interface Groupnull it there is no external idpublic boolean equals(Object o)
DirectoryEntityequals in interface DirectoryEntityequals in class Objecto - object to compare to.true if and only if the directoryId
and the lowercase names of the directory entities match.public int hashCode()
DirectoryEntityhashCode in interface DirectoryEntityhashCode in class Objectpublic int compareTo(Group group)
compareTo in interface Comparable<Group>Copyright © 2024 Atlassian. All rights reserved.