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

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

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

Represents a Group entity.

Since:
v2.1

Constructor Summary
GroupEntity(String name, String description, GroupType type, boolean active)
           
 
Method Summary
 int compareTo(Group o)
           
 boolean equals(Object o)
           
 MultiValuedAttributeEntityList getAttributes()
           
 String getDescription()
           
 long getDirectoryId()
           
 Set<String> getKeys()
           
 String getName()
           
 GroupType getType()
           
 String getValue(String key)
           
 Set<String> getValues(String key)
           
 int hashCode()
           
 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

GroupEntity

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

getDescription

public 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 String getName()
Specified by:
getName in interface DirectoryEntity

setAttributes

public void setAttributes(MultiValuedAttributeEntityList attributes)

getAttributes

public MultiValuedAttributeEntityList getAttributes()

toString

public String toString()
Overrides:
toString in class Object

getValues

public Set<String> getValues(String key)
Specified by:
getValues in interface com.atlassian.crowd.embedded.api.Attributes

getValue

public String getValue(String key)
Specified by:
getValue in interface com.atlassian.crowd.embedded.api.Attributes

getKeys

public Set<String> getKeys()
Specified by:
getKeys in interface com.atlassian.crowd.embedded.api.Attributes

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface com.atlassian.crowd.embedded.api.Attributes

compareTo

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

equals

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

hashCode

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

newMinimalInstance

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

Parameters:
groupName - group name
Returns:
minimal group instance


Copyright © 2014 Atlassian. All Rights Reserved.