Package com.atlassian.crowd.directory
Class LazyAttributesEvaluationDirectory
java.lang.Object
com.atlassian.crowd.directory.DirectoryWrapper
com.atlassian.crowd.directory.LazyAttributesEvaluationDirectory
- All Implemented Interfaces:
Attributes
,Directory
,Serializable
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.crowd.directory.DirectoryWrapper
delegate
-
Constructor Summary
ConstructorsConstructorDescriptionLazyAttributesEvaluationDirectory
(Directory delegate, Set<String> lazyEvaluatedKeys, UnaryOperator<String> transformer) -
Method Summary
Modifier and TypeMethodDescriptionReturns the attributes of the directory.Returns any value associated with the given key, returnsnull
if there is no value.Get all the values associated with a given key.Methods inherited from class com.atlassian.crowd.directory.DirectoryWrapper
getAllowedOperations, getCreatedDate, getDescription, getEncryptionType, getId, getImplementationClass, getKeys, getName, getType, getUpdatedDate, isActive, isEmpty, isPersistable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.crowd.embedded.api.Attributes
getKeys, isEmpty
Methods inherited from interface com.atlassian.crowd.embedded.api.Directory
getAllowedOperations, getCreatedDate, getDescription, getEncryptionType, getId, getImplementationClass, getName, getType, getUpdatedDate, isActive, isPersistable
-
Constructor Details
-
LazyAttributesEvaluationDirectory
public LazyAttributesEvaluationDirectory(Directory delegate, Set<String> lazyEvaluatedKeys, UnaryOperator<String> transformer)
-
-
Method Details
-
getValues
Description copied from interface:Attributes
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.- Specified by:
getValues
in interfaceAttributes
- Overrides:
getValues
in classDirectoryWrapper
- Parameters:
key
- the key to retrieve the values for- Returns:
- the values associated with the given key. It may return null or empty set if the key does not exist.
-
getValue
Description copied from interface:Attributes
Returns any value associated with the given key, returnsnull
if there is no value.- Specified by:
getValue
in interfaceAttributes
- Overrides:
getValue
in classDirectoryWrapper
- Parameters:
key
- the key to retrieve the value for- Returns:
- any value associated with the given key, or
null
if there is no value
-
getAttributes
Description copied from interface:Directory
Returns the attributes of the directory.- Specified by:
getAttributes
in interfaceDirectory
- Overrides:
getAttributes
in classDirectoryWrapper
- Returns:
- attributes of the directory
-