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.
      Specified by:
      getEncryptionType in interface Directory
    • getAttributes

      public Map<String,String> getAttributes()
      Deprecated.
      Specified by:
      getAttributes in interface 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.
      Specified by:
      getAllowedOperations in interface 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.
      Specified by:
      getDescription in interface Directory
    • getType

      public DirectoryType getType()
      Deprecated.
      Specified by:
      getType in interface Directory
    • getImplementationClass

      public String getImplementationClass()
      Deprecated.
      Specified by:
      getImplementationClass in interface 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.
      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.
      Specified by:
      getValue in interface Attributes
    • getKeys

      public Set<String> getKeys()
      Deprecated.
      Specified by:
      getKeys in interface Attributes
    • isEmpty

      public boolean isEmpty()
      Deprecated.
      Specified by:
      isEmpty in interface 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