public final class ImmutableDirectory extends Object implements Directory, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableDirectory.Builder
Used to aid in the construction of an ImmutableDirectory.
|
Constructor and Description |
---|
ImmutableDirectory(Long id,
String name,
boolean active,
String description,
String encryptionType,
DirectoryType type,
String implementationClass,
Date createdDate,
Date updatedDate,
Set<OperationType> allowedOperations,
Map<String,String> attributes) |
Modifier and Type | Method and Description |
---|---|
Set<OperationType> |
getAllowedOperations()
Returns the operations allowed to be performed on this directory.
|
Map<String,String> |
getAttributes()
Returns the attributes of the directory.
|
Date |
getCreatedDate()
Returns the date the directory was created.
|
String |
getDescription()
Returns a description of the directory.
|
String |
getEncryptionType()
Returns the encryption algorithm used by the directory.
|
Long |
getId()
Returns the directory ID.
|
String |
getImplementationClass()
Returns the fully qualified name of the class that implements the directory.
|
Set<String> |
getKeys()
Gets all the keys of the attributes.
|
String |
getName()
Returns the name of the directory.
|
DirectoryType |
getType()
Returns the type of the directory.
|
Date |
getUpdatedDate()
Returns the date the directory was last modified.
|
String |
getValue(String key)
Returns any value associated with the given key, returns
null if there is no value. |
Set<String> |
getValues(String key)
Get all the values associated with a given key.
|
boolean |
isActive()
Returns true if the directory is currently active, otherwise false.
|
boolean |
isEmpty() |
static ImmutableDirectory.Builder |
newBuilder()
Create an empty Builder.
|
static ImmutableDirectory.Builder |
newBuilder(Directory directory)
Create a Builder that copies its initial values from the given directory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isPersistable
public ImmutableDirectory(Long id, String name, boolean active, String description, String encryptionType, DirectoryType type, String implementationClass, @Nonnull Date createdDate, @Nonnull Date updatedDate, @Nullable Set<OperationType> allowedOperations, @Nullable Map<String,String> attributes)
public String getName()
Directory
public boolean isActive()
Directory
public String getEncryptionType()
Directory
getEncryptionType
in interface Directory
public String getDescription()
Directory
getDescription
in interface Directory
public DirectoryType getType()
Directory
getType
in interface Directory
DirectoryType
public String getImplementationClass()
Directory
getImplementationClass
in interface Directory
public Date getCreatedDate()
Directory
getCreatedDate
in interface Directory
public Date getUpdatedDate()
Directory
getUpdatedDate
in interface Directory
public Set<OperationType> getAllowedOperations()
Directory
getAllowedOperations
in interface Directory
public Map<String,String> getAttributes()
Directory
getAttributes
in interface Directory
public Set<String> getValues(String key)
Attributes
getValues
in interface Attributes
key
- the key to retrieve the values forpublic String getValue(String key)
Attributes
null
if there is no value.getValue
in interface Attributes
key
- the key to retrieve the value fornull
if there is no valuepublic Set<String> getKeys()
Attributes
getKeys
in interface Attributes
public boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributespublic static ImmutableDirectory.Builder newBuilder()
public static ImmutableDirectory.Builder newBuilder(Directory directory)
directory
- The Directory to clone.Copyright © 2021 Atlassian. All rights reserved.