com.atlassian.crowd.model
Interface AttributeAware

All Known Subinterfaces:
GroupWithAttributes, UserWithAttributes

public interface AttributeAware


Method Summary
 java.lang.String getAttribute(java.lang.String name)
           
 java.util.Set<java.lang.String> getAttributeNames()
           
 java.util.List<java.lang.String> getAttributes(java.lang.String name)
           
 boolean hasAttribute(java.lang.String name)
           
 

Method Detail

getAttributes

java.util.List<java.lang.String> getAttributes(java.lang.String name)
Parameters:
name - attribute name.
Returns:
collection of attribute values or an empty list if the attribute with the given name does not exist.

getAttribute

java.lang.String getAttribute(java.lang.String name)
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

java.util.Set<java.lang.String> getAttributeNames()
Returns:
set of attribute names.

hasAttribute

boolean hasAttribute(java.lang.String name)
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.


Copyright © 2010 Atlassian. All Rights Reserved.