Class DirectoryImpl
java.lang.Object
com.atlassian.crowd.model.InternalEntity
com.atlassian.crowd.model.directory.DirectoryImpl
- All Implemented Interfaces:
Attributes
,Directory
,TimestampedEntity
,Serializable
Deprecated.
Implementation of Directory (designed for use with Hibernate).
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.static final String
Deprecated.Key to decide whether synchronisable group attributes should be synchronised between the remote directory and the local cache.static final String
Deprecated.Key to decide whether we support local user status for a given LDAP directory.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.Key to decide whether synchronisable user attributes should be synchronised between the remote directory and the local cache.static final String
Deprecated.static final char
Deprecated.static final String
Deprecated.Key of attribute which holds the timestamp of the last configuration change.Deprecated.static final String
Deprecated.Fields inherited from class com.atlassian.crowd.model.InternalEntity
active, createdDate, id, name, updatedDate
-
Constructor Summary
ConstructorDescriptionDeprecated.DirectoryImpl
(Directory directory) Deprecated.DirectoryImpl
(InternalEntityTemplate template) Deprecated.Used for importing via XML migration.DirectoryImpl
(String name, DirectoryType type, String implementationClass) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllowedOperation
(OperationType operationType) Deprecated.boolean
Deprecated.Deprecated.Returns the operations allowed to be performed on this directory.Deprecated.Returns the attributes of the directory.Deprecated.Returns a description of the directory.Deprecated.Returns the encryption algorithm used by the directory.Deprecated.Returns the fully qualified name of the class that implements the directory.getKeys()
Deprecated.Gets all the keys of the attributes.Deprecated.Deprecated.getType()
Deprecated.Returns the type of the directory.Deprecated.Returns any value associated with the given key, returnsnull
if there is no value.Deprecated.Get all the values associated with a given key.int
hashCode()
Deprecated.boolean
isEmpty()
Deprecated.void
removeAttribute
(String name) Deprecated.void
setActive
(boolean active) Deprecated.void
setAllowedOperations
(Set<OperationType> allowedOperations) Deprecated.void
setAttribute
(String name, String value) Deprecated.void
setAttributes
(Map<String, String> attributes) Deprecated.Sets the attributes of the directory.void
setDescription
(String description) Deprecated.void
setImplementationClass
(String implementationClass) Deprecated.void
Deprecated.void
setType
(DirectoryType type) Deprecated.final String
toString()
Deprecated.void
updateAllowedOperationsFrom
(Set<OperationType> allowedOperations) Deprecated.void
updateAttributesFrom
(Map<String, String> attributes) Deprecated.void
updateDetailsFrom
(Directory directory) Deprecated.void
validate()
Deprecated.Methods inherited from class com.atlassian.crowd.model.InternalEntity
getCreatedDate, getId, getName, getUpdatedDate, isActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNow
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.crowd.embedded.api.Directory
getCreatedDate, getId, getName, getUpdatedDate, isActive, isPersistable
-
Field Details
-
ATTRIBUTE_KEY_USER_ENCRYPTION_METHOD
Deprecated.- See Also:
-
ATTRIBUTE_KEY_USE_NESTED_GROUPS
Deprecated.- See Also:
-
ATTRIBUTE_KEY_LOCAL_USER_STATUS
Deprecated.Key to decide whether we support local user status for a given LDAP directory. If the value is true, users can be enabled and disabled independently in Crowd and the LDAP server. If the value is false, user status is synchronised between Crowd and the LDAP server (for LDAP directories that support synchronisation of user status, like Active Directory). This option is only relevant for cached directories.- See Also:
-
ATTRIBUTE_KEY_AUTO_ADD_GROUPS
Deprecated.- See Also:
-
ATTRIBUTE_KEY_USE_PRIMARY_GROUP
Deprecated.- See Also:
-
ATTRIBUTE_KEY_USER_ATTRIBUTES_SYNC_ENABLED
Deprecated.Key to decide whether synchronisable user attributes should be synchronised between the remote directory and the local cache. This option is only relevant for cached directories. If absent, it is assumed to be false.- See Also:
-
ATTRIBUTE_KEY_GROUP_ATTRIBUTES_SYNC_ENABLED
Deprecated.Key to decide whether synchronisable group attributes should be synchronised between the remote directory and the local cache. This option is only relevant for cached directories. If absent, it is assumed to be false.- See Also:
-
LAST_CONFIGURATION_CHANGE
Deprecated.Key of attribute which holds the timestamp of the last configuration change. should be full- See Also:
-
AUTO_ADD_GROUPS_SEPARATOR
public static final char AUTO_ADD_GROUPS_SEPARATORDeprecated.- See Also:
-
PASSWORD_ATTRIBUTES
Deprecated. -
SANITISED_PASSWORD
Deprecated.- See Also:
-
-
Constructor Details
-
DirectoryImpl
public DirectoryImpl()Deprecated. -
DirectoryImpl
Deprecated.Used for importing via XML migration.- Parameters:
template
- directory template.
-
DirectoryImpl
Deprecated. -
DirectoryImpl
Deprecated.
-
-
Method Details
-
updateDetailsFrom
Deprecated. -
updateAttributesFrom
Deprecated. -
getEncryptionType
Deprecated.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
Deprecated.Description copied from interface:Directory
Returns the attributes of the directory.- Specified by:
getAttributes
in interfaceDirectory
- Returns:
- attributes of the directory
-
setAttributes
Deprecated.Sets the attributes of the directory.attributes
must be a mutableMap
.- Parameters:
attributes
- new attributes
-
getAllowedOperations
Deprecated.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
-
addAllowedOperation
Deprecated. -
setAllowedOperations
Deprecated. -
updateAllowedOperationsFrom
Deprecated. -
getLowerImplementationClass
Deprecated. -
getLowerName
Deprecated. -
getDescription
Deprecated.Description copied from interface:Directory
Returns a description of the directory.- Specified by:
getDescription
in interfaceDirectory
- Returns:
- description of the directory
-
getType
Deprecated.Description copied from interface:Directory
Returns the type of the directory. -
getImplementationClass
Deprecated.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
-
setDescription
Deprecated. -
setType
Deprecated. -
setImplementationClass
Deprecated. -
setName
Deprecated.- Overrides:
setName
in classInternalEntity
-
setActive
public void setActive(boolean active) Deprecated.- Overrides:
setActive
in classInternalEntity
-
getValues
Deprecated.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:
name
- attribute name.- Returns:
- a collection of the only attribtue value or
null
if the directory does not have the attribute.
-
getValue
Deprecated.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:
name
- the key to retrieve the value for- Returns:
- any value associated with the given key, or
null
if there is no value
-
getKeys
Deprecated.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()Deprecated.- Specified by:
isEmpty
in interfaceAttributes
- Returns:
true
if there are no attributes
-
setAttribute
Deprecated. -
removeAttribute
Deprecated. -
validate
public void validate()Deprecated. -
equals
Deprecated.- Specified by:
equals
in classInternalEntity
-
hashCode
public int hashCode()Deprecated.- Specified by:
hashCode
in classInternalEntity
-
toString
Deprecated.
-
ImmutableDirectory
instead. Since 3.6.0