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.
|
Set<String> |
getKeys()
Gets all the keys of the attributes.
|
String |
getName() |
GroupType |
getType() |
String |
getValue(String name)
Returns any value associated with the given key, returns
null if there is no value. |
Set<String> |
getValues(String name)
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() |
public LDAPGroupWithAttributes(String dn, GroupTemplateWithAttributes group)
public String getDn()
LDAPDirectoryEntity
getDn
in interface LDAPDirectoryEntity
public String getName()
getName
in interface DirectoryEntity
public long getDirectoryId()
getDirectoryId
in interface DirectoryEntity
public GroupType getType()
public boolean isActive()
public String getDescription()
getDescription
in interface Group
null
if there is no description.public Set<String> getValues(String name)
Attributes
getValues
in interface Attributes
name
- the key to retrieve the values forpublic String getValue(String name)
Attributes
null
if there is no value.getValue
in interface Attributes
name
- the key to retrieve the value fornull
if there is no valuepublic Set<String> getKeys()
Attributes
getKeys
in interface Attributes
public boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributespublic boolean equals(Object o)
DirectoryEntity
equals
in interface DirectoryEntity
equals
in class Object
o
- object to compare to.true
if and only if the directoryId
and the lowercase names of the directory entities match.public int hashCode()
DirectoryEntity
hashCode
in interface DirectoryEntity
hashCode
in class Object
public int compareTo(Group group)
compareTo
in interface Comparable<Group>
Copyright © 2013 Atlassian. All Rights Reserved.