|
||||||||||
| 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(java.lang.String groupName,
long directoryId,
GroupType groupType)
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getAttributes()
|
java.util.Set<java.lang.String> |
getKeys()
Gets all the keys of the attributes. |
java.lang.String |
getValue(java.lang.String name)
Returns any value associated with the given key, returns null if there is no value. |
java.util.Set<java.lang.String> |
getValues(java.lang.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(java.lang.String name)
|
void |
setAttribute(java.lang.String name,
java.util.Set<java.lang.String> values)
|
void |
setAttribute(java.lang.String name,
java.lang.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(java.lang.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 java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getAttributes()
public java.util.Set<java.lang.String> getValues(java.lang.String name)
Attributes
getValues in interface Attributesname - the key to retrieve the values for
public java.lang.String getValue(java.lang.String name)
Attributesnull if there is no value.
getValue in interface Attributesname - the key to retrieve the value for
null if there is no valuepublic java.util.Set<java.lang.String> getKeys()
Attributes
getKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributes
public void setAttribute(java.lang.String name,
java.lang.String value)
public void setAttribute(java.lang.String name,
java.util.Set<java.lang.String> values)
public void removeAttribute(java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||