|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.droplet.EmptyFormHandler
atg.droplet.GenericFormHandler
atg.userprofiling.ProfileForm
atg.userprofiling.ProfileFormHandler
atg.scenario.userprofiling.ScenarioProfileFormHandler
public class ScenarioProfileFormHandler
This form handler subclasses the DPS ProfileFormHandler and performs operations that are specific to the DSS layer.
Specifically, when a user logs in, if the session's transient user has any associated scenario instances, they are copied over to the persistent user's profile, provided that:
This functionality allows scenarios to be continued across the login boundary.
In addition, when a user logs in and the session's transient user has persistent slot instances, they are copied over to the persistent user's profile, provided that:
This functionality also allows persistent slots to be continued across the login boundary.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class atg.userprofiling.ProfileForm |
|---|
ProfileForm.ProfileFormHashtableWrapper |
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
| Fields inherited from class atg.userprofiling.ProfileFormHandler |
|---|
mClearValuesOnCreate, mClearValuesOnLogin, mClearValuesOnUpdate |
| 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.scenario.ScenarioConstants |
|---|
ATTR_SCENARIO_REDIRECT, PROPERTY_REFERENCE_TARGET, PROPERTY_REFERENCE_TYPE, PROPERTY_SCENARIO_INSTANCES, PROPERTY_SLOT_INSTANCES |
| Fields inherited from interface atg.process.ProcessConstants |
|---|
COLLECTIVE_CLONE_PROPERTIES, DEFAULT_INITIAL_TIME_DELAY, DEFAULT_MAX_BATCH_SIZE, DEFAULT_PROCESS_FILE_EXTENSION, DEFAULT_TEMPLATE_FILE_EXTENSION, INDIVIDUAL_CLONE_PROPERTIES, INPUT_PORT_BATCH_TIMER, INPUT_PORT_COLLECTIVE_TIMER, INPUT_PORT_DISABLE_PROCESS, INPUT_PORT_GLOBAL_EVENT, INPUT_PORT_INDIVIDUAL_EVENT, INPUT_PORT_INDIVIDUAL_TIMER, INPUT_PORT_MIGRATION_UPDATE, INPUT_PORT_PROCESS_UPDATE, INPUT_PORT_SEGMENT_START_TIMER, JMS_TYPE_BATCH_TIMER, JMS_TYPE_COLLECTIVE_TIMER, JMS_TYPE_DISABLE_PROCESS, JMS_TYPE_INDIVIDUAL_TIMER, JMS_TYPE_MIGRATION_DELETE, JMS_TYPE_MIGRATION_UPDATE, JMS_TYPE_PROCESS_UPDATE, MIGRATION_STATUS_DONE, MIGRATION_STATUS_IN_PROGRESS, OUTPUT_PORT_BATCH_TIMER, OUTPUT_PORT_COLLECTIVE_TIMER, OUTPUT_PORT_INDIVIDUAL_TIMER, OUTPUT_PORT_MIGRATION_UPDATE, OUTPUT_PORT_PROCESS_UPDATE, OUTPUT_PORT_SEGMENT_START_TIMER, PROPERTY_AUTHOR, PROPERTY_COLLECTIVE_INSTANCE, PROPERTY_CONTEXT_BOOLEANS, PROPERTY_CONTEXT_DATES, PROPERTY_CONTEXT_DOUBLES, PROPERTY_CONTEXT_LONGS, PROPERTY_CONTEXT_STRINGS, PROPERTY_COUNT, PROPERTY_CREATED_BY_RECURRING_EVENT, PROPERTY_CREATION_TIME, PROPERTY_CREATOR_ID, PROPERTY_EVENT_TYPE, PROPERTY_ID, PROPERTY_LAST_MODIFIED_BY, PROPERTY_LAST_QUERY_ID, PROPERTY_MESSAGE_BEAN, PROPERTY_MIGRATION_INFO, PROPERTY_MIGRATION_INFOS, PROPERTY_MIGRATION_STATUS, PROPERTY_MODIFICATION_TIME, PROPERTY_NEW_MODIFICATION_TIME, PROPERTY_NUM_TRANSITION_RETRIES, PROPERTY_OLD_MODIFICATION_TIME, PROPERTY_PDL, PROPERTY_PROCESS_INFO, PROPERTY_PROCESS_NAME, PROPERTY_PROCESS_STATUS, PROPERTY_SEGMENT_NAME, PROPERTY_SEGMENT_NAMES, PROPERTY_SERVER_ID, PROPERTY_SERVER_TYPE, PROPERTY_STATE, PROPERTY_STATE_MACHINE_VERSION, PROPERTY_STEP, PROPERTY_SUBJECT, PROPERTY_TEMPLATE_NAME, STEP_ACTIONS_1, STEP_ACTIONS_2, STEP_NEXT_STATE_1, STEP_NEXT_STATE_2, UNDEFINED_TIMESTAMP_VALUE, WILDCARD_MATCH_ALL |
| Fields inherited from interface atg.scenario.targeting.SlotConstants |
|---|
PROFILE_SLOT_TYPE, PROPERTY_ID, PROPERTY_SLOT_ITEMS, PROPERTY_SLOT_NAME, PROPERTY_SLOT_OFFSET, PROPERTY_SLOT_PRIORITIES, PROPERTY_SLOT_PROFILE, TRANS_MGR |
| 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 | |
|---|---|
ScenarioProfileFormHandler()
|
|
| Method Summary | |
|---|---|
protected void |
addProperty(java.lang.String pPropertyName,
RepositoryItem pGuestUser,
MutableRepositoryItem pAuthenticatedUser)
Add the given named property from the current anonymous user to the authenticated user. |
protected void |
addScenarioInstances(atg.scenario.ScenarioManagerService pScenarioManager,
RepositoryItem pGuestUser,
MutableRepositoryItem pAuthenticatedUser)
Add the scenarioInstances property from the anonymous user to those of the authenticated user. |
protected void |
addSlotInstances(RepositoryItem pGuestUser,
MutableRepositoryItem pAuthUser,
java.lang.String pSlotInstancesProperty)
Add the "slotInstances" property from the anonymous user to those of the authenticated user. |
atg.scenario.ScenarioManagerService |
getScenarioManager()
Returns the ScenarioManagerService. |
boolean |
handleCreate(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This overrides the ProfileFormHandler.handleCreate method in order to redirect if a scenario RedirectRequest action has been executed |
boolean |
handleDelete(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This overrides the ProfileFormHandler.handleDelete method in order to redirect if a scenario RedirectRequest action has been executed |
boolean |
handleLogin(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This overrides the ProfileFormHandler.handleLogin method in order to redirect if a scenario RedirectRequest action has been executed |
boolean |
handleLogout(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This overrides the ProfileFormHandler.handleLogout method in order to redirect if a scenario RedirectRequest action has been executed |
boolean |
handleUpdate(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This overrides the ProfileFormHandler.handleUpdate method in order to redirect if a scenario RedirectRequest action has been executed |
boolean |
isOverrideFormHandlerRedirect()
Gets the OverrideFormHandlerRedirect property |
void |
setOverrideFormHandlerRedirect(boolean pOverrideFormHandlerRedirect)
Sets the OverrideFormHandlerRedirect property |
void |
setScenarioManager(atg.scenario.ScenarioManagerService pScenarioManager)
Sets the ScenarioManagerService. |
| 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
| Constructor Detail |
|---|
public ScenarioProfileFormHandler()
| Method Detail |
|---|
public atg.scenario.ScenarioManagerService getScenarioManager()
public void setScenarioManager(atg.scenario.ScenarioManagerService pScenarioManager)
public void setOverrideFormHandlerRedirect(boolean pOverrideFormHandlerRedirect)
pOverrideFormHandlerRedirect - true if any scenarios
with redirects should override the form handler's redirects
e.g. loginSuccessURL, logoutSuccessURL. The only exception
to this is when form errors occur, no scenario redirect will
take placepublic boolean isOverrideFormHandlerRedirect()
pOverrideFormHandlerRedirect - true if any scenarios
with redirects should override the form handler's redirects
e.g. loginSuccessURL, logoutSuccessURL. The only exception
to this is when form errors occur, no scenario redirect will
take place
protected void addProperty(java.lang.String pPropertyName,
RepositoryItem pGuestUser,
MutableRepositoryItem pAuthenticatedUser)
throws RepositoryException
addProperty in class ProfileFormRepositoryException
protected void addScenarioInstances(atg.scenario.ScenarioManagerService pScenarioManager,
RepositoryItem pGuestUser,
MutableRepositoryItem pAuthenticatedUser)
throws RepositoryException
RepositoryException
protected void addSlotInstances(RepositoryItem pGuestUser,
MutableRepositoryItem pAuthUser,
java.lang.String pSlotInstancesProperty)
throws RepositoryException
RepositoryException
public boolean handleLogin(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
handleLogin in class ProfileFormpRequest - the request of the form handlerpResponse - the response of the form handler
javax.servlet.ServletException - if a servlet error occurs
java.io.IOException - if the redirect fails
public boolean handleUpdate(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
handleUpdate in class ProfileFormHandlerpRequest - the request of the form handlerpResponse - the response of the form handler
javax.servlet.ServletException - if a servlet error occurs
java.io.IOException - if the redirect fails
public boolean handleCreate(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
handleCreate in class ProfileFormHandlerpRequest - the request of the form handlerpResponse - the response of the form handler
javax.servlet.ServletException - if a servlet error occurs
java.io.IOException - if the redirect fails
public boolean handleLogout(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
handleLogout in class ProfileFormpRequest - the request of the form handlerpResponse - the response of the form handler
javax.servlet.ServletException - if a servlet error occurs
java.io.IOException - if the redirect fails
public boolean handleDelete(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
handleDelete in class ProfileFormpRequest - the request of the form handlerpResponse - the response of the form handler
javax.servlet.ServletException - if a servlet error occurs
java.io.IOException - if the redirect fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||