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) |
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()
getEncryptionType in interface Directorypublic Map<String,String> getAttributes()
getAttributes in interface Directorypublic void setAttributes(Map<String,String> attributes)
attributes must be a mutable Map.attributes - new attributespublic Set<OperationType> getAllowedOperations()
getAllowedOperations in interface Directorypublic void addAllowedOperation(OperationType operationType)
public void setAllowedOperations(Set<OperationType> allowedOperations)
public String getLowerImplementationClass()
public String getLowerName()
public String getDescription()
getDescription in interface Directorypublic DirectoryType getType()
public String getImplementationClass()
getImplementationClass 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)
getValues in interface Attributesname - attribute name.null
if the directory does not have the attribute.public String getValue(String name)
getValue in interface Attributespublic Set<String> getKeys()
getKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributespublic void removeAttribute(String name)
public void validate()
public boolean equals(Object o)
equals in class InternalEntitypublic int hashCode()
hashCode in class InternalEntityCopyright © 2018 Atlassian. All rights reserved.