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