|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.crowd.model.group.GroupTemplate
com.atlassian.crowd.model.group.GroupTemplateWithAttributes
public class GroupTemplateWithAttributes
Mutable group template with mutable attributes.
Constructor Summary | |
---|---|
protected |
GroupTemplateWithAttributes(Group group)
|
|
GroupTemplateWithAttributes(GroupWithAttributes group)
Creates new GroupTemplateWithAttributes based on the given group and attributes. |
|
GroupTemplateWithAttributes(String groupName,
long directoryId,
GroupType groupType)
|
Method Summary | |
---|---|
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)
|
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 |
---|
public GroupTemplateWithAttributes(String groupName, long directoryId, GroupType groupType)
public GroupTemplateWithAttributes(GroupWithAttributes group)
group
- group to use as a templateprotected GroupTemplateWithAttributes(Group group)
Method Detail |
---|
public static GroupTemplateWithAttributes ofGroupWithNoAttributes(Group group)
group
- group to use as a template
public Map<String,Set<String>> getAttributes()
public Set<String> getValues(String name)
Attributes
getValues
in interface Attributes
name
- the key to retrieve the values for
public String getValue(String name)
Attributes
null
if there is no value.
getValue
in interface Attributes
name
- the key to retrieve the value for
null
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 setAttribute(String name, String value)
public void setAttribute(String name, Set<String> values)
public void removeAttribute(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |