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, returnsnull
if there is no value.Get all the values associated with a given key.boolean
isActive()
Returnstrue</tt> if the directory is currently active, otherwise <tt>false
.boolean
isEmpty()
boolean
Returnsfalse</tt> for in-memory directory, otherwise <tt>true
.
-
Field Details
-
delegate
-
-
Constructor Details
-
DirectoryWrapper
-
-
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
- 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
- Parameters:
key
- the key to retrieve the value for- Returns:
- any value associated with the given key, or
null
if there is no value
-
getKeys
Description copied from interface:Attributes
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.- Specified by:
getKeys
in interfaceAttributes
- Returns:
- a set of all the keys.
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceAttributes
- Returns:
true
if there are no attributes
-
getId
Description copied from interface:Directory
Returns the directory ID. -
getName
Description copied from interface:Directory
Returns the name of the directory. -
isActive
public boolean isActive()Description copied from interface:Directory
Returnstrue</tt> if the directory is currently active, otherwise <tt>false
. -
getEncryptionType
Description copied from interface:Directory
Returns the encryption algorithm used by the directory.- Specified by:
getEncryptionType
in interfaceDirectory
- Returns:
- encryption algorithm used by the directory
-
getAttributes
Description copied from interface:Directory
Returns the attributes of the directory.- Specified by:
getAttributes
in interfaceDirectory
- Returns:
- attributes of the directory
-
getAllowedOperations
Description copied from interface:Directory
Returns the operations allowed to be performed on this directory.- Specified by:
getAllowedOperations
in interfaceDirectory
- Returns:
- the operations allowed to be performed on this directory
-
getDescription
Description copied from interface:Directory
Returns a description of the directory.- Specified by:
getDescription
in interfaceDirectory
- Returns:
- description of the directory
-
getType
Description copied from interface:Directory
Returns the type of the directory. -
getImplementationClass
Description copied from interface:Directory
Returns the fully qualified name of the class that implements the directory.- Specified by:
getImplementationClass
in interfaceDirectory
- Returns:
- the fully qualified name of the class that implements the directory
-
getCreatedDate
Description copied from interface:Directory
Returns the date the directory was created.- Specified by:
getCreatedDate
in interfaceDirectory
- Returns:
- date the directory was created
-
getUpdatedDate
Description copied from interface:Directory
Returns the date the directory was last modified.- Specified by:
getUpdatedDate
in interfaceDirectory
- Returns:
- date the directory was last modified
-
isPersistable
public boolean isPersistable()Description copied from interface:Directory
Returnsfalse</tt> for in-memory directory, otherwise <tt>true
.- Specified by:
isPersistable
in interfaceDirectory
- Returns:
false</tt> for in-memory directory, otherwise <tt>true
-