public class GroupTemplateWithAttributes extends GroupTemplate implements GroupWithAttributes
| Constructor and Description |
|---|
GroupTemplateWithAttributes(GroupWithAttributes group)
Creates new GroupTemplateWithAttributes based on the given group and attributes.
|
GroupTemplateWithAttributes(String groupName,
long directoryId,
GroupType groupType) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Set<String>> |
getAttributes() |
Set<String> |
getKeys()
Gets all the keys of the attributes.
|
String |
getValue(String name)
Returns any value associated with the given key, returns
null if there is no value. |
Set<String> |
getValues(String name)
Get all the values associated with a given key.
|
boolean |
isEmpty() |
static GroupTemplateWithAttributes |
ofGroupWithNoAttributes(Group group)
Creates new GroupTemplateWithAttributes based on the given group with empty attributes.
|
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Set<String> values) |
void |
setAttribute(String name,
String value) |
compareTo, equals, getDescription, getDirectoryId, getExternalId, getName, getType, hashCode, isActive, isLocal, setActive, setDescription, setDirectoryId, setExternalId, setLocal, setName, setType, toString, withDirectoryIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDescription, getExternalId, getType, isActiveequals, getDirectoryId, getName, hashCodecompareTopublic GroupTemplateWithAttributes(String groupName, long directoryId, GroupType groupType)
public GroupTemplateWithAttributes(GroupWithAttributes group)
group - group to use as a templatepublic static GroupTemplateWithAttributes ofGroupWithNoAttributes(Group group)
group - group to use as a template@Nullable public Set<String> getValues(String name)
AttributesgetValues in interface Attributesname - the key to retrieve the values for@Nullable public String getValue(String name)
Attributesnull if there is no value.getValue in interface Attributesname - the key to retrieve the value fornull if there is no valuepublic Set<String> getKeys()
AttributesgetKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributespublic void removeAttribute(String name)
Copyright © 2017 Atlassian. All rights reserved.