|
|||||||||
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
public class MultiProfileForm
This is the base class for a form handler for updating one or more user profiles with a single request.
This bean contains all the code shared by the add and the update multiple profile form handlers.
RepositoryFormHandler
,
MultiProfileUpdateFormHandler
,
MultiProfileAddFormHandler
Field Summary | |
---|---|
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 |
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 | |
---|---|
MultiProfileForm()
|
Method Summary | |
---|---|
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. |
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 CONFIRMPASSWORD_PARAM
public static final java.lang.String OLDPASSWORD_PARAM
Constructor Detail |
---|
public MultiProfileForm()
Method Detail |
---|
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)
transactionManager
pTransactionManager
- new value to setpublic javax.transaction.TransactionManager getTransactionManager()
transactionManager
getTransactionManager
in class RepositoryFormHandler
transactionManager
public boolean handleClear(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public boolean beforeSet(DynamoHttpServletRequest request, DynamoHttpServletResponse response) throws DropletFormException
GenericFormHandler
beforeSet
in interface DropletFormHandler
beforeSet
in class GenericFormHandler
DropletFormException
public boolean afterSet(DynamoHttpServletRequest request, DynamoHttpServletResponse response) throws DropletFormException
GenericFormHandler
afterSet
in interface DropletFormHandler
afterSet
in class GenericFormHandler
DropletFormException
protected 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 locale
ProfileUserMessage
public 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 message
ProfileUserMessage
public 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 message
ProfileUserMessage
public 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.
ProfileUserMessage
public 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 response
PropertyNotFoundException
javax.servlet.ServletException
java.io.IOException
public 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 response
PropertyNotFoundException
RepositoryException
javax.servlet.ServletException
java.io.IOException
protected java.lang.Object getValueProperty(java.util.Dictionary pValueDictionary, java.lang.String pName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |