com.atlassian.crowd.embedded.impl
Class ImmutableDirectory
java.lang.Object
com.atlassian.crowd.embedded.impl.ImmutableDirectory
- All Implemented Interfaces:
- Attributes, Directory, Serializable
public final class ImmutableDirectory
- extends Object
- implements Directory, Serializable
- See Also:
- Serialized Form
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImmutableDirectory
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)
getId
public Long getId()
- Specified by:
getId in interface Directory
getName
public String getName()
- Specified by:
getName in interface Directory
isActive
public boolean isActive()
- Specified by:
isActive in interface Directory
getEncryptionType
public String getEncryptionType()
- Specified by:
getEncryptionType in interface Directory
getDescription
public String getDescription()
- Specified by:
getDescription in interface Directory
getType
public DirectoryType getType()
- Specified by:
getType in interface Directory
getImplementationClass
public String getImplementationClass()
- Specified by:
getImplementationClass in interface Directory
getCreatedDate
public Date getCreatedDate()
- Specified by:
getCreatedDate in interface Directory
getUpdatedDate
public Date getUpdatedDate()
- Specified by:
getUpdatedDate in interface Directory
getAllowedOperations
public Set<OperationType> getAllowedOperations()
- Specified by:
getAllowedOperations in interface Directory
getAttributes
public Map<String,String> getAttributes()
- Specified by:
getAttributes in interface Directory
getValues
public Set<String> getValues(String key)
- Specified by:
getValues in interface Attributes
getValue
public String getValue(String key)
- Specified by:
getValue in interface Attributes
getKeys
public Set<String> getKeys()
- Specified by:
getKeys in interface Attributes
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Attributes
newBuilder
public static ImmutableDirectory.Builder newBuilder()
- Create an empty Builder.
- Returns:
- an empty Builder.
newBuilder
public static ImmutableDirectory.Builder newBuilder(Directory directory)
- Create a Builder that copies its initial values from the given directory.
- Parameters:
directory - The Directory to clone.
- Returns:
- A new Builder.
Copyright © 2014 Atlassian. All Rights Reserved.