|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.esri.gpt.framework.context.BaseServlet
com.esri.gpt.server.identity.ManageUserServlet
public class ManageUserServlet
Manage User servlet. Provides user role management functionality.
| Constructor Summary | |
|---|---|
ManageUserServlet()
Creates instance of the servlet. |
|
| Method Summary | |
|---|---|
protected Roles |
buildSelectableRoles(RequestContext context)
Builds a collection of configured roles in Geoportal (gpt.xml). |
protected HashMap<String,Object> |
buildUsersList(RequestContext context,
String filter,
String attributeName)
Builds list of ldap users matching filter. |
protected boolean |
checkHasManageUsers(RequestContext context)
Checks if manage user role is enabled |
protected boolean |
checkIfAllowConfigured(RequestContext context)
Checks if manage user role is restricted to configured geoportal roles. |
protected boolean |
checkIfAllowedToManage(RequestContext context,
String groupIdentifier)
Checks if group is allowed to manage. |
protected boolean |
checkIfConfigured(RequestContext context,
String groupIdentifier)
Checks if group is configured. |
protected void |
checkRole(RequestContext context)
Constructs a administrator based upon the user associated with the current request context. |
protected boolean |
checkRole(User user,
String groupDn)
Checks if user role matches provided groups distinguished name. |
protected boolean |
checkSelf(RequestContext context,
String managedUserDn)
Checks if managed user is active user. |
protected void |
execute(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
Process the HTTP request. |
protected void |
executeAddMember(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
Executes a add member action. |
protected void |
executeReadUser(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
Reads user information from ldap. |
protected void |
executeRemoveMember(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
Executes a remove member action. |
protected void |
executeSearch(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
Searches users matching filter in ldap. |
protected void |
executeSearchMembers(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
Searches users matching filter in ldap. |
protected User |
readUserProfile(RequestContext context,
HttpServletRequest request)
Reads user profile from ldap. |
protected String |
serializeUserAsJson(RequestContext context,
User user)
Serializes user information from ldap to json string. |
protected String |
serializeUsersAsJson(RequestContext context,
String filter,
String attributeName,
boolean isMemberSearch)
Serializes list of ldap users matching filter. |
| Methods inherited from class com.esri.gpt.framework.context.BaseServlet |
|---|
authenticate, doGet, doPost, getCredentials, getLogger, getParameterValue, getRealm, readInputCharacters, writeCharacterResponse, writeHtmlResponse, writeXmlResponse |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManageUserServlet()
| Method Detail |
|---|
protected void execute(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
throws Exception
execute in class BaseServletrequest - HTTP request.response - HTTP response.context - request context
ServletException - if error invoking command.
IOException - if error writing to the buffer.
Exception - if an exception occurs
protected void executeSearchMembers(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
throws IdentityException,
IOException,
NamingException,
SQLException
request - HTTP request.response - HTTP response.context - request context
IdentityException - if a system error occurs preventing the action
IOException - if error writing to the buffer
NamingException - if an LDAP naming exception occurs
SQLException
protected void executeSearch(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
throws IdentityException,
IOException,
NamingException,
SQLException
request - HTTP request.response - HTTP response.context - request context
IdentityException - if a system error occurs preventing the action
IOException - if error writing to the buffer
NamingException - if an LDAP naming exception occurs
SQLException
protected void executeReadUser(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
throws Exception
request - HTTP request.response - HTTP response.context - request context
IOException - if error writing to the buffer
IdentityException - if a system error occurs preventing the action
NamingException - if an LDAP naming exception occurs
SQLException - if a database communication exception occurs
Exception
protected String serializeUserAsJson(RequestContext context,
User user)
throws IdentityException,
NamingException
context - request contextuser - the user to be serialized
IdentityException - if a system error occurs preventing the action
NamingException - if an LDAP naming exception occurs
protected void executeAddMember(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
throws Exception
request - HTTP request.response - HTTP response.context - request context
Exception - if an exception occurs
protected void executeRemoveMember(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
throws Exception
request - HTTP request.response - HTTP response.context - request context
Exception - if an exception occurs
protected boolean checkIfConfigured(RequestContext context,
String groupIdentifier)
context - groupIdentifier -
protected boolean checkIfAllowedToManage(RequestContext context,
String groupIdentifier)
context - groupIdentifier -
protected boolean checkSelf(RequestContext context,
String managedUserDn)
context - managedUserDn -
protected boolean checkRole(User user,
String groupDn)
user - usergroupDn - group distingushed name
protected String serializeUsersAsJson(RequestContext context,
String filter,
String attributeName,
boolean isMemberSearch)
throws IdentityException,
NamingException,
SQLException
context - the current request contextfilter - the user search filter for ldap
IdentityException - if a system error occurs preventing the action
NamingException - if an LDAP naming exception occurs
SQLExceptionprotected boolean checkHasManageUsers(RequestContext context)
context - the current request context
protected boolean checkIfAllowConfigured(RequestContext context)
context - the current request context
protected void checkRole(RequestContext context)
throws NotAuthorizedException
context - the current request context (contains the active user)
NotAuthorizedException - if the user does not have publishing rightsprotected Roles buildSelectableRoles(RequestContext context)
context - the current request context (contains the active user)
protected HashMap<String,Object> buildUsersList(RequestContext context,
String filter,
String attributeName)
throws IdentityException,
NamingException
context - the current request context (contains the active user)filter - the user search filter for ldap
IdentityException - if a system error occurs preventing the action
NamingException - if an LDAP naming exception occurs
protected User readUserProfile(RequestContext context,
HttpServletRequest request)
throws Exception
context - the current request context (contains the active user)request - HTTP request.
IdentityException - if a system error occurs preventing the action
NamingException - if an LDAP naming exception occurs
SQLException - if a database communication exception occurs
CredentialsDeniedException
UnsupportedEncodingException
Exception
|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||