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

java.lang.Object
  extended by com.atlassian.crowd.plugin.rest.entity.GroupEntity
All Implemented Interfaces:
NamedEntity

@Expander(value=GroupEntityExpander.class)
public class GroupEntity
extends java.lang.Object
implements NamedEntity

Represents a Group entity.

Since:
v2.1

Constructor Summary
GroupEntity(java.lang.String name, java.lang.String description, GroupType type, java.lang.Boolean active, com.atlassian.plugins.rest.common.Link link)
           
 
Method Summary
 MultiValuedAttributeEntityList getAttributes()
           
 java.lang.String getDescription()
           
 com.atlassian.plugins.rest.common.Link getLink()
           
 java.lang.String getName()
           
 GroupType getType()
           
 boolean isActive()
           
 boolean isExpanded()
          Does this object represent an expanded group, or does it only contain a group name.
static GroupEntity newMinimalGroupEntity(java.lang.String name, java.lang.String applicationName, java.net.URI baseURI)
          Creates a GroupEntity with the minimal amount of information required.
 void setAttributes(MultiValuedAttributeEntityList attributes)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupEntity

public GroupEntity(java.lang.String name,
                   java.lang.String description,
                   GroupType type,
                   java.lang.Boolean active,
                   com.atlassian.plugins.rest.common.Link link)
Method Detail

getDescription

public java.lang.String getDescription()

getType

public GroupType getType()

isActive

public boolean isActive()

getName

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

setAttributes

public void setAttributes(MultiValuedAttributeEntityList attributes)

getAttributes

public MultiValuedAttributeEntityList getAttributes()

newMinimalGroupEntity

public static GroupEntity newMinimalGroupEntity(java.lang.String name,
                                                java.lang.String applicationName,
                                                java.net.URI baseURI)
Creates a GroupEntity with the minimal amount of information required.

Parameters:
name - group name.
baseURI - base URI
Returns:
GroupEntity

isExpanded

public boolean isExpanded()
Does this object represent an expanded group, or does it only contain a group name.

Returns:
true if this object represents an expanded group

toString

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

getLink

public com.atlassian.plugins.rest.common.Link getLink()


Copyright © 2011 Atlassian. All Rights Reserved.