com.atlassian.crowd.integration.rest.entity
Class GroupEntity

java.lang.Object
  extended by com.atlassian.crowd.integration.rest.entity.GroupEntity
All Implemented Interfaces:
Attributes, DirectoryEntity, Group, GroupWithAttributes, java.lang.Comparable<Group>

public class GroupEntity
extends java.lang.Object
implements GroupWithAttributes, java.lang.Comparable<Group>

Represents a Group entity.

Since:
v2.1

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)
           
 MultiValuedAttributeEntityList getAttributes()
           
 java.lang.String getDescription()
           
 long getDirectoryId()
           
 java.util.Set<java.lang.String> getKeys()
           
 java.lang.String getName()
           
 GroupType getType()
           
 java.lang.String getValue(java.lang.String key)
           
 java.util.Set<java.lang.String> getValues(java.lang.String key)
           
 int hashCode()
           
 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

GroupEntity

public GroupEntity(java.lang.String name,
                   java.lang.String description,
                   GroupType type,
                   boolean active)
Method Detail

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Group

getType

public GroupType getType()
Specified by:
getType in interface Group

isActive

public boolean isActive()
Specified by:
isActive in interface Group

getDirectoryId

public long getDirectoryId()
Specified by:
getDirectoryId in interface DirectoryEntity

getName

public java.lang.String getName()
Specified by:
getName in interface DirectoryEntity

setAttributes

public void setAttributes(MultiValuedAttributeEntityList attributes)

getAttributes

public MultiValuedAttributeEntityList getAttributes()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getValues

public java.util.Set<java.lang.String> getValues(java.lang.String key)
Specified by:
getValues in interface Attributes

getValue

public java.lang.String getValue(java.lang.String key)
Specified by:
getValue in interface Attributes

getKeys

public java.util.Set<java.lang.String> getKeys()
Specified by:
getKeys in interface Attributes

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Attributes

compareTo

public int compareTo(Group o)
Specified by:
compareTo in interface java.lang.Comparable<Group>

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface DirectoryEntity
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface DirectoryEntity
Overrides:
hashCode in class java.lang.Object

newMinimalInstance

public static GroupEntity newMinimalInstance(java.lang.String groupName)
Creates a new minimal group instance.

Parameters:
groupName - group name
Returns:
minimal group instance


Copyright © 2012 Atlassian. All Rights Reserved.