public class MultiProfileForm extends RepositoryFormHandler
This bean contains all the code shared by the add and the update multiple profile form handlers.
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
static java.lang.String | 
CONFIRMPASSWORD_PARAM
Name of the confirmation password form parameter 
 | 
static java.lang.String | 
OLDPASSWORD_PARAM
Name of the old password form parameter 
 | 
STATUS_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 | 
|---|
MultiProfileForm()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
afterSet(DynamoHttpServletRequest request,
        DynamoHttpServletResponse response)
Clear out the current request we are processing. 
 | 
boolean | 
beforeSet(DynamoHttpServletRequest request,
         DynamoHttpServletResponse response)
Called before any setX methods on this form are set when a form
 that modifies properties of this form handler is submitted. 
 | 
boolean | 
confirmPasswordValue(java.lang.String pPasswordPropertyName,
                    java.lang.String pOldPassword,
                    RepositoryFormHandler pFormHandler,
                    DynamoHttpServletRequest pRequest,
                    DynamoHttpServletResponse pResponse)
Verifies the oldPassword if necesary and generates an exception if passwords don't match. 
 | 
java.lang.String | 
formatUserMessage(java.lang.String pKey,
                 DynamoHttpServletRequest pRequest)
Utility method to format a message with no arguments using the Locale of the user 
 | 
java.lang.String | 
formatUserMessage(java.lang.String pKey,
                 java.lang.Object[] pParams,
                 DynamoHttpServletRequest pRequest)
Utility method to format a message with two arguments using our resource bundle. 
 | 
java.lang.String | 
formatUserMessage(java.lang.String pKey,
                 java.lang.Object pParam,
                 DynamoHttpServletRequest pRequest)
Utility method to format a message with one argument using the Locale of the user 
 | 
java.lang.String | 
formatUserMessage(java.lang.String pKey,
                 java.lang.Object pParam1,
                 java.lang.Object pParam2,
                 DynamoHttpServletRequest pRequest)
Utility method to format a message with two arguments using our resource bundle. 
 | 
Profile | 
getProfile()
Returns the value of the property Profile. 
 | 
ProfileTools | 
getProfileTools()  | 
javax.transaction.TransactionManager | 
getTransactionManager()
Get property  
transactionManager | 
protected java.util.Locale | 
getUserLocale(DynamoHttpServletRequest pRequest)
Returns the Locale for the user given the request 
 | 
protected java.lang.Object | 
getValueProperty(java.util.Dictionary pValueDictionary,
                java.lang.String pName)
Returns the value of a property from the given value Dictionary. 
 | 
boolean | 
handleClear(DynamoHttpServletRequest pRequest,
           DynamoHttpServletResponse pResponse)  | 
boolean | 
isConfirmOldPassword()
Returns property ConfirmPassword 
 | 
boolean | 
isConfirmPassword()
Returns property ConfirmPassword 
 | 
void | 
setConfirmOldPassword(boolean pConfirmOldPassword)
Sets property ConfirmPassword 
 | 
void | 
setConfirmPassword(boolean pConfirmPassword)
Sets property ConfirmPassword 
 | 
void | 
setProfile(Profile pProfile)
Sets the property Profile. 
 | 
void | 
setProfileTools(ProfileTools pProfileTools)
Sets the property ProfileTools. 
 | 
void | 
setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
Set property  
transactionManager | 
boolean | 
updatePasswordValue(java.lang.String pPasswordPropertyName,
                   RepositoryFormHandler pFormHandler,
                   int pUserIndex,
                   DynamoHttpServletRequest pRequest,
                   DynamoHttpServletResponse pResponse)
Takes the value of the form inputed password attribute confirms
 it if nescessary and finally generates a new encrypted password as
 a function of the PropertyManager.generatePassword() method. 
 | 
