|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.framework.security.identity.ldap.LdapFunctions
com.esri.gpt.framework.security.identity.ldap.LdapEditFunctions
public class LdapEditFunctions
Handles functionality related to editing an LDAP identity store.
| Constructor Summary | |
|---|---|
protected |
LdapEditFunctions()
Default constructor. |
protected |
LdapEditFunctions(LdapConfiguration configuration)
Construct with a supplied configuration. |
| Method Summary | |
|---|---|
protected void |
addAttribute(DirContext dirContext,
String objectDN,
Attributes attributes)
Adds and attribute(s) to an LDAP object. |
protected void |
addEntry(DirContext dirContext,
String objectDN,
Attributes attributes)
Adds an entry to LDAP. |
protected void |
addUserToGroup(DirContext dirContext,
User user,
String groupDn)
Adds user to group. |
protected void |
addUserToRole(DirContext dirContext,
User user,
String role)
Adds user to role. |
RequestContext |
extractRequestContext()
Extract the request context. |
protected User |
recoverUserPassword(DirContext dirContext,
String username,
String emailAddress)
Recovers a password. |
protected void |
registerUser(DirContext dirContext,
User user)
Register a new user. |
protected void |
removeEntry(DirContext dirContext,
String objectDN,
Attributes attributes)
Removes an attribute(s) from an LDAP object. |
protected void |
removeUserFromGroup(DirContext dirContext,
User user,
String groupDn)
Removes user from group. |
protected void |
updateUserPassword(DirContext dirContext,
User user,
UsernamePasswordCredentials newCredentials)
Updates the password for a user. |
protected void |
updateUserProfile(DirContext dirContext,
User user,
boolean considerUsername,
boolean considerPassword)
Updates the profile attributes for a user. |
| Methods inherited from class com.esri.gpt.framework.security.identity.ldap.LdapFunctions |
|---|
buildFullDN, closeEnumeration, getConfiguration, setConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected LdapEditFunctions()
protected LdapEditFunctions(LdapConfiguration configuration)
configuration - the configuration| Method Detail |
|---|
protected void addAttribute(DirContext dirContext,
String objectDN,
Attributes attributes)
throws NamingException
dirContext - the directory contextobjectDN - the distinguished name for the object to modifyattributes - the attribute collection to add
NamingException - if an exception occurs
protected void addEntry(DirContext dirContext,
String objectDN,
Attributes attributes)
throws NamingException
dirContext - the directory contextobjectDN - the distinguished name for the new entryattributes - the attributes for the new entry
NamingException - if an exception occurs
protected User recoverUserPassword(DirContext dirContext,
String username,
String emailAddress)
throws NamingException
dirContext - the directory contextusername - the usernameemailAddress - the email address
NamingException - if an LDAP naming exception occurspublic RequestContext extractRequestContext()
protected void registerUser(DirContext dirContext,
User user)
throws CredentialPolicyException,
NamingException,
NameAlreadyBoundException
dirContext - the directory contextuser - the subject user
CredentialPolicyException - if the username or password is empty
NamingException - if an LDAP naming exception occurs
NameAlreadyBoundException - if the new user DN already exists
protected void addUserToRole(DirContext dirContext,
User user,
String role)
throws CredentialPolicyException,
NamingException
dirContext - the directory contextuser - the subject userrole - the role key for the role
CredentialPolicyException - if the username or password is empty
NamingException - if an LDAP naming exception occurs
NameAlreadyBoundException - if the new user DN already exists
protected void addUserToGroup(DirContext dirContext,
User user,
String groupDn)
throws CredentialPolicyException,
NamingException
dirContext - the directory contextuser - the subject usergroupDn - the dn for the group
CredentialPolicyException - if the username or password is empty
NamingException - if an LDAP naming exception occurs
NameAlreadyBoundException - if the new user DN already exists
protected void removeEntry(DirContext dirContext,
String objectDN,
Attributes attributes)
throws NamingException
dirContext - the directory contextobjectDN - the distinguished name for the object to modifyattributes - the attribute collection to remove
NamingException - if an exception occurs
protected void updateUserProfile(DirContext dirContext,
User user,
boolean considerUsername,
boolean considerPassword)
throws NamingException
dirContext - the directory contextuser - the subject userconsiderUsername - true if the username should be considered for updateconsiderPassword - true if the password should be considered for update
NamingException - if an LDAP naming exception occurs
protected void updateUserPassword(DirContext dirContext,
User user,
UsernamePasswordCredentials newCredentials)
throws NamingException
dirContext - the directory contextuser - the subject usernewCredentials - the credentials containing the new password
NamingException - if an LDAP naming exception occurs
protected void removeUserFromGroup(DirContext dirContext,
User user,
String groupDn)
throws CredentialPolicyException,
IdentityException,
NamingException,
SQLException
user - the subject usergroupDn - the distinguishedName for the ldap group
CredentialPolicyException - if the credentials are invalid
IdentityException - if a system error occurs preventing the action
NamingException - if an LDAP naming exception occurs
SQLException - if a database communication exception occurs
|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||