com.atlassian.crowd.integration.model
Interface AttributeAware

All Known Subinterfaces:
BatchingRemoteDirectory, GroupWithAttributes, LDAPDirectory, LDAPDirectoryEntity, RemoteDirectory, UserWithAttributes
All Known Implementing Classes:
ApacheDS, ApacheDS15, AppleOpenDirectory, Application, AttributeValuesHolder, CachingLDAPDirectory, DelegatedAuthenticationDirectory, Directory, EntityWithAttributes, FedoraDS, GenericLDAP, GroupTemplateWithAttributes, InternalDirectory, InternalGroupWithAttributes, InternalUserWithAttributes, LDAPGroupWithAttributes, LDAPUserWithAttributes, MicrosoftActiveDirectory, NovelleDirectory, OpenDS, OpenLDAP, OpenLDAPRfc2307, Rfc2307, RFC2307Directory, RFC4519Directory, SpringLDAPConnector, SunONE, UserTemplateWithAttributes, UserTemplateWithCredentialAndAttributes

public interface AttributeAware


Method Summary
 String getAttribute(String name)
           
 Set<String> getAttributeNames()
           
 List<String> getAttributes(String name)
           
 boolean hasAttribute(String name)
           
 

Method Detail

getAttributes

List<String> getAttributes(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

String getAttribute(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

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

hasAttribute

boolean hasAttribute(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 © 2009 Atlassian Pty Ltd. All Rights Reserved.