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, withDirectoryId
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDescription, getExternalId, getType, isActive
equals, getDirectoryId, getName, hashCode
compareTo
public 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)
Attributes
getValues
in interface Attributes
name
- the key to retrieve the values for@Nullable public String getValue(String name)
Attributes
null
if there is no value.getValue
in interface Attributes
name
- the key to retrieve the value fornull
if there is no valuepublic Set<String> getKeys()
Attributes
getKeys
in interface Attributes
public boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributespublic void removeAttribute(String name)
Copyright © 2020 Atlassian. All rights reserved.