com.atlassian.crowd.integration.rest.entity
Class GroupEntity
java.lang.Object
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
GroupEntity
public GroupEntity(String name,
String description,
GroupType type,
boolean active)
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.