public class MultiUserUpdateFormHandler extends MultiProfileUpdateFormHandler
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.| Modifier and Type | Field and Description |
|---|---|
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 |
OLDPASSWORD_PARAMCONFIRMPASSWORD_PARAMSTATUS_ERROR_REDIRECT, STATUS_ERROR_STAY, STATUS_SUCCESSPARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDSSERVICE_INFO_KEYNULL_SENTINEL, REPOSITORY_ID_PROPERTY_NAME, UPDATE_APPEND, UPDATE_PREPEND, UPDATE_REMOVE, UPDATE_REPLACEDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
MultiUserUpdateFormHandler() |
| Modifier and Type | Method and Description |
|---|---|
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 |
addProfileUpdateListener, getClearValuesOnDelete, getClearValuesOnUpdate, getProfileUpdateEvent, getProfileUpdateTrigger, getRepositoryIds, handleCancel, handleDelete, handleUpdate, isGenerateProfileUpdateEvents, postCancel, postClear, postDelete, postDeleteUser, postUpdate, postUpdateUser, preCancel, preClear, preDelete, preUpdate, preUpdateUser, removeProfileUpdateListener, sendProfileUpdateEvent, setClearValuesOnDelete, setClearValuesOnUpdate, setGenerateProfileUpdateEvents, setProfileUpdateEvent, setProfileUpdateTrigger, setRepositoryIdsafterSet, beforeSet, confirmPasswordValue, formatUserMessage, formatUserMessage, formatUserMessage, formatUserMessage, getProfile, getProfileTools, getTransactionManager, getUserLocale, getValueProperty, isConfirmOldPassword, isConfirmPassword, setConfirmOldPassword, setConfirmPassword, setProfile, setProfileTools, setTransactionManager, updatePasswordValuecheckFormError, checkFormSuccess, checkForRequiredProperties, deleteItem, getCheckForReadOnlyProperties, getCheckForRequiredProperties, getContentItemDescriptor, getContentNameProperty, getContentPathProperty, getCreateErrorURL, getCreateSuccessURL, getDeleteErrorURL, getDeleteSuccessURL, getEditMapsAsLists, getErrorHandler, getExtractDefaultValuesFromItem, getFolderIdProperty, getItemDescriptor, getItemDescriptorName, getItemProperty, getLogger, getMapKeyValueSeparator, getRemoveReferencesToDeletedItems, getRepository, getRepositoryId, getRepositoryItem, getRepositoryItemEditor, getRepositoryPathName, getRequireIdOnCreate, getSpecifiedIdPropertyValue, getTransactionDemarcation, getTrimProperties, getUpdateErrorURL, getUpdateSuccessURL, getValue, getValueProperty, handleCreate, isClearValueOnSet, isCreateTransientItems, isRequireMapKeys, isSortRepositoryItemSets, isTrimProperty, isUpdateItemsInCollection, postCreateItem, postDeleteItem, postUpdateItem, postUpdateItemProperties, preCreateItem, preDeleteItem, preUpdateItem, setCheckForReadOnlyProperties, setCheckForRequiredProperties, setClearValueOnSet, setContentNameProperty, setContentPathProperty, setCreateErrorURL, setCreateSuccessURL, setCreateTransientItems, setDeleteErrorURL, setDeleteSuccessURL, setEditMapsAsLists, setExtractDefaultValuesFromItem, setFolderIdProperty, setItemDescriptorName, setMapKeyValueSeparator, setRemoveReferencesToDeletedItems, setRepository, setRepositoryId, setRepositoryItemEditor, setRepositoryPathName, setRequireIdOnCreate, setRequireMapKeys, setSortRepositoryItemSets, setTrimProperties, setUpdateErrorURL, setUpdateItemsInCollection, setUpdateSuccessURL, setValueProperty, testPropertyAttribute, updateChildItemProperty, updateContentItemValues, updateItem, updateItemProperties, updateListProperty, updateMapPropertyaddFormException, addUncheckedFormException, checkFormRedirect, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwardsafterGet, beforeGetaddLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic 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
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
propertiesupdateUser in class MultiProfileUpdateFormHandlerpRequest - the servlet's requestpResponse - the servlet's responsejavax.servlet.ServletException - if a servlet error occursjava.io.IOException - if a servlet IO problem occursprotected void preDeleteUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
preDeleteUser in class MultiProfileUpdateFormHandlerpRequest - the servlet's requestpResponse - the servlet's responsejavax.servlet.ServletException - if a servlet error occursjava.io.IOException - if an io problem occurspublic boolean handleClear(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
roleIds, organizationId
properties and roleUpdateMethodhandleClear in class MultiProfileUpdateFormHandlerpRequest - the servlet's requestpResponse - the servlet's responsejavax.servlet.ServletException - if a servlet error occursjava.io.IOException - if a servlet io exception occurs