Class DirectoryWrapper

java.lang.Object
com.atlassian.crowd.directory.DirectoryWrapper
All Implemented Interfaces:
Attributes, Directory, Serializable
Direct Known Subclasses:
LazyAttributesEvaluationDirectory

public abstract class DirectoryWrapper extends Object implements Directory
See Also:
  • Field Details

  • Constructor Details

    • DirectoryWrapper

      public DirectoryWrapper(Directory delegate)
  • Method Details

    • getValues

      @Nullable public Set<String> getValues(String key)
      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:
      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

      @Nullable public String getValue(String key)
      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:
      key - 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()
      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()
      Specified by:
      isEmpty in interface Attributes
      Returns:
      true if there are no attributes
    • getId

      public Long getId()
      Description copied from interface: Directory
      Returns the directory ID.
      Specified by:
      getId in interface Directory
      Returns:
      directory ID
    • getName

      public String getName()
      Description copied from interface: Directory
      Returns the name of the directory.
      Specified by:
      getName in interface Directory
      Returns:
      name of the directory
    • isActive

      public boolean isActive()
      Description copied from interface: Directory
      Returns true</tt> if the directory is currently active, otherwise <tt>false.
      Specified by:
      isActive in interface Directory
      Returns:
      true</tt> if the directory is currently active, otherwise <tt>false.
    • getEncryptionType

      public String getEncryptionType()
      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()
      Description copied from interface: Directory
      Returns the attributes of the directory.
      Specified by:
      getAttributes in interface Directory
      Returns:
      attributes of the directory
    • getAllowedOperations

      public Set<OperationType> getAllowedOperations()
      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
    • getDescription

      public String getDescription()
      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()
      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()
      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
    • getCreatedDate

      public Date getCreatedDate()
      Description copied from interface: Directory
      Returns the date the directory was created.
      Specified by:
      getCreatedDate in interface Directory
      Returns:
      date the directory was created
    • getUpdatedDate

      public Date getUpdatedDate()
      Description copied from interface: Directory
      Returns the date the directory was last modified.
      Specified by:
      getUpdatedDate in interface Directory
      Returns:
      date the directory was last modified
    • isPersistable

      public boolean isPersistable()
      Description copied from interface: Directory
      Returns false</tt> for in-memory directory, otherwise <tt>true.
      Specified by:
      isPersistable in interface Directory
      Returns:
      false</tt> for in-memory directory, otherwise <tt>true