Package com.atlassian.crowd.directory
Class DirectoryWrapper
java.lang.Object
com.atlassian.crowd.directory.DirectoryWrapper
- All Implemented Interfaces:
Attributes,Directory,Serializable
- Direct Known Subclasses:
LazyAttributesEvaluationDirectory
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the operations allowed to be performed on this directory.Returns the attributes of the directory.Returns the date the directory was created.Returns a description of the directory.Returns the encryption algorithm used by the directory.getId()Returns the directory ID.Returns the fully qualified name of the class that implements the directory.getKeys()Gets all the keys of the attributes.getName()Returns the name of the directory.getType()Returns the type of the directory.Returns the date the directory was last modified.Returns any value associated with the given key, returnsnullif there is no value.Get all the values associated with a given key.booleanisActive()Returnstrue</tt> if the directory is currently active, otherwise <tt>false.booleanisEmpty()booleanReturnsfalse</tt> for in-memory directory, otherwise <tt>true.
-
Field Details
-
delegate
-
-
Constructor Details
-
DirectoryWrapper
-
-
Method Details
-
getValues
Description copied from interface:AttributesGet 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:
getValuesin interfaceAttributes- 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:AttributesReturns any value associated with the given key, returnsnullif there is no value.- Specified by:
getValuein interfaceAttributes- Parameters:
key- the key to retrieve the value for- Returns:
- any value associated with the given key, or
nullif there is no value
-
getKeys
Description copied from interface:AttributesGets 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.- Specified by:
getKeysin interfaceAttributes- Returns:
- a set of all the keys.
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceAttributes- Returns:
trueif there are no attributes
-
getId
Description copied from interface:DirectoryReturns the directory ID. -
getName
Description copied from interface:DirectoryReturns the name of the directory. -
isActive
public boolean isActive()Description copied from interface:DirectoryReturnstrue</tt> if the directory is currently active, otherwise <tt>false. -
getEncryptionType
Description copied from interface:DirectoryReturns the encryption algorithm used by the directory.- Specified by:
getEncryptionTypein interfaceDirectory- Returns:
- encryption algorithm used by the directory
-
getAttributes
Description copied from interface:DirectoryReturns the attributes of the directory.- Specified by:
getAttributesin interfaceDirectory- Returns:
- attributes of the directory
-
getAllowedOperations
Description copied from interface:DirectoryReturns the operations allowed to be performed on this directory.- Specified by:
getAllowedOperationsin interfaceDirectory- Returns:
- the operations allowed to be performed on this directory
-
getDescription
Description copied from interface:DirectoryReturns a description of the directory.- Specified by:
getDescriptionin interfaceDirectory- Returns:
- description of the directory
-
getType
Description copied from interface:DirectoryReturns the type of the directory. -
getImplementationClass
Description copied from interface:DirectoryReturns the fully qualified name of the class that implements the directory.- Specified by:
getImplementationClassin interfaceDirectory- Returns:
- the fully qualified name of the class that implements the directory
-
getCreatedDate
Description copied from interface:DirectoryReturns the date the directory was created.- Specified by:
getCreatedDatein interfaceDirectory- Returns:
- date the directory was created
-
getUpdatedDate
Description copied from interface:DirectoryReturns the date the directory was last modified.- Specified by:
getUpdatedDatein interfaceDirectory- Returns:
- date the directory was last modified
-
isPersistable
public boolean isPersistable()Description copied from interface:DirectoryReturnsfalse</tt> for in-memory directory, otherwise <tt>true.- Specified by:
isPersistablein interfaceDirectory- Returns:
false</tt> for in-memory directory, otherwise <tt>true
-