|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.integration.directory.connector.SpringLDAPConnector
public abstract class SpringLDAPConnector
| Field Summary | |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext
|
protected AttributeValuesHolder |
attributes
|
protected org.springframework.ldap.core.support.LdapContextSource |
contextSource
|
static int |
DEFAULT_PAGE_SIZE
|
protected com.atlassian.event.EventManager |
eventManager
|
protected LDAPPropertiesMapper |
ldapPropertiesMapper
|
protected LDAPQueryTranslater |
ldapQueryTranslater
|
protected org.springframework.ldap.core.LdapTemplate |
ldapTemplate
|
protected org.apache.log4j.Logger |
logger
|
protected Converter |
nameConverter
|
protected SearchDN |
searchDN
|
| Constructor Summary | |
|---|---|
SpringLDAPConnector()
|
|
| Method Summary | ||
|---|---|---|
protected void |
addDefaultSnToUserAttributes(javax.naming.directory.Attributes attrs,
java.lang.String defaultSnValue)
A default install of many directory servers (inc. |
|
protected void |
addDefaultValueToUserAttributesForAttribute(java.lang.String attributeName,
javax.naming.directory.Attributes attrs,
java.lang.String defaultValue)
|
|
Group |
addGroup(GroupTemplate group)
Adds a group to the directory store. |
|
LDAPUserWithAttributes |
addUser(UserTemplate user,
PasswordCredential credential)
Adds a user to the directory store. |
|
protected javax.naming.ldap.LdapName |
asLdapName(java.lang.String dn,
java.lang.Class objectType)
This method is required to wrap DN's into LdapNames as spring-ldap doesn't correctly handle operations with String dn arguments. |
|
User |
authenticate(java.lang.String name,
PasswordCredential credential)
Authenticates a user with the directory store. |
|
protected abstract java.lang.String |
encodePassword(java.lang.String unencodedPassword)
Given an plain-text password, encodes/encrypts it according to the settings required by the particular directory connector. |
|
|
findEntityByDN(java.lang.String dn,
java.lang.Class<T> entityClass)
Finds a directory entity (principal, group or role) by their distinguished name. |
|
protected
|
findEntityByDN(java.lang.String dn,
java.lang.String baseDN,
java.lang.String filter,
org.springframework.ldap.core.ContextMapper contextMapper,
java.lang.Class<T> entityClass)
|
|
LDAPGroupWithAttributes |
findGroupByName(java.lang.String name)
Finds the group that matches the supplied name. |
|
protected LDAPGroupWithAttributes |
findGroupByNameAndType(java.lang.String name,
GroupType groupType)
|
|
LDAPGroupWithAttributes |
findGroupWithAttributesByName(java.lang.String name)
Finds the group that matches the supplied name. |
|
LDAPUserWithAttributes |
findUserByName(java.lang.String name)
Finds the user that matches the supplied name. |
|
LDAPUserWithAttributes |
findUserWithAttributesByName(java.lang.String name)
Finds the user that matches the supplied name. |
|
java.lang.String |
getAttribute(java.lang.String name)
|
|
boolean |
getAttributeAsBoolean(java.lang.String name,
boolean defaultValue)
|
|
long |
getAttributeAsLong(java.lang.String name,
long defaultValue)
|
|
java.util.Set<java.lang.String> |
getAttributeNames()
|
|
java.util.List<java.lang.String> |
getAttributes(java.lang.String name)
|
|
protected java.util.Hashtable<java.lang.String,java.lang.String> |
getBaseEnvironmentProperties()
Returns the properties used to set up the Ldap ContextSource. |
|
org.springframework.ldap.core.support.LdapContextSource |
getContextSource()
Exposed so that delegated directories can get a handle on the underlying LDAP context. |
|
protected java.util.List<AttributeMapper> |
getCustomGroupAttributeMappers()
As a minimum, this SHOULD provide an attribute mapper that maps the group members attribute (if available). |
|
protected java.util.List<AttributeMapper> |
getCustomUserAttributeMappers()
|
|
long |
getDirectoryId()
Gets the internal unique directoryId of the directory store. |
|
protected Encoder |
getEncoder()
Returns an Encoder that escapes LDAP special characters for use in object names and in DNs. |
|
org.springframework.ldap.core.ContextMapper |
getGroupContextMapper(GroupType groupType)
Returns a ContextMapper ready to translate LDAP objects into Groups and fetches all member objects |
|
protected java.lang.String |
getInitialGroupMemberDN()
Returns the default container member DN. |
|
LDAPPropertiesMapper |
getLdapPropertiesMapper()
|
|
protected javax.naming.directory.Attributes |
getNewGroupAttributes(Group group)
|
|
protected void |
getNewGroupDirectorySpecificAttributes(Group group,
javax.naming.directory.Attributes attributes)
|
|
protected javax.naming.directory.Attributes |
getNewUserAttributes(User user,
PasswordCredential credential)
Translates the User into LDAP attributes, in preparation for creating a new user. |
|
protected void |
getNewUserDirectorySpecificAttributes(User user,
javax.naming.directory.Attributes attributes)
Overridden by sub-classes to add any additional attributes they need when creating a new user. |
|
SearchDN |
getSearchDN()
|
|
protected java.lang.String |
getStandardisedDN(javax.naming.Name dn)
|
|
protected javax.naming.directory.SearchControls |
getSubTreeSearchControl()
|
|
org.springframework.ldap.core.ContextMapper |
getUserContextMapper()
Returns a ContextMapper that can transform a Context into a User. |
|
boolean |
hasAttribute(java.lang.String name)
|
|
protected org.springframework.ldap.core.CollectingNameClassPairCallbackHandler |
pageSearchResults(javax.naming.Name baseDN,
java.lang.String filter,
org.springframework.ldap.core.ContextMapper contextMapper,
javax.naming.directory.SearchControls searchControls,
org.springframework.ldap.core.DirContextProcessor ldapRequestControls,
int maxResults)
Performs a paged results search on an LDAP directory server searching using the LDAP paged results control option to fetch results in chunks rather than all at once. |
|
void |
removeGroup(java.lang.String name)
Removes the group that matches the supplied name. |
|
void |
removeGroupAttributes(java.lang.String groupName,
java.lang.String attributeName)
Removes all the values for a single attribute key for a group. |
|
void |
removeUser(java.lang.String name)
Removes the user that matches the supplied name. |
|
void |
removeUserAttributes(java.lang.String username,
java.lang.String attributeName)
Removes all the values for a single attribute key for a user. |
|
Group |
renameGroup(java.lang.String oldName,
java.lang.String newName)
Renames a group. |
|
User |
renameUser(java.lang.String oldName,
java.lang.String newName)
Renames a user. |
|
protected java.util.List |
searchEntities(javax.naming.Name baseDN,
java.lang.String filter,
org.springframework.ldap.core.ContextMapper contextMapper,
int startIndex,
int maxResults)
Executes a search with paging if paged results is supported. |
|
protected java.util.List |
searchEntitiesWithRequestControls(javax.naming.Name baseDN,
java.lang.String filter,
org.springframework.ldap.core.ContextMapper contextMapper,
javax.naming.directory.SearchControls searchControls,
org.springframework.ldap.core.DirContextProcessor ldapRequestControls,
int startIndex,
int maxResults)
|
|
protected java.util.List<LDAPGroupWithAttributes> |
searchGroupObjects(EntityQuery query)
|
|
protected java.util.List<LDAPGroupWithAttributes> |
searchGroupObjectsOfSpecifiedGroupType(EntityQuery query)
This method expects that the query contains a non-null groupType in the entityDescriptor. |
|
java.util.List |
searchGroupRelationships(MembershipQuery query)
Searches for membership information. |
|
protected abstract java.util.List |
searchGroupRelationshipsWithGroupTypeSpecified(MembershipQuery query)
Execute the search for group relationships given that a group of type GROUP or LEGACY_ROLE has been specified in the EntityDescriptor for the group(s). |
|
java.util.List |
searchGroups(EntityQuery query)
Searches for groups that match the supplied query criteria. |
|
protected java.util.List<LDAPUserWithAttributes> |
searchUserObjects(EntityQuery query)
|
|
java.util.List |
searchUsers(EntityQuery query)
Searches for users that match the supplied query criteria. |
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Called by the DirectoryInstanceLoader after
constructing an InternalDirectory. |
|
void |
setDirectoryId(long id)
Called by the DirectoryInstanceLoader after
constructing an InternalDirectory. |
|
void |
setEventManager(com.atlassian.event.EventManager eventManager)
|
|
void |
setLdapQueryTranslater(LDAPQueryTranslater ldapQueryTranslater)
|
|
void |
storeGroupAttributes(java.lang.String groupName,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> attributes)
Adds or updates a group's attributes with the new Map of attribute values in the directory specified by the passed in directoryId. |
|
void |
storeUserAttributes(java.lang.String username,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> attributes)
Adds or updates a user's attributes with the new Map of attribute values in the directory specified by the passed in directoryId. |
|
boolean |
supportsNestedGroups()
Allows us to only display nested-group related UI for directories that support it. |
|
void |
testConnection()
Test if a connection to the directory server can be established. |
|
Group |
updateGroup(GroupTemplate group)
Updates the group. |
|
User |
updateUser(UserTemplate user)
Updates the user. |
|
void |
updateUserCredential(java.lang.String name,
PasswordCredential credential)
Updates the password for a user. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.crowd.integration.directory.RemoteDirectory |
|---|
addGroupToGroup, addUserToGroup, getDescriptiveName, isGroupDirectGroupMember, isUserDirectGroupMember, removeGroupFromGroup, removeUserFromGroup |
| Field Detail |
|---|
public static final int DEFAULT_PAGE_SIZE
protected final org.apache.log4j.Logger logger
protected AttributeValuesHolder attributes
protected org.springframework.ldap.core.LdapTemplate ldapTemplate
protected LDAPPropertiesMapper ldapPropertiesMapper
protected org.springframework.ldap.core.support.LdapContextSource contextSource
protected Converter nameConverter
protected SearchDN searchDN
protected org.springframework.context.ApplicationContext applicationContext
protected LDAPQueryTranslater ldapQueryTranslater
protected com.atlassian.event.EventManager eventManager
| Constructor Detail |
|---|
public SpringLDAPConnector()
| Method Detail |
|---|
public long getDirectoryId()
RemoteDirectorydirectoryId of the directory store.
getDirectoryId in interface RemoteDirectorydirectoryId.public void setDirectoryId(long id)
DirectoryInstanceLoader after
constructing an InternalDirectory.
setDirectoryId in interface RemoteDirectoryid - The unique id of the Directory stored in the database.public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
DirectoryInstanceLoader after
constructing an InternalDirectory.
setAttributes in interface RemoteDirectoryattributes - attributes map.public org.springframework.ldap.core.support.LdapContextSource getContextSource()
public LDAPPropertiesMapper getLdapPropertiesMapper()
public java.util.List<java.lang.String> getAttributes(java.lang.String name)
getAttributes in interface AttributeAwarename - attribute name.
public java.lang.String getAttribute(java.lang.String name)
getAttribute in interface AttributeAwarename - attribute name.
null
if the attribute with the given name does not exist.
If multiple attribute values exist, any one could be
returned.
public long getAttributeAsLong(java.lang.String name,
long defaultValue)
public boolean getAttributeAsBoolean(java.lang.String name,
boolean defaultValue)
public java.util.Set<java.lang.String> getAttributeNames()
getAttributeNames in interface AttributeAwarepublic boolean hasAttribute(java.lang.String name)
hasAttribute in interface AttributeAwarename - attribute name.
true if an only if the
user has an attribute with the supplied name
and has one or more values.public SearchDN getSearchDN()
protected javax.naming.directory.SearchControls getSubTreeSearchControl()
protected Encoder getEncoder()
protected java.util.Hashtable<java.lang.String,java.lang.String> getBaseEnvironmentProperties()
protected org.springframework.ldap.core.CollectingNameClassPairCallbackHandler pageSearchResults(javax.naming.Name baseDN,
java.lang.String filter,
org.springframework.ldap.core.ContextMapper contextMapper,
javax.naming.directory.SearchControls searchControls,
org.springframework.ldap.core.DirContextProcessor ldapRequestControls,
int maxResults)
baseDN - The DN to beging the search from.filter - The search filter.contextMapper - Maps from LDAP search results into objects such as Groups.searchControls - The LDAP search scope type.ldapRequestControls - Any LDAP request controls (set to null if you do not need additional request controls for the search).maxResults - maximum number of results to return. Set to -1 if no result limiting is desired (WARNING: doing so is obviously a hazard).
protected java.util.List searchEntities(javax.naming.Name baseDN,
java.lang.String filter,
org.springframework.ldap.core.ContextMapper contextMapper,
int startIndex,
int maxResults)
baseDN - base DN of search.filter - encoded LDAP search filter.contextMapper - directory context to object mapper.startIndex - index to start at. Set to 0 to start from the first result.maxResults - maximum number of results to return. Set to -1 if no result limiting is desired (WARNING: doing so is obviously a hazard).
protected java.util.List searchEntitiesWithRequestControls(javax.naming.Name baseDN,
java.lang.String filter,
org.springframework.ldap.core.ContextMapper contextMapper,
javax.naming.directory.SearchControls searchControls,
org.springframework.ldap.core.DirContextProcessor ldapRequestControls,
int startIndex,
int maxResults)
public org.springframework.ldap.core.ContextMapper getUserContextMapper()
protected java.util.List<AttributeMapper> getCustomUserAttributeMappers()
public org.springframework.ldap.core.ContextMapper getGroupContextMapper(GroupType groupType)
protected java.util.List<AttributeMapper> getCustomGroupAttributeMappers()
public LDAPUserWithAttributes findUserByName(java.lang.String name)
throws ObjectNotFoundException
RemoteDirectoryuser that matches the supplied name.
findUserByName in interface RemoteDirectoryname - the name of the user (username).
ObjectNotFoundException - a user with the supplied name does not exist.
public LDAPUserWithAttributes findUserWithAttributesByName(java.lang.String name)
throws ObjectNotFoundException
RemoteDirectoryuser that matches the supplied name.
findUserWithAttributesByName in interface RemoteDirectoryname - the name of the user (username).
ObjectNotFoundException - a user with the supplied name does not exist.protected java.util.List<LDAPUserWithAttributes> searchUserObjects(EntityQuery query)
public void removeUser(java.lang.String name)
throws ObjectNotFoundException
RemoteDirectoryuser that matches the supplied name.
removeUser in interface RemoteDirectoryname - The name of the user (username).
ObjectNotFoundException - The user does not exist.
public void updateUserCredential(java.lang.String name,
PasswordCredential credential)
throws ObjectNotFoundException,
InvalidCredentialException
RemoteDirectorypassword for a user.
updateUserCredential in interface RemoteDirectoryname - The name of the user (username).credential - The new credential (password).
ObjectNotFoundException - The user does not exist.
InvalidCredentialException - The supplied credential is invalid.
public User renameUser(java.lang.String oldName,
java.lang.String newName)
throws ObjectNotFoundException,
InvalidUserException
RemoteDirectoryuser.
renameUser in interface RemoteDirectoryoldName - name of existing user.newName - desired name of user.
ObjectNotFoundException - if the user with the existing name does not exist.
InvalidUserException - if the new username is invalid or already exists in the directory.
public void storeUserAttributes(java.lang.String username,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> attributes)
throws ObjectNotFoundException
RemoteDirectorydirectoryId.
The attributes map represents new or updated attributes and does not replace existing attributes unless the key of an attribute
matches the key of an existing
storeUserAttributes in interface RemoteDirectoryusername - name of user to update.attributes - new or updated attributes (attributes that don't need changing should not appear in this Map).
ObjectNotFoundException - user with supplied username does not exist.
public void removeUserAttributes(java.lang.String username,
java.lang.String attributeName)
throws ObjectNotFoundException
RemoteDirectory
removeUserAttributes in interface RemoteDirectoryusername - name of the user to update.attributeName - name of attribute to remove.
ObjectNotFoundException - user with supplied username does not exist.
protected javax.naming.directory.Attributes getNewUserAttributes(User user,
PasswordCredential credential)
throws InvalidCredentialException,
org.springframework.ldap.NamingException
User into LDAP attributes, in preparation for creating a new user.
user - The user object to translate into LDAP attributescredential - raw password.
InvalidCredentialException - The password, if supplied, was invalid in some manner.
org.springframework.ldap.NamingException - If the User could not be translated to an Attributes
protected void getNewUserDirectorySpecificAttributes(User user,
javax.naming.directory.Attributes attributes)
addBlankSnToUserAttributes.
user - The (potential) source of information that needs to be addedattributes - The attributes to add directory-specific information to
public LDAPUserWithAttributes addUser(UserTemplate user,
PasswordCredential credential)
throws InvalidUserException,
InvalidCredentialException,
ObjectNotFoundException
RemoteDirectoryuser to the directory store.
addUser in interface RemoteDirectoryuser - template of the user to add.credential - password. May be null, since JIRA creates a user in two steps (user THEN password)
InvalidUserException - The supplied user is invalid.
InvalidCredentialException - The supplied credential is invalid.
ObjectNotFoundException - The user could not be looked up after creation or the directory with the ID of user.directoryId does not exist.
protected void addDefaultSnToUserAttributes(javax.naming.directory.Attributes attrs,
java.lang.String defaultSnValue)
sn if it's not present in the
information provided.
attrs - The LDAP user attributes to be checked and potentially updated.defaultSnValue - default lastname/surname value
protected void addDefaultValueToUserAttributesForAttribute(java.lang.String attributeName,
javax.naming.directory.Attributes attrs,
java.lang.String defaultValue)
public <T extends LDAPDirectoryEntity> T findEntityByDN(java.lang.String dn,
java.lang.Class<T> entityClass)
throws ObjectNotFoundException
LDAPDirectory
findEntityByDN in interface LDAPDirectorydn - standardised disinguished name.entityClass - class of the entity to find (either LDAPUserWithAttributes or LDAPGroupWithAttributes).
ObjectNotFoundException - if a user/group
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.
protected <T extends LDAPDirectoryEntity> T findEntityByDN(java.lang.String dn,
java.lang.String baseDN,
java.lang.String filter,
org.springframework.ldap.core.ContextMapper contextMapper,
java.lang.Class<T> entityClass)
throws ObjectNotFoundException,
javax.naming.InvalidNameException
ObjectNotFoundException
javax.naming.InvalidNameException
public User updateUser(UserTemplate user)
throws ObjectNotFoundException
RemoteDirectoryuser.
updateUser in interface RemoteDirectoryuser - The user to update.
ObjectNotFoundException - the user does not exist in the directory store.public java.util.List searchUsers(EntityQuery query)
RemoteDirectoryusers that match the supplied query criteria.
searchUsers in interface RemoteDirectoryquery - EntityQuery for Entity.USER.
List<User> or List<String> of users/usernames
matching the search criteria. An empty List will be returned
if no users matching the criteria are found.
public User authenticate(java.lang.String name,
PasswordCredential credential)
throws InvalidAuthenticationException,
ObjectNotFoundException
RemoteDirectoryuser with the directory store.
authenticate in interface RemoteDirectoryname - The name of the user (username).credential - The supplied credentials (password).
InvalidAuthenticationException - Authentication with the provided credentials failed.
ObjectNotFoundException - The user wth the supplied name does not exist.
public LDAPGroupWithAttributes findGroupByName(java.lang.String name)
throws ObjectNotFoundException
RemoteDirectorygroup that matches the supplied name.
findGroupByName in interface RemoteDirectoryname - the name of the group.
ObjectNotFoundException - a group with the supplied name does not exist.
public LDAPGroupWithAttributes findGroupWithAttributesByName(java.lang.String name)
throws ObjectNotFoundException
RemoteDirectorygroup that matches the supplied name.
findGroupWithAttributesByName in interface RemoteDirectoryname - the name of the group.
ObjectNotFoundException - a group with the supplied name does not exist.
protected LDAPGroupWithAttributes findGroupByNameAndType(java.lang.String name,
GroupType groupType)
throws ObjectNotFoundException
ObjectNotFoundExceptionprotected java.util.List<LDAPGroupWithAttributes> searchGroupObjectsOfSpecifiedGroupType(EntityQuery query)
query - search query.
protected java.util.List<LDAPGroupWithAttributes> searchGroupObjects(EntityQuery query)
public java.util.List searchGroups(EntityQuery query)
RemoteDirectorygroups that match the supplied query criteria.
searchGroups in interface RemoteDirectoryquery - EntityQuery for Entity.GROUP.
List or List of groups/groupnames
matching the search criteria. An empty List will be returned
if no groups matching the criteria are found.
protected javax.naming.directory.Attributes getNewGroupAttributes(Group group)
throws org.springframework.ldap.NamingException
org.springframework.ldap.NamingException
protected void getNewGroupDirectorySpecificAttributes(Group group,
javax.naming.directory.Attributes attributes)
protected java.lang.String getInitialGroupMemberDN()
null, no member
DN will be added.
public Group addGroup(GroupTemplate group)
throws InvalidGroupException,
ObjectNotFoundException
RemoteDirectorygroup to the directory store.
addGroup in interface RemoteDirectorygroup - template of the group to add.
InvalidGroupException - The supplied group is invalid.
ObjectNotFoundException - The group could not be looked up after creation or the directory with the ID of group.directoryId does not exist.
public Group updateGroup(GroupTemplate group)
throws ObjectNotFoundException
RemoteDirectorygroup.
updateGroup in interface RemoteDirectorygroup - The group to update.
ObjectNotFoundException - the group does not exist in the directory store.
public void removeGroup(java.lang.String name)
throws ObjectNotFoundException
RemoteDirectorygroup that matches the supplied name.
removeGroup in interface RemoteDirectoryname - The name of the group.
ObjectNotFoundException - The group does not exist.
public Group renameGroup(java.lang.String oldName,
java.lang.String newName)
throws ObjectNotFoundException,
InvalidGroupException
RemoteDirectorygroup.
renameGroup in interface RemoteDirectoryoldName - name of existing group.newName - desired name of group.
ObjectNotFoundException - if the group with the existing name does not exist.
InvalidGroupException - if the new groupname is invalid or already exists in the directory.
public void storeGroupAttributes(java.lang.String groupName,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> attributes)
throws ObjectNotFoundException
RemoteDirectorydirectoryId.
The attributes map represents new or updated attributes and does not replace existing attributes unless the key of an attribute
matches the key of an existing
storeGroupAttributes in interface RemoteDirectorygroupName - name of group to update.attributes - new or updated attributes (attributes that don't need changing should not appear in this Map).
ObjectNotFoundException - group with supplied groupName does not exist.
public void removeGroupAttributes(java.lang.String groupName,
java.lang.String attributeName)
throws ObjectNotFoundException
RemoteDirectory
removeGroupAttributes in interface RemoteDirectorygroupName - name of the group to update.attributeName - name of attribute to remove.
ObjectNotFoundException - group with supplied groupName does not exist.public java.util.List searchGroupRelationships(MembershipQuery query)
RemoteDirectory
searchGroupRelationships in interface RemoteDirectoryquery - query for memberships.
protected abstract java.util.List searchGroupRelationshipsWithGroupTypeSpecified(MembershipQuery query)
query - membership query with all GroupType's not null.
protected abstract java.lang.String encodePassword(java.lang.String unencodedPassword)
throws InvalidCredentialException
unencodedPassword - The password to be transformed
InvalidCredentialException - If the password could not be converted.public boolean supportsNestedGroups()
RemoteDirectory
supportsNestedGroups in interface RemoteDirectory
public void testConnection()
throws DirectoryAccessException
RemoteDirectory
testConnection in interface RemoteDirectoryDirectoryAccessException - An unknown wire exception occurred.protected java.lang.String getStandardisedDN(javax.naming.Name dn)
protected javax.naming.ldap.LdapName asLdapName(java.lang.String dn,
java.lang.Class objectType)
throws ObjectNotFoundException
dn - string version of DN.objectType - incase there is a problem converting the dn into an LdapName an ONFE with this type will be thrown.
ObjectNotFoundException - underlying InvalidNameException.public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic void setEventManager(com.atlassian.event.EventManager eventManager)
public void setLdapQueryTranslater(LDAPQueryTranslater ldapQueryTranslater)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||