atg.svc.ui.formhandlers
Class CustomerProfileFormHandler

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.droplet.EmptyFormHandler
              extended by atg.droplet.GenericFormHandler
                  extended by atg.userprofiling.ProfileForm
                      extended by atg.svc.ui.formhandlers.CustomerProfileFormHandler
All Implemented Interfaces:
atg.droplet.DropletFormHandler, atg.naming.NameContextBindingListener, atg.naming.NameContextElement, atg.naming.NameResolver, atg.nucleus.AdminableService, atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.nucleus.naming.ComponentNameResolver, atg.nucleus.Service, atg.nucleus.ServiceListener, java.util.EventListener

public class CustomerProfileFormHandler
extends atg.userprofiling.ProfileForm


Nested Class Summary
 
Nested classes/interfaces inherited from class atg.userprofiling.ProfileForm
atg.userprofiling.ProfileForm.ProfileFormHashtableWrapper
 
Field Summary
static java.lang.String CLASS_VERSION
          Class version string
static java.lang.String LOGIN_PARAM_NAME
           
static java.lang.String PASSWORD_PARAM_NAME
           
 
Fields inherited from class atg.userprofiling.ProfileForm
CONFIRMPASSWORD_PARAM, DEFAULT_CREATE_PROFILE_TYPE, DEFAULT_LOGIN_PROFILE_TYPE, DEFAULT_LOGOUT_PROFILE_TYPE, HANDLE_CREATE, HANDLE_CREATE_PARAM, HANDLE_FAILURE, HANDLE_LOGIN, HANDLE_LOGIN_PARAM, HANDLE_SUCCESS, ID_NAME, mBadPasswordDelay, mChangePasswordErrorURL, mChangePasswordSuccessURL, mCheckForRequiredParameters, mCheckForRequiredProperties, mCheckForRequiredPropertiesAfterUpdate, mCompareValueInCopyPropertiesOnLogin, mConfirmOldPassword, mConfirmPassword, mCreateErrorURL, mCreateProfileType, mCreateSuccessURL, mDeleteErrorURL, mDeleteSuccessURL, mExpireSessionOnLogout, mExtractDefaultValuesFromProfile, mLoginErrorURL, mLoginProfileType, mLoginSuccessURL, mLogoutErrorURL, mLogoutProfileType, mLogoutSuccessURL, mProfileTools, mPropertiesToAddOnLogin, mPropertiesToCopyOnLogin, mRepositoryId, MSG_ERR_CREATING_PROFILE, MSG_ERR_DELETING_PROFILE, MSG_ERR_UPDATING_PROFILE, MSG_ILLEGAL_ARGUMENT, MSG_INVALID_ADD_PROPERTY, MSG_INVALID_LOGIN, MSG_INVALID_PASSWORD, MSG_MISSING_LOGIN, MSG_MISSING_PASSWORD, MSG_MISSING_PROFILE, MSG_MISSING_PROFILE_TOOLS, MSG_MISSING_REQUIRED_PROPERTY, MSG_NO_SUCH_PROFILE_PROPERTY, MSG_NO_TYPE_CONVERTER, MSG_PASSWORD_SAME_AS_OLD_PASSWORD, MSG_PASSWORDS_DO_NOT_MATCH, MSG_PERMISSION_DEFINED_PASSWORD_CHANGE, MSG_READ_ONLY_PROFILE_PROPERTY, MSG_TYPE_CONVERSION_ERR, MSG_USER_ALREADY_EXISTS, MSG_WARNING_PROFILE_TOOLS, mSwapEventListeners, mTrimProperties, mUpdateErrorURL, mUpdateSuccessURL, mUserLoginManager, mUsingLdapProfile, mValue, NULL_SENTINEL, OLDPASSWORD_PARAM, REPOSITORY_ID_PROPERTY_NAME, RESOURCE_BUNDLE_NAME, sResourceBundle, 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.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
CustomerProfileFormHandler()
           
 
Method Summary
protected  atg.repository.RepositoryItem createUser(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Overwrite parent' createUser method, filter out codes with password checking
protected  java.util.Map generateNewAccountEmailParameters(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse, atg.repository.RepositoryItem pProfile)
          Deprecated.  
protected  java.util.Map generateNewAccountEmailParameters(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse, atg.repository.RepositoryItem pProfile, java.lang.String pGeneratedClearTextPassword)
          Generates the parameter map that is used for sending the new account email.
protected  java.util.Map generateResetPasswordEmailParameters(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse, atg.repository.RepositoryItem pProfile)
          Deprecated.  
protected  java.util.Map generateResetPasswordEmailParameters(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse, atg.repository.RepositoryItem pProfile, java.lang.String pGeneratedClearTextPassword)
          Generates the parameter map that is used for sending the reset password email.
 atg.userprofiling.Profile getAgentProfile()
           
 java.lang.String getApplicationName()
           
 java.lang.String getChangePasswordReason()
           
 java.lang.String getCreateCustomerProfileReason()
           
 java.lang.String getErrorUrl()
           
 java.lang.String getLinkCustomerId()
           
 java.lang.String getLinkCustomerName()
           
 atg.ticketing.TicketingManager getManager()
           
protected  atg.repository.MutableRepositoryItem getMutableProfileItem()
          Gets a mutuable version of the profile repository item
 atg.userprofiling.email.TemplateEmailInfoImpl getNewAccountTemplateEmailInfo()
           
 atg.userprofiling.Profile getProfile()
           
 java.util.Collection getPropertyUpdates()
           
 java.lang.String getRepositoryId()
          Overrides ProfileForm.getRepositoryId() to extract from the profile if the property is empty
 atg.userprofiling.email.TemplateEmailInfoImpl getResetPasswordTemplateEmailInfo()
           
 java.lang.String getSuccessUrl()
           
 atg.userprofiling.email.TemplateEmailSender getTemplateEmailSender()
           
 atg.svc.ticketing.TicketHolder getTicketHolder()
           
 java.lang.String getUpdateCustomerProfileReason()
           
 java.lang.String getUpdateErrorURL()
          Overwrite parent's method
 java.lang.String getUpdateSuccessURL()
          Overwrite parent's method
 atg.svc.ticketing.TicketHolder getViewTicketHolder()
           
 boolean handleCancel(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method redirects to the value of the cancelURL property, if that property is set to a non-null value.
 boolean handleCancelEditLink(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
           
 boolean handleClear(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Resets the current form data contained in value that hasn't been submitted yet.
 boolean handleCreate(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Takes the current set of values set as members of the value property and, if there were no errors in submitting the form, creates a new profile, sets these values in the new profile and set the RepositoryId property.
 boolean handleCreateUserLink(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
           
 boolean handleEditUserLink(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
           
 boolean handleLinkCustomer(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
           
 boolean handleResetPassword(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This handler is used by the agent to create a customer.
 boolean handleUpdate(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          override the handleUpdate method in ProfileForm to call checkFormRedirect() instead of checkFormSuccess()
 boolean isBackToTicketAfterCreate()
           
 boolean isPersistNewAccountEmails()
           
 boolean isPersistResetPasswordEmails()
           
 boolean isSendNewAccountEmailInSeparateThread()
          Returns boolean indicating whether the new account email is sent in a separate thread.
 boolean isSendNewAccountEmails()
           
 boolean isSendResetPasswordEmailInSeparateThread()
          Returns boolean indicating whether the Reset Password email is sent in a separate thread.
 boolean isSendResetPasswordEmails()
           
 boolean isViewMode()
           
protected  void linkCustomer()
           
protected  void postCreateUser(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
           
protected  void postUpdateUser(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Operation called just after the user's profile is updated
protected  void preCreateUser(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
           
protected  void preUpdateUser(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Operation called just after the user's profile is updated
 void setAgentProfile(atg.userprofiling.Profile pProfile)
          Sets the property Profile.
 void setApplicationName(java.lang.String applicationName)
           
 void setBackToTicketAfterCreate(boolean pBackToTicketAfterCreate)
           
 void setChangePasswordReason(java.lang.String pChangePasswordReason)
           
 void setCreateCustomerProfileReason(java.lang.String pCreateCustomerProfileReason)
           
 void setErrorUrl(java.lang.String errorUrl)
           
 void setLinkCustomerId(java.lang.String pLinkCustomerId)
           
 void setLinkCustomerName(java.lang.String pLinkCustomerName)
           
 void setManager(atg.ticketing.TicketingManager manager)
           
 void setNewAccountTemplateEmailInfo(atg.userprofiling.email.TemplateEmailInfoImpl pNewAccountTemplateEmailInfo)
          Sets the property NewAccountTemplateEmailInfo
 void setPersistNewAccountEmails(boolean pPersistNewAccountEmails)
          Sets property PersistNewAccountEmails, indicating if new account notification emails are persisted before they are sent.
 void setPersistResetPasswordEmails(boolean pPersistResetPasswordEmails)
          Sets property PersistResetPasswordEmails, indicating if Reset Password notification emails are persisted before they are sent.
 void setProfile(atg.userprofiling.Profile pProfile)
          Sets the property Profile.
 void setPropertyUpdates(java.util.Collection pPropertyUpdates)
           
 void setResetPasswordTemplateEmailInfo(atg.userprofiling.email.TemplateEmailInfoImpl pResetPasswordTemplateEmailInfo)
          Sets the property ResetPasswordTemplateEmailInfo
 void setSendNewAccountEmailInSeparateThread(boolean pSendNewAccountEmailInSeparateThread)
          Sets boolean indicating whether the new account email is sent in a separate thread.
 void setSendNewAccountEmails(boolean pSendNewAccountEmails)
          Sets property SendNewAccountEmails, indicating if new account notification emails are sent.
 void setSendResetPasswordEmailInSeparateThread(boolean pSendResetPasswordEmailInSeparateThread)
          Sets boolean indicating whether Reset Password email is sent in a separate thread.
 void setSendResetPasswordEmails(boolean pSendResetPasswordEmails)
          Sets property SendNewAccountEmails, indicating if ResetPassword emails are sent.
 void setSuccessUrl(java.lang.String successUrl)
           
 void setTemplateEmailSender(atg.userprofiling.email.TemplateEmailSender pTemplateEmailSender)
          Sets the property TemplateEmailSender
 void setTicketHolder(atg.svc.ticketing.TicketHolder ticketHolder)
           
 void setUpdateCustomerProfileReason(java.lang.String pUpdateCustomerProfileReason)
           
 void setViewMode(boolean pViewMode)
          Sets the property viewMode.
 void setViewTicketHolder(atg.svc.ticketing.TicketHolder viewTicketHolder)
           
 
Methods inherited from class atg.userprofiling.ProfileForm
addMulti, addPropertiesOnLogin, addProperty, addSwapEventListener, addUser, changePassword, checkFormError, checkFormSuccess, checkForRequiredParameters, checkForRequiredProperties, checkForRequiredProperties, commitTransaction, copyPropertiesOnLogin, createProfileItem, doStartService, ensureTransaction, findUser, findUser, formatUserMessage, formatUserMessage, formatUserMessage, formatUserMessage, generatePropertyPath, getAddMultiPropertyName, getAddMultiPropertyValue, getBadPasswordDelay, getChangePasswordErrorURL, getChangePasswordSuccessURL, getCheckForRequiredParameters, getCheckForRequiredProperties, getCheckForRequiredPropertiesAfterUpdate, getCreateErrorURL, getCreateProfileType, getCreateSuccessURL, getDeleteErrorURL, getDeleteSuccessURL, getDescriptor, getExpireSessionOnLogout, getLoginErrorURL, getLoginProfileType, getLoginSuccessURL, getLogoutErrorURL, getLogoutProfileType, getLogoutSuccessURL, getProcessPropertyNames, getProfileItem, getProfileTools, getPropertiesToAddOnLogin, getPropertiesToCopyOnLogin, getStringValueProperty, getTransactionDemarcation, getTransactionManager, getTrimProperties, getUserLocale, getUserLoginManager, getValue, getValueFromArrayString, getValueFromObject, getValueFromObjectArray, getValueFromString, getValueFromStringArray, getValueMap, getValueProperty, handleAddMulti, handleChangePassword, handleDelete, handleLogin, handleLogout, handleValueDictionaryByParameters, isCompareValueInCopyPropertiesOnLogin, isConfirmOldPassword, isConfirmPassword, isExtractDefaultValuesFromProfile, isTrimProperty, isUsingLdapProfile, postAddMulti, postChangePassword, postDeleteUser, postLoginUser, postLogoutUser, postValueDictionaryByParameters, preAddMulti, preChangePassword, preDeleteUser, preLoginUser, preLogoutUser, preValueDictionaryByParameters, removeSwapEventListener, removeUser, sendProfileSwapEvent, setBadPasswordDelay, setChangePasswordErrorURL, setChangePasswordSuccessURL, setCheckForRequiredParameters, setCheckForRequiredProperties, setCheckForRequiredPropertiesAfterUpdate, setCompareValueInCopyPropertiesOnLogin, setConfirmOldPassword, setConfirmPassword, setCreateErrorURL, setCreateProfileType, setCreateSuccessURL, setDeleteErrorURL, setDeleteSuccessURL, setExpireSessionOnLogout, setExtractDefaultValuesFromProfile, setLoginErrorURL, setLoginProfileType, setLoginSuccessURL, setLogoutErrorURL, setLogoutProfileType, setLogoutSuccessURL, setProfileTools, setPropertiesToAddOnLogin, setPropertiesToCopyOnLogin, setRepositoryId, setTrimProperties, setUpdateErrorURL, setUpdateSuccessURL, setUserLoginManager, setUsingLdapProfile, setValueDictionaryByParameters, setValueProperty, updateLDAPProfileAttributes, updatePasswordValue, updateProfileAttributes, updateProfileAttributes, updateUser, userAlreadyExists, valueIsEmpty
 
Methods inherited from class atg.droplet.GenericFormHandler
addFormException, addUncheckedFormException, afterSet, beforeSet, 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, setUseForwards
 
Methods inherited from class atg.droplet.EmptyFormHandler
afterGet, beforeGet
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
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

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


PASSWORD_PARAM_NAME

public static final java.lang.String PASSWORD_PARAM_NAME
See Also:
Constant Field Values

LOGIN_PARAM_NAME

public static final java.lang.String LOGIN_PARAM_NAME
See Also:
Constant Field Values
Constructor Detail

CustomerProfileFormHandler

public CustomerProfileFormHandler()
Method Detail

handleCreateUserLink

public boolean handleCreateUserLink(atg.servlet.DynamoHttpServletRequest pRequest,
                                    atg.servlet.DynamoHttpServletResponse pResponse)
                             throws javax.servlet.ServletException,
                                    java.io.IOException
Parameters:
pRequest -
pResponse -
Returns:
true if no redirect occurred.
Throws:
javax.servlet.ServletException
java.io.IOException

handleEditUserLink

public boolean handleEditUserLink(atg.servlet.DynamoHttpServletRequest pRequest,
                                  atg.servlet.DynamoHttpServletResponse pResponse)
                           throws javax.servlet.ServletException,
                                  java.io.IOException
Parameters:
pRequest -
pResponse -
Returns:
true if no redirect occurred.
Throws:
javax.servlet.ServletException
java.io.IOException

handleCancelEditLink

public boolean handleCancelEditLink(atg.servlet.DynamoHttpServletRequest pRequest,
                                    atg.servlet.DynamoHttpServletResponse pResponse)
                             throws javax.servlet.ServletException,
                                    java.io.IOException
Parameters:
pRequest -
pResponse -
Returns:
true if no redirect occurred.
Throws:
javax.servlet.ServletException
java.io.IOException

handleResetPassword

public boolean handleResetPassword(atg.servlet.DynamoHttpServletRequest pRequest,
                                   atg.servlet.DynamoHttpServletResponse pResponse)
                            throws javax.servlet.ServletException,
                                   java.io.IOException
This handler is used by the agent to create a customer.

Parameters:
pRequest -
pResponse -
Returns:
true if no redirect occurred.
Throws:
javax.servlet.ServletException
java.io.IOException

getMutableProfileItem

protected atg.repository.MutableRepositoryItem getMutableProfileItem()
                                                              throws atg.repository.RepositoryException
Gets a mutuable version of the profile repository item

Returns:
a mutable version of the profile repository item
Throws:
atg.repository.RepositoryException

getRepositoryId

public java.lang.String getRepositoryId()
Overrides ProfileForm.getRepositoryId() to extract from the profile if the property is empty

Overrides:
getRepositoryId in class atg.userprofiling.ProfileForm

generateNewAccountEmailParameters

protected java.util.Map generateNewAccountEmailParameters(atg.servlet.DynamoHttpServletRequest pRequest,
                                                          atg.servlet.DynamoHttpServletResponse pResponse,
                                                          atg.repository.RepositoryItem pProfile,
                                                          java.lang.String pGeneratedClearTextPassword)
Generates the parameter map that is used for sending the new account email.

By default, this method does not create parameters

Parameters:
pRequest -
pResponse -
pNewProfile -
Returns:
Parameter map

generateNewAccountEmailParameters

protected java.util.Map generateNewAccountEmailParameters(atg.servlet.DynamoHttpServletRequest pRequest,
                                                          atg.servlet.DynamoHttpServletResponse pResponse,
                                                          atg.repository.RepositoryItem pProfile)
Deprecated. 

Generates the parameter map that is used for sending the new account email.

By default, this method does not create parameters

Parameters:
pRequest -
pResponse -
pNewProfile -
Returns:
Parameter map

generateResetPasswordEmailParameters

protected java.util.Map generateResetPasswordEmailParameters(atg.servlet.DynamoHttpServletRequest pRequest,
                                                             atg.servlet.DynamoHttpServletResponse pResponse,
                                                             atg.repository.RepositoryItem pProfile,
                                                             java.lang.String pGeneratedClearTextPassword)
Generates the parameter map that is used for sending the reset password email.

By default, this method does not create parameters

Parameters:
pRequest -
pResponse -
pNewProfile -
Returns:
Parameter map

generateResetPasswordEmailParameters

protected java.util.Map generateResetPasswordEmailParameters(atg.servlet.DynamoHttpServletRequest pRequest,
                                                             atg.servlet.DynamoHttpServletResponse pResponse,
                                                             atg.repository.RepositoryItem pProfile)
Deprecated. 

Generates the parameter map that is used for sending the reset password email.

By default, this method does not create parameters

Parameters:
pRequest -
pResponse -
pNewProfile -
Returns:
Parameter map

handleCreate

public boolean handleCreate(atg.servlet.DynamoHttpServletRequest pRequest,
                            atg.servlet.DynamoHttpServletResponse pResponse)
                     throws javax.servlet.ServletException,
                            java.io.IOException
Takes the current set of values set as members of the value property and, if there were no errors in submitting the form, creates a new profile, sets these values in the new profile and set the RepositoryId property. The new type of profile created is defined by the createProfileType property.

If any errors occur in the process, form errors will be added. If there were no errors encountered while submitting the form, we optionally redirect to the value of the property createSuccessURL. Otherwise, we optionally redirect to createErrorURL.

Overrides:
handleCreate in class atg.userprofiling.ProfileForm
Throws:
javax.servlet.ServletException
java.io.IOException

createUser

protected atg.repository.RepositoryItem createUser(atg.servlet.DynamoHttpServletRequest pRequest,
                                                   atg.servlet.DynamoHttpServletResponse pResponse)
                                            throws javax.servlet.ServletException,
                                                   java.io.IOException
Overwrite parent' createUser method, filter out codes with password checking

Overrides:
createUser in class atg.userprofiling.ProfileForm
Parameters:
pRequest - the servlet's request
pResponse - the servlet's response
Throws:
javax.servlet.ServletException - if there was an error while executing the code
java.io.IOException - if there was an error with servlet io

preCreateUser

protected void preCreateUser(atg.servlet.DynamoHttpServletRequest pRequest,
                             atg.servlet.DynamoHttpServletResponse pResponse)
                      throws javax.servlet.ServletException,
                             java.io.IOException
Overrides:
preCreateUser in class atg.userprofiling.ProfileForm
Throws:
javax.servlet.ServletException
java.io.IOException

postCreateUser

protected void postCreateUser(atg.servlet.DynamoHttpServletRequest pRequest,
                              atg.servlet.DynamoHttpServletResponse pResponse)
                       throws javax.servlet.ServletException,
                              java.io.IOException
Overrides:
postCreateUser in class atg.userprofiling.ProfileForm
Parameters:
pRequest - the servlet's request
pResponse - the servlet's response
Throws:
javax.servlet.ServletException - if there was an error while executing the code
java.io.IOException - if there was an error with servlet io

preUpdateUser

protected void preUpdateUser(atg.servlet.DynamoHttpServletRequest pRequest,
                             atg.servlet.DynamoHttpServletResponse pResponse)
                      throws javax.servlet.ServletException,
                             java.io.IOException
Operation called just after the user's profile is updated

Overrides:
preUpdateUser in class atg.userprofiling.ProfileForm
Parameters:
pRequest - the servlet's request
pResponse - the servlet's response
Throws:
javax.servlet.ServletException - if there was an error while executing the code
java.io.IOException - if there was an error with servlet io

postUpdateUser

protected void postUpdateUser(atg.servlet.DynamoHttpServletRequest pRequest,
                              atg.servlet.DynamoHttpServletResponse pResponse)
                       throws javax.servlet.ServletException,
                              java.io.IOException
Operation called just after the user's profile is updated

Overrides:
postUpdateUser in class atg.userprofiling.ProfileForm
Parameters:
pRequest - the servlet's request
pResponse - the servlet's response
Throws:
javax.servlet.ServletException - if there was an error while executing the code
java.io.IOException - if there was an error with servlet io

handleCancel

public boolean handleCancel(atg.servlet.DynamoHttpServletRequest pRequest,
                            atg.servlet.DynamoHttpServletResponse pResponse)
                     throws javax.servlet.ServletException,
                            java.io.IOException
This method redirects to the value of the cancelURL property, if that property is set to a non-null value. You should override this if you want to clear the form values when the form is cancelled for a session scoped form handler.

Overrides:
handleCancel in class atg.droplet.GenericFormHandler
Throws:
javax.servlet.ServletException
java.io.IOException

handleLinkCustomer

public boolean handleLinkCustomer(atg.servlet.DynamoHttpServletRequest pRequest,
                                  atg.servlet.DynamoHttpServletResponse pResponse)
                           throws java.lang.Exception
Throws:
java.lang.Exception

linkCustomer

protected void linkCustomer()

handleUpdate

public boolean handleUpdate(atg.servlet.DynamoHttpServletRequest pRequest,
                            atg.servlet.DynamoHttpServletResponse pResponse)
                     throws javax.servlet.ServletException,
                            java.io.IOException
override the handleUpdate method in ProfileForm to call checkFormRedirect() instead of checkFormSuccess()

Overrides:
handleUpdate in class atg.userprofiling.ProfileForm
Throws:
javax.servlet.ServletException
java.io.IOException

handleClear

public boolean handleClear(atg.servlet.DynamoHttpServletRequest pRequest,
                           atg.servlet.DynamoHttpServletResponse pResponse)
                    throws javax.servlet.ServletException,
                           java.io.IOException
Resets the current form data contained in value that hasn't been submitted yet. Especially useful when using a session scoped form handler.

Parameters:
pRequest - the servlet's request
pResponse - the servlet's response
Throws:
javax.servlet.ServletException - if there was an error while executing the code
java.io.IOException - if there was an error with servlet io

getUpdateSuccessURL

public java.lang.String getUpdateSuccessURL()
Overwrite parent's method

Overrides:
getUpdateSuccessURL in class atg.userprofiling.ProfileForm

getUpdateErrorURL

public java.lang.String getUpdateErrorURL()
Overwrite parent's method

Overrides:
getUpdateErrorURL in class atg.userprofiling.ProfileForm

setTemplateEmailSender

public void setTemplateEmailSender(atg.userprofiling.email.TemplateEmailSender pTemplateEmailSender)
Sets the property TemplateEmailSender


getTemplateEmailSender

public atg.userprofiling.email.TemplateEmailSender getTemplateEmailSender()
Returns:
The value of the property TemplateEmailSender

setNewAccountTemplateEmailInfo

public void setNewAccountTemplateEmailInfo(atg.userprofiling.email.TemplateEmailInfoImpl pNewAccountTemplateEmailInfo)
Sets the property NewAccountTemplateEmailInfo

This email template is used to notify the owner of a new account after creating their profile.


getNewAccountTemplateEmailInfo

public atg.userprofiling.email.TemplateEmailInfoImpl getNewAccountTemplateEmailInfo()
Returns:
The value of the property NewAccountTemplateEmailInfo

setResetPasswordTemplateEmailInfo

public void setResetPasswordTemplateEmailInfo(atg.userprofiling.email.TemplateEmailInfoImpl pResetPasswordTemplateEmailInfo)
Sets the property ResetPasswordTemplateEmailInfo

This email template is used to notify the customer after reseting password.


getResetPasswordTemplateEmailInfo

public atg.userprofiling.email.TemplateEmailInfoImpl getResetPasswordTemplateEmailInfo()
Returns:
The value of the property ResetPasswordTemplateEmailInfo

setSendNewAccountEmailInSeparateThread

public void setSendNewAccountEmailInSeparateThread(boolean pSendNewAccountEmailInSeparateThread)
Sets boolean indicating whether the new account email is sent in a separate thread.

Parameters:
pSendNewAccountEmailInSeparateThread - boolean indicating whether the new account email is sent in a separate thread.

isSendNewAccountEmailInSeparateThread

public boolean isSendNewAccountEmailInSeparateThread()
Returns boolean indicating whether the new account email is sent in a separate thread.


setSendResetPasswordEmailInSeparateThread

public void setSendResetPasswordEmailInSeparateThread(boolean pSendResetPasswordEmailInSeparateThread)
Sets boolean indicating whether Reset Password email is sent in a separate thread.

Parameters:
pSendResetPasswordEmailInSeparateThread - boolean indicating whether the new account email is sent in a separate thread.

isSendResetPasswordEmailInSeparateThread

public boolean isSendResetPasswordEmailInSeparateThread()
Returns boolean indicating whether the Reset Password email is sent in a separate thread.


setPersistNewAccountEmails

public void setPersistNewAccountEmails(boolean pPersistNewAccountEmails)
Sets property PersistNewAccountEmails, indicating if new account notification emails are persisted before they are sent.

Parameters:
pPersistNewAccountEmails - boolean indicating if new account notification emails are persisted before they are sent.

isPersistNewAccountEmails

public boolean isPersistNewAccountEmails()
Returns:
property PersistNewAccountEmails, indicating if new account notification emails are persisted before they are sent.

setPersistResetPasswordEmails

public void setPersistResetPasswordEmails(boolean pPersistResetPasswordEmails)
Sets property PersistResetPasswordEmails, indicating if Reset Password notification emails are persisted before they are sent.

Parameters:
pPersistResetPasswordEmails - boolean indicating if new account notification emails are persisted before they are sent.

isPersistResetPasswordEmails

public boolean isPersistResetPasswordEmails()
Returns:
property PersistResetPasswordEmails, indicating if new account notification emails are persisted before they are sent.

setSendNewAccountEmails

public void setSendNewAccountEmails(boolean pSendNewAccountEmails)
Sets property SendNewAccountEmails, indicating if new account notification emails are sent.

Parameters:
pSendNewAccountEmails - boolean indicating if new account notification emails are sent

isSendNewAccountEmails

public boolean isSendNewAccountEmails()
Returns:
property SendNewAccountEmails, indicating if new account notification emails are sent

setSendResetPasswordEmails

public void setSendResetPasswordEmails(boolean pSendResetPasswordEmails)
Sets property SendNewAccountEmails, indicating if ResetPassword emails are sent.

Parameters:
pSendResetPasswordEmails - boolean indicating if new account notification emails are sent

isSendResetPasswordEmails

public boolean isSendResetPasswordEmails()
Returns:
property SendResetPasswordEmails, indicating if new Reset Password emails are sent

getErrorUrl

public java.lang.String getErrorUrl()

setErrorUrl

public void setErrorUrl(java.lang.String errorUrl)

getSuccessUrl

public java.lang.String getSuccessUrl()

setSuccessUrl

public void setSuccessUrl(java.lang.String successUrl)

setProfile

public void setProfile(atg.userprofiling.Profile pProfile)
Sets the property Profile. This is set to the user Profile to edit.


getProfile

public atg.userprofiling.Profile getProfile()
Overrides:
getProfile in class atg.userprofiling.ProfileForm
Returns:
the Profile to be acted upon

setAgentProfile

public void setAgentProfile(atg.userprofiling.Profile pProfile)
Sets the property Profile. This is set to the user Profile to edit.


getAgentProfile

public atg.userprofiling.Profile getAgentProfile()
Returns:
the Profile to be acted upon

getTicketHolder

public atg.svc.ticketing.TicketHolder getTicketHolder()

setTicketHolder

public void setTicketHolder(atg.svc.ticketing.TicketHolder ticketHolder)

getManager

public atg.ticketing.TicketingManager getManager()

setManager

public void setManager(atg.ticketing.TicketingManager manager)

getViewTicketHolder

public atg.svc.ticketing.TicketHolder getViewTicketHolder()

setViewTicketHolder

public void setViewTicketHolder(atg.svc.ticketing.TicketHolder viewTicketHolder)

getLinkCustomerId

public java.lang.String getLinkCustomerId()

setLinkCustomerId

public void setLinkCustomerId(java.lang.String pLinkCustomerId)

getLinkCustomerName

public java.lang.String getLinkCustomerName()

setLinkCustomerName

public void setLinkCustomerName(java.lang.String pLinkCustomerName)

getApplicationName

public java.lang.String getApplicationName()

setApplicationName

public void setApplicationName(java.lang.String applicationName)

getChangePasswordReason

public java.lang.String getChangePasswordReason()

setChangePasswordReason

public void setChangePasswordReason(java.lang.String pChangePasswordReason)

getUpdateCustomerProfileReason

public java.lang.String getUpdateCustomerProfileReason()

setUpdateCustomerProfileReason

public void setUpdateCustomerProfileReason(java.lang.String pUpdateCustomerProfileReason)

getCreateCustomerProfileReason

public java.lang.String getCreateCustomerProfileReason()

setCreateCustomerProfileReason

public void setCreateCustomerProfileReason(java.lang.String pCreateCustomerProfileReason)

getPropertyUpdates

public java.util.Collection getPropertyUpdates()

setPropertyUpdates

public void setPropertyUpdates(java.util.Collection pPropertyUpdates)

isBackToTicketAfterCreate

public boolean isBackToTicketAfterCreate()

setBackToTicketAfterCreate

public void setBackToTicketAfterCreate(boolean pBackToTicketAfterCreate)

setViewMode

public void setViewMode(boolean pViewMode)
Sets the property viewMode.


isViewMode

public boolean isViewMode()
Returns:
viewMode