com.atlassian.crowd.model.group
Class GroupTemplateWithAttributes
java.lang.Object
com.atlassian.crowd.model.group.GroupTemplate
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
| 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 java.lang.Comparable |
compareTo |
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)
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.