|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LDAPDirectory
Contains methods specific to LDAP direcotories.
Method Summary | ||
---|---|---|
|
findEntityByDN(String dn,
Class<T> entityClass)
Finds a directory entity (principal, group or role) by their distinguished name. |
Methods inherited from interface com.atlassian.crowd.embedded.api.Attributes |
---|
getKeys, getValue, getValues, isEmpty |
Method Detail |
---|
<T extends LDAPDirectoryEntity> T findEntityByDN(String dn, Class<T> entityClass) throws UserNotFoundException, GroupNotFoundException, OperationFailedException
dn
- standardised distinguished name.entityClass
- class of the entity to find (either LDAPUserWithAttributes
or LDAPGroupWithAttributes
).
UserNotFoundException
- if a user
does not exist at the specified DN or the DN does not
exist in the directory. This will also be thrown if
the entity DOES exist but does not match the base DN
or object filter for the entity type.
GroupNotFoundException
- if a user
does not exist at the specified DN or the DN does not
exist in the directory. This will also be thrown if
the entity DOES exist but does not match the base DN
or object filter for the entity type.
IllegalArgumentException
- if entityClass is not assignable from User or Group.
OperationFailedException
- if underlying directory implementation failed to execute the operation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |