|
||||||||||
| 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 java.lang.String |
ATTRIBUTE_KEY_AUTO_ADD_GROUPS
|
static java.lang.String |
ATTRIBUTE_KEY_USE_NESTED_GROUPS
|
static java.lang.String |
ATTRIBUTE_KEY_USER_ENCRYPTION_METHOD
|
static char |
AUTO_ADD_GROUPS_SEPARATOR
|
| Fields inherited from class com.atlassian.crowd.model.InternalEntity |
|---|
active, createdDate, id, name, updatedDate |
| Constructor Summary | |
|---|---|
DirectoryImpl()
|
|
DirectoryImpl(Directory directory)
|
|
DirectoryImpl(InternalEntityTemplate template)
Used for importing via XML migration. |
|
DirectoryImpl(java.lang.String name,
DirectoryType type,
java.lang.String implementationClass)
|
|
| Method Summary | |
|---|---|
void |
addAllowedOperation(OperationType operationType)
|
boolean |
equals(java.lang.Object o)
|
java.util.Set<OperationType> |
getAllowedOperations()
Returns the operations allowed to be performed on this directory. |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Returns the attributes of the directory. |
java.lang.String |
getDescription()
Returns a description of the directory. |
java.lang.String |
getEncryptionType()
Returns the encryption algorithm used by the directory. |
RemoteDirectory |
getImplementation()
Loads the implementationClass for this directory. |
java.lang.String |
getImplementationClass()
Returns the fully qualified name of the class that implements the directory. |
java.util.Set<java.lang.String> |
getKeys()
Gets all the keys of the attributes. |
java.lang.String |
getLowerImplementationClass()
|
java.lang.String |
getLowerName()
|
RemoteDirectory |
getRawImplementation()
|
DirectoryType |
getType()
Returns the type of the directory. |
java.lang.String |
getTypeAsString()
|
java.lang.String |
getValue(java.lang.String name)
Returns any value associated with the given key, returns null if there is no value. |
java.util.Set<java.lang.String> |
getValues(java.lang.String name)
Get all the values associated with a given key. |
int |
hashCode()
|
boolean |
isEmpty()
|
void |
removeAttribute(java.lang.String name)
|
void |
setActive(boolean active)
|
void |
setAllowedOperations(java.util.Set<OperationType> allowedOperations)
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Sets the attributes of the directory. |
void |
setDescription(java.lang.String description)
|
void |
setImplementationClass(java.lang.String implementationClass)
|
void |
setName(java.lang.String name)
|
void |
setType(DirectoryType type)
|
java.lang.String |
toString()
|
void |
updateAttributesFrom(java.util.Map<java.lang.String,java.lang.String> attributes)
|
void |
updateDetailsFrom(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 java.lang.String ATTRIBUTE_KEY_USER_ENCRYPTION_METHOD
public static final java.lang.String ATTRIBUTE_KEY_USE_NESTED_GROUPS
public static final java.lang.String ATTRIBUTE_KEY_AUTO_ADD_GROUPS
public static final char AUTO_ADD_GROUPS_SEPARATOR
| Constructor Detail |
|---|
public DirectoryImpl()
public DirectoryImpl(InternalEntityTemplate template)
template - directory template.
public DirectoryImpl(java.lang.String name,
DirectoryType type,
java.lang.String implementationClass)
public DirectoryImpl(Directory directory)
| Method Detail |
|---|
public void updateDetailsFrom(Directory directory)
public void updateAttributesFrom(java.util.Map<java.lang.String,java.lang.String> attributes)
public RemoteDirectory getImplementation()
throws DirectoryInstantiationException
implementationClass for this directory.
RemoteDirectory.
DirectoryInstantiationException - If the loading of the RemoteDirectory fails.
public RemoteDirectory getRawImplementation()
throws DirectoryInstantiationException
DirectoryInstantiationExceptionpublic java.lang.String getEncryptionType()
Directory
getEncryptionType in interface Directorypublic java.util.Map<java.lang.String,java.lang.String> getAttributes()
Directory
getAttributes in interface Directorypublic void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes must be a mutable Map.
attributes - new attributespublic java.util.Set<OperationType> getAllowedOperations()
Directory
getAllowedOperations in interface Directorypublic void addAllowedOperation(OperationType operationType)
public void setAllowedOperations(java.util.Set<OperationType> allowedOperations)
public java.lang.String getLowerImplementationClass()
public java.lang.String getLowerName()
public java.lang.String getDescription()
Directory
getDescription in interface Directorypublic DirectoryType getType()
Directory
getType in interface DirectoryDirectoryTypepublic java.lang.String getTypeAsString()
public java.lang.String getImplementationClass()
Directory
getImplementationClass in interface Directorypublic void setDescription(java.lang.String description)
public void setType(DirectoryType type)
public void setImplementationClass(java.lang.String implementationClass)
public void setName(java.lang.String name)
setName in class InternalEntitypublic void setActive(boolean active)
setActive in class InternalEntitypublic java.util.Set<java.lang.String> getValues(java.lang.String name)
Attributes
getValues in interface Attributesname - attribute name.
null
if the directory does not have the attribute.public java.lang.String getValue(java.lang.String name)
Attributesnull if there is no value.
getValue in interface Attributesname - the key to retrieve the value for
null if there is no valuepublic java.util.Set<java.lang.String> getKeys()
Attributes
getKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributes
public void setAttribute(java.lang.String name,
java.lang.String value)
public void removeAttribute(java.lang.String name)
public void validate()
public boolean equals(java.lang.Object o)
equals in class InternalEntitypublic int hashCode()
hashCode in class InternalEntitypublic final java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||