com.atlassian.crowd.integration.model.group
Class GroupTemplateWithAttributes
java.lang.Object
com.atlassian.crowd.integration.model.group.GroupTemplate
com.atlassian.crowd.integration.model.group.GroupTemplateWithAttributes
- All Implemented Interfaces:
- AttributeAware, DirectoryEntity, Group, GroupWithAttributes
public class GroupTemplateWithAttributes
- extends GroupTemplate
- implements GroupWithAttributes
|
Method Summary |
java.lang.String |
getAttribute(java.lang.String name)
|
java.util.Set<java.lang.String> |
getAttributeNames()
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getAttributes()
|
java.util.List<java.lang.String> |
getAttributes(java.lang.String name)
|
boolean |
hasAttribute(java.lang.String name)
|
void |
setAttribute(java.lang.String name,
java.util.List<java.lang.String> values)
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
|
| Methods inherited from class com.atlassian.crowd.integration.model.group.GroupTemplate |
equals, getDescription, getDirectoryId, getName, getType, hashCode, isActive, setActive, setDescription, setDirectoryId, setName, setType, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
GroupTemplateWithAttributes
public GroupTemplateWithAttributes(java.lang.String groupName,
java.lang.Long directoryId,
GroupType groupType)
GroupTemplateWithAttributes
public GroupTemplateWithAttributes(Group group)
getAttributes
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAttributes()
getAttributes
public java.util.List<java.lang.String> getAttributes(java.lang.String name)
- Specified by:
getAttributes in interface AttributeAware
- Parameters:
name - attribute name.
- Returns:
- collection of attribute values or an empty list
if the attribute with the given name does not exist.
getAttribute
public java.lang.String getAttribute(java.lang.String name)
- Specified by:
getAttribute in interface AttributeAware
- Parameters:
name - attribute name.
- Returns:
- single attribute value or
null
if the attribute with the given name does not exist.
If multiple attribute values exist, any one could be
returned.
getAttributeNames
public java.util.Set<java.lang.String> getAttributeNames()
- Specified by:
getAttributeNames in interface AttributeAware
- Returns:
- set of attribute names.
hasAttribute
public boolean hasAttribute(java.lang.String name)
- Specified by:
hasAttribute in interface AttributeAware
- Parameters:
name - attribute name.
- Returns:
true if an only if the
user has an attribute with the supplied name
and has one or more values.
setAttribute
public void setAttribute(java.lang.String name,
java.lang.String value)
setAttribute
public void setAttribute(java.lang.String name,
java.util.List<java.lang.String> values)
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.