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
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.Key to decide whether synchronisable group attributes should be synchronised between the remote directory and the local cache.static final StringDeprecated.Key to decide whether we support local user status for a given LDAP directory.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.Key to decide whether synchronisable user attributes should be synchronised between the remote directory and the local cache.static final StringDeprecated.static final charDeprecated.static final StringDeprecated.Key of attribute which holds the timestamp of the last configuration change.Deprecated.static final StringDeprecated.Fields inherited from class com.atlassian.crowd.model.InternalEntity
active, createdDate, id, name, updatedDate -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.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 TypeMethodDescriptionvoidaddAllowedOperation(OperationType operationType) Deprecated.booleanDeprecated.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, returnsnullif there is no value.Deprecated.Get all the values associated with a given key.inthashCode()Deprecated.booleanisEmpty()Deprecated.voidremoveAttribute(String name) Deprecated.voidsetActive(boolean active) Deprecated.voidsetAllowedOperations(Set<OperationType> allowedOperations) Deprecated.voidsetAttribute(String name, String value) Deprecated.voidsetAttributes(Map<String, String> attributes) Deprecated.Sets the attributes of the directory.voidsetDescription(String description) Deprecated.voidsetImplementationClass(String implementationClass) Deprecated.voidDeprecated.voidsetType(DirectoryType type) Deprecated.final StringtoString()Deprecated.voidupdateAllowedOperationsFrom(Set<OperationType> allowedOperations) Deprecated.voidupdateAttributesFrom(Map<String, String> attributes) Deprecated.voidupdateDetailsFrom(Directory directory) Deprecated.voidvalidate()Deprecated.Methods inherited from class com.atlassian.crowd.model.InternalEntity
getCreatedDate, getId, getName, getUpdatedDate, isActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNowMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:DirectoryReturns the encryption algorithm used by the directory.- Specified by:
getEncryptionTypein interfaceDirectory- Returns:
- encryption algorithm used by the directory
-
getAttributes
Deprecated.Description copied from interface:DirectoryReturns the attributes of the directory.- Specified by:
getAttributesin interfaceDirectory- Returns:
- attributes of the directory
-
setAttributes
Deprecated.Sets the attributes of the directory.attributesmust be a mutableMap.- Parameters:
attributes- new attributes
-
getAllowedOperations
Deprecated.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
-
addAllowedOperation
Deprecated. -
setAllowedOperations
Deprecated. -
updateAllowedOperationsFrom
Deprecated. -
getLowerImplementationClass
Deprecated. -
getLowerName
Deprecated. -
getDescription
Deprecated.Description copied from interface:DirectoryReturns a description of the directory.- Specified by:
getDescriptionin interfaceDirectory- Returns:
- description of the directory
-
getType
Deprecated.Description copied from interface:DirectoryReturns the type of the directory. -
getImplementationClass
Deprecated.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
-
setDescription
Deprecated. -
setType
Deprecated. -
setImplementationClass
Deprecated. -
setName
Deprecated.- Overrides:
setNamein classInternalEntity
-
setActive
public void setActive(boolean active) Deprecated.- Overrides:
setActivein classInternalEntity
-
getValues
Deprecated.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:
name- attribute name.- Returns:
- a collection of the only attribtue value or
nullif the directory does not have the attribute.
-
getValue
Deprecated.Description copied from interface:AttributesReturns any value associated with the given key, returnsnullif there is no value.- Specified by:
getValuein interfaceAttributes- Parameters:
name- the key to retrieve the value for- Returns:
- any value associated with the given key, or
nullif there is no value
-
getKeys
Deprecated.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()Deprecated.- Specified by:
isEmptyin interfaceAttributes- Returns:
trueif there are no attributes
-
setAttribute
Deprecated. -
removeAttribute
Deprecated. -
validate
public void validate()Deprecated. -
equals
Deprecated.- Specified by:
equalsin classInternalEntity
-
hashCode
public int hashCode()Deprecated.- Specified by:
hashCodein classInternalEntity
-
toString
Deprecated.
-
ImmutableDirectoryinstead. Since 3.6.0