|
||||||||||
| 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
com.atlassian.crowd.integration.directory.connector.RFC2307Directory
com.atlassian.crowd.integration.directory.connector.Rfc2307
public class Rfc2307
This class provides read-only support for the POSIX LDAP Schema (RFC2307)
| Field Summary |
|---|
| Fields inherited from class com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector |
|---|
applicationContext, attributes, contextSource, DEFAULT_PAGE_SIZE, eventManager, ldapPropertiesMapper, ldapQueryTranslater, ldapTemplate, logger, nameConverter, searchDN |
| Constructor Summary | |
|---|---|
Rfc2307()
|
|
| Method Summary | |
|---|---|
Group |
addGroup(GroupTemplate group)
Adds a group to the directory store. |
void |
addGroupToGroup(java.lang.String childGroup,
java.lang.String parentGroup)
Adds a group as a member of a parent group. |
LDAPUserWithAttributes |
addUser(UserTemplate user,
PasswordCredential credential)
Adds a user to the directory store. |
void |
addUserToGroup(java.lang.String username,
java.lang.String groupName)
Adds a user as a member of a group. |
protected java.lang.String |
encodePassword(java.lang.String unencodedPassword)
Translates a clear-text password into an encrypted one, based on the directory settings. |
java.lang.String |
getDescriptiveName()
Returns a descriptive name for the type of directory. |
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. |
static java.lang.String |
getStaticDirectoryType()
|
void |
removeGroup(java.lang.String name)
Removes the group that matches the supplied name. |
void |
removeGroupFromGroup(java.lang.String childGroup,
java.lang.String parentGroup)
Removes a group as a member of a parent group. |
void |
removeUser(java.lang.String name)
Removes the user that matches the supplied name. |
void |
removeUserFromGroup(java.lang.String username,
java.lang.String groupName)
Removes a user as a member of a group. |
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. |
Group |
updateGroup(GroupTemplate group)
Updates the group. |
User |
updateUser(UserTemplate user)
Updates the user. |
| Methods inherited from class com.atlassian.crowd.integration.directory.connector.RFC2307Directory |
|---|
getCustomGroupAttributeMappers, getCustomUserAttributeMappers, isGroupDirectGroupMember, isUserDirectGroupMember, searchGroupRelationshipsWithGroupTypeSpecified, supportsNestedGroups |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Rfc2307()
| Method Detail |
|---|
public static java.lang.String getStaticDirectoryType()
protected java.lang.String encodePassword(java.lang.String unencodedPassword)
encodePassword in class SpringLDAPConnectorunencodedPassword - password
protected void getNewUserDirectorySpecificAttributes(User user,
javax.naming.directory.Attributes attributes)
SpringLDAPConnectoraddBlankSnToUserAttributes.
getNewUserDirectorySpecificAttributes in class SpringLDAPConnectoruser - The (potential) source of information that needs to be addedattributes - The attributes to add directory-specific information topublic java.lang.String getDescriptiveName()
RemoteDirectory
public void addUserToGroup(java.lang.String username,
java.lang.String groupName)
throws ObjectNotFoundException
RemoteDirectorychildGroup will
appear as members of parentGroup to querying applications.
username - The user that will become a member of groupNamegroupName - The group that will gain a new member.
ObjectNotFoundException - If the user or group cannot be found.
public void addGroupToGroup(java.lang.String childGroup,
java.lang.String parentGroup)
throws ObjectNotFoundException
RemoteDirectory
childGroup - The group that will become a member of parentGroupparentGroup - The group that will gain a new member
ObjectNotFoundException - One or both of the groups cannot be found.
public void removeUserFromGroup(java.lang.String username,
java.lang.String groupName)
throws ObjectNotFoundException
RemoteDirectory
username - The user that will be removed from parentGroupgroupName - The group that will lose the member.
ObjectNotFoundException - If either the user or group cannot be found.
public void removeGroupFromGroup(java.lang.String childGroup,
java.lang.String parentGroup)
throws ObjectNotFoundException
RemoteDirectory
childGroup - The group that will be removed from parentGroupparentGroup - The group that will lose the member.
ObjectNotFoundException - One or both of the groups cannot be found.
public LDAPUserWithAttributes addUser(UserTemplate user,
PasswordCredential credential)
throws InvalidUserException,
InvalidCredentialException,
ObjectNotFoundException
RemoteDirectoryuser to the directory store.
addUser in interface RemoteDirectoryaddUser in class SpringLDAPConnectoruser - 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.
public Group addGroup(GroupTemplate group)
throws InvalidGroupException,
ObjectNotFoundException
RemoteDirectorygroup to the directory store.
addGroup in interface RemoteDirectoryaddGroup in class SpringLDAPConnectorgroup - 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 renameGroup(java.lang.String oldName,
java.lang.String newName)
throws ObjectNotFoundException,
InvalidGroupException
RemoteDirectorygroup.
renameGroup in interface RemoteDirectoryrenameGroup in class SpringLDAPConnectoroldName - 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 User renameUser(java.lang.String oldName,
java.lang.String newName)
throws ObjectNotFoundException,
InvalidUserException
RemoteDirectoryuser.
renameUser in interface RemoteDirectoryrenameUser in class SpringLDAPConnectoroldName - 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 Group updateGroup(GroupTemplate group)
throws ObjectNotFoundException
RemoteDirectorygroup.
updateGroup in interface RemoteDirectoryupdateGroup in class SpringLDAPConnectorgroup - The group to update.
ObjectNotFoundException - the group does not exist in the directory store.
public User updateUser(UserTemplate user)
throws ObjectNotFoundException
RemoteDirectoryuser.
updateUser in interface RemoteDirectoryupdateUser in class SpringLDAPConnectoruser - The user to update.
ObjectNotFoundException - the user does not exist in the directory store.
public void removeUser(java.lang.String name)
throws ObjectNotFoundException
RemoteDirectoryuser that matches the supplied name.
removeUser in interface RemoteDirectoryremoveUser in class SpringLDAPConnectorname - The name of the user (username).
ObjectNotFoundException - The user does not exist.
public void removeGroup(java.lang.String name)
throws ObjectNotFoundException
RemoteDirectorygroup that matches the supplied name.
removeGroup in interface RemoteDirectoryremoveGroup in class SpringLDAPConnectorname - The name of the group.
ObjectNotFoundException - The group does not exist.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||