public abstract class

AbstractDelegatingEntityWithAttributes

extends Object
implements Attributes
java.lang.Object
   ↳ com.atlassian.crowd.embedded.impl.AbstractDelegatingEntityWithAttributes
Known Direct Subclasses

Class Overview

Abstract class providing a delegating implementation of the Attributes interface. This is the common behaviour of DelegatingUserWithAttributes and DelegatingGroupWithAttributes.

Summary

Public Constructors
AbstractDelegatingEntityWithAttributes(Attributes attributes)
Public Methods
Set<String> getKeys()
Gets all the keys of the attributes.
String getValue(String key)
Returns any value associated with the given key, returns null if there is no value.
Set<String> getValues(String key)
Get all the values associated with a given key.
boolean isEmpty()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.crowd.embedded.api.Attributes

Public Constructors

public AbstractDelegatingEntityWithAttributes (Attributes attributes)

Public Methods

public Set<String> getKeys ()

Gets all the keys of the attributes. Warning: case-insensitive keys are currently no enforced, however this is the case for LDAP, so this may be implemented in the future.

Returns
  • a set of all the keys.

public String getValue (String key)

Returns any value associated with the given key, returns null if there is no value.

Parameters
key the key to retrieve the value for
Returns
  • any value associated with the given key, or null if there is no value

public Set<String> getValues (String key)

Get all the values associated with a given key. Duplicate values are not allowed, and this should be enforced case-insensitively to match the behaviour of LDAP servers. Will return null if the key does not exist.

Parameters
key the key to retrieve the values for
Returns
  • the values associated with the given key, or null if the key does not exist.

public boolean isEmpty ()