checkFormError, 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, handleDelete, handleUpdate, 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, handleCancel, 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, stopService, toStringvlogDebug, 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 CONFIRMPASSWORD_PARAM
public static final java.lang.String OLDPASSWORD_PARAM
public void setProfile(Profile pProfile)
public Profile getProfile()
public void setProfileTools(ProfileTools pProfileTools)
public ProfileTools getProfileTools()
public void setConfirmPassword(boolean pConfirmPassword)
public boolean isConfirmPassword()
public void setConfirmOldPassword(boolean pConfirmOldPassword)
public boolean isConfirmOldPassword()
public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
transactionManagerpTransactionManager - new value to setpublic javax.transaction.TransactionManager getTransactionManager()
transactionManagergetTransactionManager in class RepositoryFormHandlertransactionManagerpublic boolean handleClear(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic boolean beforeSet(DynamoHttpServletRequest request, DynamoHttpServletResponse response) throws DropletFormException
GenericFormHandlerbeforeSet in interface DropletFormHandlerbeforeSet in class GenericFormHandlerDropletFormExceptionpublic boolean afterSet(DynamoHttpServletRequest request, DynamoHttpServletResponse response) throws DropletFormException
GenericFormHandlerafterSet in interface DropletFormHandlerafterSet in class GenericFormHandlerDropletFormExceptionprotected java.util.Locale getUserLocale(DynamoHttpServletRequest pRequest)
pRequest - the request object which can be used to extract the user's localepublic java.lang.String formatUserMessage(java.lang.String pKey,
                                          DynamoHttpServletRequest pRequest)
pKey - the identifier for the message to retrieve out of the ResourceBundlepRequest - the request object which can be used to extract the user's localeProfileUserMessagepublic java.lang.String formatUserMessage(java.lang.String pKey,
                                          java.lang.Object pParam,
                                          DynamoHttpServletRequest pRequest)
pKey - the identifier for the message to retrieve out of the ResourceBundlepParam - the first (and only argument) in the messageProfileUserMessagepublic java.lang.String formatUserMessage(java.lang.String pKey,
                                          java.lang.Object pParam1,
                                          java.lang.Object pParam2,
                                          DynamoHttpServletRequest pRequest)
pKey - the identifier for the message to retrieve out of the ResourceBundlepParam1 - the first parameter in the messagepParam2 - the second parameter in the messageProfileUserMessagepublic java.lang.String formatUserMessage(java.lang.String pKey,
                                          java.lang.Object[] pParams,
                                          DynamoHttpServletRequest pRequest)
pKey - the identifier for the message to retrieve out of the ResourceBundlepParams - a set of parameters to use in the formatting.ProfileUserMessagepublic boolean updatePasswordValue(java.lang.String pPasswordPropertyName,
                                   RepositoryFormHandler pFormHandler,
                                   int pUserIndex,
                                   DynamoHttpServletRequest pRequest,
                                   DynamoHttpServletResponse pResponse)
                            throws PropertyNotFoundException,
                                   javax.servlet.ServletException,
                                   java.io.IOException
pPasswordPropertyName - the name of the password property from property managerpFormHandler - the user-specific form handler, or this for common propertiespUserIndex - the index to the user we're processing or -1 for common propertiespRequest - the servlet's requestpResponse - the servlet's responsePropertyNotFoundExceptionjavax.servlet.ServletExceptionjava.io.IOExceptionpublic boolean confirmPasswordValue(java.lang.String pPasswordPropertyName,
                                    java.lang.String pOldPassword,
                                    RepositoryFormHandler pFormHandler,
                                    DynamoHttpServletRequest pRequest,
                                    DynamoHttpServletResponse pResponse)
                             throws PropertyNotFoundException,
                                    RepositoryException,
                                    javax.servlet.ServletException,
                                    java.io.IOException
pPasswordPropertyName - - the name of the password property from property managerpOldPassword - - the value entered in the form for old password verificationpFormHandler - the user-specific form handler, or this for common propertiespRequest - the servlet's requestpResponse - the servlet's responsePropertyNotFoundExceptionRepositoryExceptionjavax.servlet.ServletExceptionjava.io.IOExceptionprotected java.lang.Object getValueProperty(java.util.Dictionary pValueDictionary,
                                            java.lang.String pName)