|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.model.InternalEntity
com.atlassian.crowd.model.directory.DirectoryImpl
public class DirectoryImpl
Implementation of Directory (designed for use with Hibernate).
| Field Summary | |
|---|---|
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_ENCRYPTION_METHOD
|
static char |
AUTO_ADD_GROUPS_SEPARATOR
|
static Set<String> |
PASSWORD_ATTRIBUTES
|
static String |
SANITISED_PASSWORD
|
| Fields inherited from class com.atlassian.crowd.model.InternalEntity |
|---|
active, createdDate, id, name, updatedDate |
| Constructor Summary | |
|---|---|
DirectoryImpl()
|
|
DirectoryImpl(com.atlassian.crowd.embedded.api.Directory directory)
|
|
DirectoryImpl(InternalEntityTemplate template)
Used for importing via XML migration. |
|
DirectoryImpl(String name,
com.atlassian.crowd.embedded.api.DirectoryType type,
String implementationClass)
|
|
| Method Summary | |
|---|---|
void |
addAllowedOperation(com.atlassian.crowd.embedded.api.OperationType operationType)
|
boolean |
equals(Object o)
|
Set<com.atlassian.crowd.embedded.api.OperationType> |
getAllowedOperations()
|
Map<String,String> |
getAttributes()
|
String |
getDescription()
|
String |
getEncryptionType()
|
RemoteDirectory |
getImplementation()
Deprecated. Use a DirectoryInstanceLoader. |
String |
getImplementationClass()
|
Set<String> |
getKeys()
|
String |
getLowerImplementationClass()
|
String |
getLowerName()
|
RemoteDirectory |
getRawImplementation()
Deprecated. Use a DirectoryInstanceLoader. |
com.atlassian.crowd.embedded.api.DirectoryType |
getType()
|
String |
getValue(String name)
|
Set<String> |
getValues(String name)
|
int |
hashCode()
|
boolean |
isEmpty()
|
void |
removeAttribute(String name)
|
void |
setActive(boolean active)
|
void |
setAllowedOperations(Set<com.atlassian.crowd.embedded.api.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(com.atlassian.crowd.embedded.api.DirectoryType type)
|
String |
toString()
|
void |
updateAttributesFrom(Map<String,String> attributes)
|
void |
updateDetailsFrom(com.atlassian.crowd.embedded.api.Directory directory)
|
void |
validate()
|
| Methods inherited from class com.atlassian.crowd.model.InternalEntity |
|---|
getCreatedDate, getId, getName, getUpdatedDate, isActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNow |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.atlassian.crowd.embedded.api.Directory |
|---|
getCreatedDate, getId, getName, getUpdatedDate, isActive |
| Field Detail |
|---|
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 char AUTO_ADD_GROUPS_SEPARATOR
public static final Set<String> PASSWORD_ATTRIBUTES
public static final String SANITISED_PASSWORD
| Constructor Detail |
|---|
public DirectoryImpl()
public DirectoryImpl(InternalEntityTemplate template)
template - directory template.
public DirectoryImpl(String name,
com.atlassian.crowd.embedded.api.DirectoryType type,
String implementationClass)
public DirectoryImpl(com.atlassian.crowd.embedded.api.Directory directory)
| Method Detail |
|---|
public void updateDetailsFrom(com.atlassian.crowd.embedded.api.Directory directory)
public void updateAttributesFrom(Map<String,String> attributes)
public RemoteDirectory getImplementation()
throws DirectoryInstantiationException
DirectoryInstanceLoader.
implementationClass for this directory.
RemoteDirectory.
DirectoryInstantiationException - If the loading of the RemoteDirectory fails.
public RemoteDirectory getRawImplementation()
throws DirectoryInstantiationException
DirectoryInstanceLoader.
DirectoryInstantiationExceptionpublic String getEncryptionType()
getEncryptionType in interface com.atlassian.crowd.embedded.api.Directorypublic Map<String,String> getAttributes()
getAttributes in interface com.atlassian.crowd.embedded.api.Directorypublic void setAttributes(Map<String,String> attributes)
attributes must be a mutable Map.
attributes - new attributespublic Set<com.atlassian.crowd.embedded.api.OperationType> getAllowedOperations()
getAllowedOperations in interface com.atlassian.crowd.embedded.api.Directorypublic void addAllowedOperation(com.atlassian.crowd.embedded.api.OperationType operationType)
public void setAllowedOperations(Set<com.atlassian.crowd.embedded.api.OperationType> allowedOperations)
public String getLowerImplementationClass()
public String getLowerName()
public String getDescription()
getDescription in interface com.atlassian.crowd.embedded.api.Directorypublic com.atlassian.crowd.embedded.api.DirectoryType getType()
getType in interface com.atlassian.crowd.embedded.api.Directorypublic String getImplementationClass()
getImplementationClass in interface com.atlassian.crowd.embedded.api.Directorypublic void setDescription(String description)
public void setType(com.atlassian.crowd.embedded.api.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 com.atlassian.crowd.embedded.api.Attributesname - attribute name.
null
if the directory does not have the attribute.public String getValue(String name)
getValue in interface com.atlassian.crowd.embedded.api.Attributespublic Set<String> getKeys()
getKeys in interface com.atlassian.crowd.embedded.api.Attributespublic boolean isEmpty()
isEmpty in interface com.atlassian.crowd.embedded.api.Attributes
public void setAttribute(String name,
String value)
public void removeAttribute(String name)
public void validate()
public boolean equals(Object o)
equals in class InternalEntitypublic int hashCode()
hashCode in class InternalEntitypublic final String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||