Class DirectoryImpl

java.lang.Object
com.atlassian.crowd.model.InternalEntity
com.atlassian.crowd.model.directory.DirectoryImpl
All Implemented Interfaces:
Attributes, Directory, TimestampedEntity, Serializable

@Deprecated public class DirectoryImpl extends InternalEntity implements Directory
Deprecated.
Use ImmutableDirectory instead. Since 3.6.0
Implementation of Directory (designed for use with Hibernate).
See Also:
  • Field Details

    • ATTRIBUTE_KEY_USER_ENCRYPTION_METHOD

      public static final String ATTRIBUTE_KEY_USER_ENCRYPTION_METHOD
      Deprecated.
      See Also:
    • ATTRIBUTE_KEY_USE_NESTED_GROUPS

      public static final String ATTRIBUTE_KEY_USE_NESTED_GROUPS
      Deprecated.
      See Also:
    • ATTRIBUTE_KEY_LOCAL_USER_STATUS

      public static final String 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

      public static final String ATTRIBUTE_KEY_AUTO_ADD_GROUPS
      Deprecated.
      See Also:
    • ATTRIBUTE_KEY_USE_PRIMARY_GROUP

      public static final String ATTRIBUTE_KEY_USE_PRIMARY_GROUP
      Deprecated.
      See Also:
    • ATTRIBUTE_KEY_USER_ATTRIBUTES_SYNC_ENABLED

      public static final String 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

      public static final String 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

      public static final String 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_SEPARATOR
      Deprecated.
      See Also:
    • PASSWORD_ATTRIBUTES

      public static final Set<String> PASSWORD_ATTRIBUTES
      Deprecated.
    • SANITISED_PASSWORD

      public static final String SANITISED_PASSWORD
      Deprecated.
      See Also:
  • Constructor Details

    • DirectoryImpl

      public DirectoryImpl()
      Deprecated.
    • DirectoryImpl

      public DirectoryImpl(InternalEntityTemplate template)
      Deprecated.
      Used for importing via XML migration.
      Parameters:
      template - directory template.
    • DirectoryImpl

      public DirectoryImpl(String name, DirectoryType type, String implementationClass)
      Deprecated.
    • DirectoryImpl

      public DirectoryImpl(Directory directory)
      Deprecated.
  • Method Details

    • updateDetailsFrom

      public void updateDetailsFrom(Directory directory)
      Deprecated.
    • updateAttributesFrom

      public void updateAttributesFrom(Map<String,String> attributes)
      Deprecated.
    • getEncryptionType

      public String getEncryptionType()
      Deprecated.
      Description copied from interface: Directory
      Returns the encryption algorithm used by the directory.
      Specified by:
      getEncryptionType in interface Directory
      Returns:
      encryption algorithm used by the directory
    • getAttributes

      public Map<String,String> getAttributes()
      Deprecated.
      Description copied from interface: Directory
      Returns the attributes of the directory.
      Specified by:
      getAttributes in interface Directory
      Returns:
      attributes of the directory
    • setAttributes

      public void setAttributes(Map<String,String> attributes)
      Deprecated.
      Sets the attributes of the directory. attributes must be a mutable Map.
      Parameters:
      attributes - new attributes
    • getAllowedOperations

      public Set<OperationType> getAllowedOperations()
      Deprecated.
      Description copied from interface: Directory
      Returns the operations allowed to be performed on this directory.
      Specified by:
      getAllowedOperations in interface Directory
      Returns:
      the operations allowed to be performed on this directory
    • addAllowedOperation

      public void addAllowedOperation(OperationType operationType)
      Deprecated.
    • setAllowedOperations

      public void setAllowedOperations(Set<OperationType> allowedOperations)
      Deprecated.
    • updateAllowedOperationsFrom

      public void updateAllowedOperationsFrom(Set<OperationType> allowedOperations)
      Deprecated.
    • getLowerImplementationClass

      public String getLowerImplementationClass()
      Deprecated.
    • getLowerName

      public String getLowerName()
      Deprecated.
    • getDescription

      public String getDescription()
      Deprecated.
      Description copied from interface: Directory
      Returns a description of the directory.
      Specified by:
      getDescription in interface Directory
      Returns:
      description of the directory
    • getType

      public DirectoryType getType()
      Deprecated.
      Description copied from interface: Directory
      Returns the type of the directory.
      Specified by:
      getType in interface Directory
      Returns:
      type of the directory
      See Also:
    • getImplementationClass

      public String getImplementationClass()
      Deprecated.
      Description copied from interface: Directory
      Returns the fully qualified name of the class that implements the directory.
      Specified by:
      getImplementationClass in interface Directory
      Returns:
      the fully qualified name of the class that implements the directory
    • setDescription

      public void setDescription(String description)
      Deprecated.
    • setType

      public void setType(DirectoryType type)
      Deprecated.
    • setImplementationClass

      public void setImplementationClass(String implementationClass)
      Deprecated.
    • setName

      public void setName(String name)
      Deprecated.
      Overrides:
      setName in class InternalEntity
    • setActive

      public void setActive(boolean active)
      Deprecated.
      Overrides:
      setActive in class InternalEntity
    • getValues

      public Set<String> getValues(String name)
      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 interface Attributes
      Parameters:
      name - attribute name.
      Returns:
      a collection of the only attribtue value or null if the directory does not have the attribute.
    • getValue

      public String getValue(String name)
      Deprecated.
      Description copied from interface: Attributes
      Returns any value associated with the given key, returns null if there is no value.
      Specified by:
      getValue in interface Attributes
      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

      public Set<String> 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 interface Attributes
      Returns:
      a set of all the keys.
    • isEmpty

      public boolean isEmpty()
      Deprecated.
      Specified by:
      isEmpty in interface Attributes
      Returns:
      true if there are no attributes
    • setAttribute

      public void setAttribute(String name, String value)
      Deprecated.
    • removeAttribute

      public void removeAttribute(String name)
      Deprecated.
    • validate

      public void validate()
      Deprecated.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Specified by:
      equals in class InternalEntity
    • hashCode

      public int hashCode()
      Deprecated.
      Specified by:
      hashCode in class InternalEntity
    • toString

      public final String toString()
      Deprecated.
      Overrides:
      toString in class Object