|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.droplet.EmptyFormHandler atg.droplet.GenericFormHandler atg.repository.servlet.RepositoryFormHandler atg.userprofiling.MultiProfileForm atg.userprofiling.MultiProfileUpdateFormHandler atg.userprofiling.MultiUserUpdateFormHandler
public class MultiUserUpdateFormHandler
This is an extension of MultiProfileUpdateFormHandler that
handles the updating of UserDirectory profile properties. Specifically,
it overrides updateUser
and updates the users roles
and organizations using the values for the
roleIds
and organizationId
properties.
This is done directly using the UserDirectory API and not the
repository API, since there are differing cache mechanisms in
each instance.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
ROLE_UPDATE_APPEND
|
static java.lang.String |
ROLE_UPDATE_REMOVE
|
static java.lang.String |
ROLE_UPDATE_REPLACE
|
Fields inherited from class atg.userprofiling.MultiProfileUpdateFormHandler |
---|
OLDPASSWORD_PARAM |
Fields inherited from class atg.userprofiling.MultiProfileForm |
---|
CONFIRMPASSWORD_PARAM |
Fields inherited from class atg.repository.servlet.RepositoryFormHandler |
---|
STATUS_ERROR_REDIRECT, STATUS_ERROR_STAY, STATUS_SUCCESS |
Fields inherited from class atg.droplet.GenericFormHandler |
---|
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.repository.servlet.RepositoryFormConstants |
---|
NULL_SENTINEL, REPOSITORY_ID_PROPERTY_NAME, UPDATE_APPEND, UPDATE_PREPEND, UPDATE_REMOVE, UPDATE_REPLACE |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
MultiUserUpdateFormHandler()
|
Method Summary | |
---|---|
java.lang.String |
getOrganizationId()
Gets the organizationId property |
java.lang.String[] |
getRoleIds()
Gets the roleIds property |
java.lang.String |
getRoleUpdateMethod()
Gets the roleUpdateMethod property |
UserDirectoryTools |
getUserDirectoryTools()
Gets the userDirectoryTools property |
boolean |
handleClear(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Clears the roleIds , organizationId
properties and roleUpdateMethod |
protected void |
preDeleteUser(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Removes the user from his/her organization in addition to deleting them |
void |
setOrganizationId(java.lang.String pOrganizationId)
Sets the organizationId property |
void |
setRoleIds(java.lang.String[] pRoleIds)
Sets the roleIds property |
void |
setRoleUpdateMethod(java.lang.String pRoleUpdateMethod)
Sets the roleUpdateMethod property |
void |
setUserDirectoryTools(UserDirectoryTools pUserDirectoryTools)
Sets the userDirectoryTools property |
protected void |
updateUser(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Overrides updateUser to assign a user roles and/or add a user to an organization based on the values of the roleIds and organizationId
properties |
Methods inherited from class atg.userprofiling.MultiProfileForm |
---|
afterSet, beforeSet, confirmPasswordValue, formatUserMessage, formatUserMessage, formatUserMessage, formatUserMessage, getProfile, getProfileTools, getTransactionManager, getUserLocale, getValueProperty, isConfirmOldPassword, isConfirmPassword, setConfirmOldPassword, setConfirmPassword, setProfile, setProfileTools, setTransactionManager, updatePasswordValue |
Methods inherited from class atg.droplet.EmptyFormHandler |
---|
afterGet, beforeGet |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String ROLE_UPDATE_REPLACE
public static final java.lang.String ROLE_UPDATE_REMOVE
public static final java.lang.String ROLE_UPDATE_APPEND
Constructor Detail |
---|
public MultiUserUpdateFormHandler()
Method Detail |
---|
public void setRoleIds(java.lang.String[] pRoleIds)
pRoleIds
- the ids of the roles to assign
each userpublic java.lang.String[] getRoleIds()
public void setOrganizationId(java.lang.String pOrganizationId)
pOrganizationId
- the id of the organization
to add the user topublic java.lang.String getOrganizationId()
public void setRoleUpdateMethod(java.lang.String pRoleUpdateMethod)
pRoleUpdateMethod
- the method used to update
the roles for each user. Possible values include:
roleIds
to the user's existing roles
roleIds
from the user's existing roles
roleIds
property
to the userpublic java.lang.String getRoleUpdateMethod()
roleIds
to the user's existing roles
roleIds
from the user's existing roles
roleIds
property
to the userpublic void setUserDirectoryTools(UserDirectoryTools pUserDirectoryTools)
pUserDirectoryTools
- a collection of tools that work
on userdirectory itemspublic UserDirectoryTools getUserDirectoryTools()
protected void updateUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
roleIds
and organizationId
properties
updateUser
in class MultiProfileUpdateFormHandler
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if a servlet error occurs
java.io.IOException
- if a servlet IO problem occursprotected void preDeleteUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
preDeleteUser
in class MultiProfileUpdateFormHandler
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if a servlet error occurs
java.io.IOException
- if an io problem occurspublic boolean handleClear(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
roleIds
, organizationId
properties and roleUpdateMethod
handleClear
in class MultiProfileUpdateFormHandler
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if a servlet error occurs
java.io.IOException
- if a servlet io exception occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |