|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.integration.rest.entity.GroupEntity
public class GroupEntity
Represents a Group entity.
| Constructor Summary | |
|---|---|
GroupEntity(java.lang.String name,
java.lang.String description,
GroupType type,
boolean active)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Group o)
|
boolean |
equals(java.lang.Object o)
Implementations must ensure equality based on getDirectoryId() and case-insensitive getName(). |
MultiValuedAttributeEntityList |
getAttributes()
|
java.lang.String |
getDescription()
|
long |
getDirectoryId()
|
java.util.Set<java.lang.String> |
getKeys()
Gets all the keys of the attributes. |
java.lang.String |
getName()
|
GroupType |
getType()
|
java.lang.String |
getValue(java.lang.String key)
Returns any value associated with the given key, returns null if there is no value. |
java.util.Set<java.lang.String> |
getValues(java.lang.String key)
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()
|
static GroupEntity |
newMinimalInstance(java.lang.String groupName)
Creates a new minimal group instance. |
void |
setAttributes(MultiValuedAttributeEntityList attributes)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GroupEntity(java.lang.String name,
java.lang.String description,
GroupType type,
boolean active)
| Method Detail |
|---|
public java.lang.String getDescription()
getDescription in interface Groupnull if there is no description.public GroupType getType()
getType in interface Grouppublic boolean isActive()
isActive in interface Grouptrue if and only if the user is allowed to authenticate.public long getDirectoryId()
getDirectoryId in interface DirectoryEntitypublic java.lang.String getName()
getName in interface DirectoryEntitypublic void setAttributes(MultiValuedAttributeEntityList attributes)
public MultiValuedAttributeEntityList getAttributes()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Set<java.lang.String> getValues(java.lang.String key)
Attributes
getValues in interface Attributeskey - the key to retrieve the values for
public java.lang.String getValue(java.lang.String key)
Attributesnull if there is no value.
getValue in interface Attributeskey - the key to retrieve the value for
null if there is no valuepublic java.util.Set<java.lang.String> getKeys()
Attributes
getKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributespublic int compareTo(Group o)
compareTo in interface java.lang.Comparable<Group>public boolean equals(java.lang.Object o)
DirectoryEntity
equals in interface DirectoryEntityequals in class java.lang.Objecto - 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 DirectoryEntityhashCode in class java.lang.Objectpublic static GroupEntity newMinimalInstance(java.lang.String groupName)
groupName - group name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||