|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.embedded.impl.ImmutableDirectory
public final class ImmutableDirectory
| Nested Class Summary | |
|---|---|
static class |
ImmutableDirectory.Builder
Used to aid in the construction of an ImmutableDirectory. |
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutableDirectory(Long id,
String name,
boolean active,
String description,
String encryptionType,
DirectoryType type,
String implementationClass,
@NotNull
Date createdDate,
@NotNull
Date updatedDate,
@Nullable
Set<OperationType> allowedOperations,
@Nullable
Map<String,String> attributes)
| Method Detail |
|---|
public Long getId()
Directory
getId in interface Directorypublic String getName()
Directory
getName in interface Directorypublic boolean isActive()
Directory
isActive in interface Directorypublic String getEncryptionType()
Directory
getEncryptionType in interface Directorypublic String getDescription()
Directory
getDescription in interface Directorypublic DirectoryType getType()
Directory
getType in interface DirectoryDirectoryTypepublic String getImplementationClass()
Directory
getImplementationClass in interface Directorypublic Date getCreatedDate()
Directory
getCreatedDate in interface Directorypublic Date getUpdatedDate()
Directory
getUpdatedDate in interface Directorypublic Set<OperationType> getAllowedOperations()
Directory
getAllowedOperations in interface Directorypublic Map<String,String> getAttributes()
Directory
getAttributes in interface Directorypublic Set<String> getValues(String key)
Attributes
getValues in interface Attributeskey - the key to retrieve the values for
public String getValue(String key)
Attributesnull if there is no value.
getValue in interface Attributeskey - the key to retrieve the value for
null if there is no valuepublic Set<String> getKeys()
Attributes
getKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributespublic static ImmutableDirectory.Builder newBuilder()
public static ImmutableDirectory.Builder newBuilder(Directory directory)
directory - The Directory to clone.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||