com.atlassian.crowd.model.group
Class GroupTemplateWithAttributes

java.lang.Object
  extended by com.atlassian.crowd.model.group.GroupTemplate
      extended by com.atlassian.crowd.model.group.GroupTemplateWithAttributes
All Implemented Interfaces:
Attributes, DirectoryEntity, Group, GroupWithAttributes, java.io.Serializable, java.lang.Comparable<Group>

public class GroupTemplateWithAttributes
extends GroupTemplate
implements GroupWithAttributes

Mutable group template with mutable attributes.

See Also:
Serialized Form

Constructor Summary
protected GroupTemplateWithAttributes(Group group)
           
  GroupTemplateWithAttributes(GroupWithAttributes group)
          Creates new GroupTemplateWithAttributes based on the given group and attributes.
  GroupTemplateWithAttributes(java.lang.String groupName, long directoryId, GroupType groupType)
           
 
Method Summary
 java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getAttributes()
           
 java.util.Set<java.lang.String> getKeys()
           
 java.lang.String getValue(java.lang.String name)
           
 java.util.Set<java.lang.String> getValues(java.lang.String name)
           
 boolean isEmpty()
           
static GroupTemplateWithAttributes ofGroupWithNoAttributes(Group group)
          Creates new GroupTemplateWithAttributes based on the given group with empty attributes.
 void removeAttribute(java.lang.String name)
           
 void setAttribute(java.lang.String name, java.util.Set<java.lang.String> values)
           
 void setAttribute(java.lang.String name, java.lang.String value)
           
 
Methods inherited from class com.atlassian.crowd.model.group.GroupTemplate
compareTo, equals, getDescription, getDirectoryId, getName, getType, hashCode, isActive, isLocal, setActive, setDescription, setDirectoryId, setLocal, setName, setType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.crowd.model.group.Group
getDescription, getType, isActive
 
Methods inherited from interface com.atlassian.crowd.model.DirectoryEntity
equals, getDirectoryId, getName, hashCode
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

GroupTemplateWithAttributes

public GroupTemplateWithAttributes(java.lang.String groupName,
                                   long directoryId,
                                   GroupType groupType)

GroupTemplateWithAttributes

public GroupTemplateWithAttributes(GroupWithAttributes group)
Creates new GroupTemplateWithAttributes based on the given group and attributes.

Parameters:
group - group to use as a template

GroupTemplateWithAttributes

protected GroupTemplateWithAttributes(Group group)
Method Detail

ofGroupWithNoAttributes

public static GroupTemplateWithAttributes ofGroupWithNoAttributes(Group group)
Creates new GroupTemplateWithAttributes based on the given group with empty attributes.

Parameters:
group - group to use as a template
Returns:
GroupTemplateWithAttributes based on the given group with empty attributes

getAttributes

public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getAttributes()

getValues

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

getValue

public java.lang.String getValue(java.lang.String name)
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

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)

setAttribute

public void setAttribute(java.lang.String name,
                         java.util.Set<java.lang.String> values)

removeAttribute

public void removeAttribute(java.lang.String name)


Copyright © 2012 Atlassian. All Rights Reserved.