public class ImmutableDirectory extends Object implements Directory
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDirectory.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableDirectory.Builder |
builder(Directory directory) |
static ImmutableDirectory.Builder |
builder(String name,
DirectoryType type,
String implementationClass) |
boolean |
equals(Object o) |
static ImmutableDirectory |
from(Directory directory) |
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.
|
int |
hashCode() |
boolean |
isActive()
Returns true if the directory is currently active, otherwise false.
|
boolean |
isEmpty() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisPersistablepublic String getName()
Directorypublic boolean isActive()
Directorypublic String getEncryptionType()
DirectorygetEncryptionType in interface Directorypublic Map<String,String> getAttributes()
DirectorygetAttributes in interface Directorypublic Set<OperationType> getAllowedOperations()
DirectorygetAllowedOperations in interface Directorypublic String getDescription()
DirectorygetDescription in interface Directorypublic DirectoryType getType()
DirectorygetType in interface DirectoryDirectoryTypepublic String getImplementationClass()
DirectorygetImplementationClass in interface Directorypublic Date getCreatedDate()
DirectorygetCreatedDate in interface Directorypublic Date getUpdatedDate()
DirectorygetUpdatedDate in interface Directory@Nullable public Set<String> getValues(String key)
AttributesgetValues in interface Attributeskey - the key to retrieve the values for@Nullable public String getValue(String key)
Attributesnull if there is no value.getValue in interface Attributeskey - the key to retrieve the value fornull if there is no valuepublic Set<String> getKeys()
AttributesgetKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributespublic static ImmutableDirectory from(Directory directory)
public static ImmutableDirectory.Builder builder(String name, DirectoryType type, String implementationClass)
public static ImmutableDirectory.Builder builder(Directory directory)
Copyright © 2023 Atlassian. All rights reserved.