public class DirectoryImpl extends InternalEntity implements Directory
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_KEY_AUTO_ADD_GROUPS |
static String |
ATTRIBUTE_KEY_GROUP_ATTRIBUTES_SYNC_ENABLED
Key to decide whether synchronisable group attributes should be synchronised between the remote directory
and the local cache.
|
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 String |
LAST_CONFIGURATION_CHANGE
Key of attribute which holds the timestamp of the last configuration change.
|
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, setUpdatedDateToNow
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCreatedDate, getId, getName, getUpdatedDate, isActive
public 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 String ATTRIBUTE_KEY_GROUP_ATTRIBUTES_SYNC_ENABLED
public static final String LAST_CONFIGURATION_CHANGE
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()
Directory
getEncryptionType
in interface Directory
public Map<String,String> getAttributes()
Directory
getAttributes
in interface Directory
public void setAttributes(Map<String,String> attributes)
attributes
must be a mutable Map.attributes
- new attributespublic Set<OperationType> getAllowedOperations()
Directory
getAllowedOperations
in interface Directory
public void addAllowedOperation(OperationType operationType)
public void setAllowedOperations(Set<OperationType> allowedOperations)
public String getLowerImplementationClass()
public String getLowerName()
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 void setDescription(String description)
public void setType(DirectoryType type)
public void setImplementationClass(String implementationClass)
public void setName(String name)
setName
in class InternalEntity
public void setActive(boolean active)
setActive
in class InternalEntity
public Set<String> getValues(String name)
Attributes
getValues
in interface Attributes
name
- attribute name.null
if the directory does not have the attribute.public String getValue(String name)
Attributes
null
if there is no value.getValue
in interface Attributes
name
- 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 void removeAttribute(String name)
public void validate()
public boolean equals(Object o)
equals
in class InternalEntity
public int hashCode()
hashCode
in class InternalEntity
Copyright © 2017 Atlassian. All rights reserved.