Package 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,GroupWithMembers,Serializable,Comparable<Group>
Mutable group template with mutable attributes.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates new GroupTemplateWithAttributes based on the given group and attributes.GroupTemplateWithAttributes(String groupName, long directoryId, GroupType groupType) -
Method Summary
Modifier and TypeMethodDescriptiongetKeys()booleanisEmpty()static GroupTemplateWithAttributesofGroupWithNoAttributes(Group group) Creates new GroupTemplateWithAttributes based on the given group with empty attributes.voidremoveAttribute(String name) voidsetAttribute(String name, String value) voidsetAttribute(String name, Set<String> values) Methods inherited from class com.atlassian.crowd.model.group.GroupTemplate
compareTo, equals, getDescription, getDirectoryId, getExternalId, getName, getType, hashCode, isActive, isLocal, setActive, setDescription, setDirectoryId, setExternalId, setLocal, setName, setType, toString, withDirectoryIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.atlassian.crowd.model.DirectoryEntity
equals, getDirectoryId, getName, hashCodeMethods inherited from interface com.atlassian.crowd.model.group.Group
getDescription, getExternalId, getType, isActive
-
Constructor Details
-
GroupTemplateWithAttributes
-
GroupTemplateWithAttributes
Creates new GroupTemplateWithAttributes based on the given group and attributes.- Parameters:
group- group to use as a template
-
-
Method Details
-
ofGroupWithNoAttributes
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
-
getValues
- Specified by:
getValuesin interfaceAttributes
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getKeys
- Specified by:
getKeysin interfaceAttributes
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceAttributes
-
setAttribute
-
setAttribute
-
removeAttribute
-