public class DirectoryImpl extends InternalEntity implements Directory
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_KEY_AUTO_ADD_GROUPS |
static String |
ATTRIBUTE_KEY_LOCAL_USER_STATUS
Key to decide whether we support local user status for a given LDAP directory.
|
static String |
ATTRIBUTE_KEY_USE_NESTED_GROUPS |
static String |
ATTRIBUTE_KEY_USE_PRIMARY_GROUP |
static String |
ATTRIBUTE_KEY_USER_ATTRIBUTES_SYNC_ENABLED
Key to decide whether synchronisable user attributes should be synchronised between the remote directory
and the local cache.
|
static String |
ATTRIBUTE_KEY_USER_ENCRYPTION_METHOD |
static char |
AUTO_ADD_GROUPS_SEPARATOR |
static Set<String> |
PASSWORD_ATTRIBUTES |
static String |
SANITISED_PASSWORD |
active, createdDate, id, name, updatedDate| Constructor and Description |
|---|
DirectoryImpl() |
DirectoryImpl(Directory directory) |
DirectoryImpl(InternalEntityTemplate template)
Used for importing via XML migration.
|
DirectoryImpl(String name,
DirectoryType type,
String implementationClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllowedOperation(OperationType operationType) |
boolean |
equals(Object o) |
Set<OperationType> |
getAllowedOperations()
Returns the operations allowed to be performed on this directory.
|
Map<String,String> |
getAttributes()
Returns the attributes of the directory.
|
String |
getDescription()
Returns a description of the directory.
|
String |
getEncryptionType()
Returns the encryption algorithm used by the directory.
|
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 |
getLowerImplementationClass() |
String |
getLowerName() |
DirectoryType |
getType()
Returns the type of the directory.
|
String |
getValue(String name)
Returns any value associated with the given key, returns
null if there is no value. |
Set<String> |
getValues(String name)
Get all the values associated with a given key.
|
int |
hashCode() |
boolean |
isEmpty() |
void |
removeAttribute(String name) |
void |
setActive(boolean active) |
void |
setAllowedOperations(Set<OperationType> allowedOperations) |
void |
setAttribute(String name,
String value) |
void |
setAttributes(Map<String,String> attributes)
Sets the attributes of the directory.
|
void |
setDescription(String description) |
void |
setImplementationClass(String implementationClass) |
void |
setName(String name) |
void |
setType(DirectoryType type) |
String |
toString() |
void |
updateAttributesFrom(Map<String,String> attributes) |
void |
updateDetailsFrom(Directory directory) |
void |
validate() |
getCreatedDate, getId, getName, getUpdatedDate, isActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNowclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCreatedDate, getId, getName, getUpdatedDate, isActivepublic static final String ATTRIBUTE_KEY_USER_ENCRYPTION_METHOD
public static final String ATTRIBUTE_KEY_USE_NESTED_GROUPS
public static final String ATTRIBUTE_KEY_LOCAL_USER_STATUS
public static final String ATTRIBUTE_KEY_AUTO_ADD_GROUPS
public static final String ATTRIBUTE_KEY_USE_PRIMARY_GROUP
public static final String ATTRIBUTE_KEY_USER_ATTRIBUTES_SYNC_ENABLED
public static final char AUTO_ADD_GROUPS_SEPARATOR
public static final String SANITISED_PASSWORD
public DirectoryImpl()
public DirectoryImpl(InternalEntityTemplate template)
template - directory template.public DirectoryImpl(String name, DirectoryType type, String implementationClass)
public DirectoryImpl(Directory directory)
public void updateDetailsFrom(Directory directory)
public String getEncryptionType()
DirectorygetEncryptionType in interface Directorypublic Map<String,String> getAttributes()
DirectorygetAttributes in interface Directorypublic void setAttributes(Map<String,String> attributes)
attributes must be a mutable Map.attributes - new attributespublic Set<OperationType> getAllowedOperations()
DirectorygetAllowedOperations in interface Directorypublic void addAllowedOperation(OperationType operationType)
public void setAllowedOperations(Set<OperationType> allowedOperations)
public String getLowerImplementationClass()
public String getLowerName()
public String getDescription()
DirectorygetDescription in interface Directorypublic DirectoryType getType()
DirectorygetType in interface DirectoryDirectoryTypepublic String getImplementationClass()
DirectorygetImplementationClass in interface Directorypublic void setDescription(String description)
public void setType(DirectoryType type)
public void setImplementationClass(String implementationClass)
public void setName(String name)
setName in class InternalEntitypublic void setActive(boolean active)
setActive in class InternalEntitypublic Set<String> getValues(String name)
AttributesgetValues in interface Attributesname - attribute name.null
if the directory does not have the attribute.public String getValue(String name)
Attributesnull if there is no value.getValue in interface Attributesname - 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 void removeAttribute(String name)
public void validate()
public boolean equals(Object o)
equals in class InternalEntitypublic int hashCode()
hashCode in class InternalEntityCopyright © 2017 Atlassian. All rights reserved.