public class GearConfigFormHandler extends PortalGenericFormHandler
Properties:
For an example please see the reference gears.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDSSERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
GearConfigFormHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFailureMessage(java.lang.String pResourceBundle,
java.lang.String pMsgId,
java.lang.String[] pArgs)
Set a form processing error message that should be visible to the user.
|
void |
addSuccessMessage(java.lang.String pResourceBundle,
java.lang.String pMsgId,
java.lang.String[] pArgs)
Set a form processing info message that should be visible to the user.
|
void |
beforeGet(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Calls super.beforeGet() and then enables the transactional
form handler management features with setEnsureTransaction(true).
|
java.lang.String |
getCancelUrl() |
java.lang.String |
getCommunityIdRequestParameter() |
java.lang.String |
getFailureUrl() |
java.lang.String |
getGearDefIdRequestParameter() |
protected GearEnvironment |
getGearEnvironment(DynamoHttpServletRequest pReq,
DynamoHttpServletResponse pResp)
sets up the gear environment.
|
java.lang.String |
getGearIdRequestParameter() |
java.lang.String |
getParamNames()
Returns a space delimited list of the names of the gear params that will be set in this form
|
java.lang.String |
getParamType()
choices are instance (default) or user
|
java.lang.String |
getSuccessUrl() |
java.util.Map |
getValues() |
boolean |
handleCancel(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Cancel.
|
boolean |
handleCollectValues(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method is intended for collecting the values from the form
into the value map.
|
boolean |
handleConfirm(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Take the values from the value property and set them into the
gear environment user or instance parameters.
|
boolean |
handleInitializeDefaultValues(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse) |
boolean |
handleParamNames(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
initialize the default values of the values map property by getting
the parameter values out of the gear environment
|
boolean |
isSettingDefaultValues()
if true, then we are setting default values of the gear definition parameters
|
boolean |
isSettingUserParams()
convenience method to determine if we are setting user params or instance params
|
void |
postCollectValues(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Override this method to do any post-processing.
|
void |
postConfirm(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Override this method to do any post-processing.
|
void |
preCollectValues(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Override this method to do any pre-processing or verification of form input.
|
void |
preConfirm(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Override this method to do any pre-processing or verification of form input.
|
void |
setCancelUrl(java.lang.String s) |
void |
setCommunityIdRequestParameter(java.lang.String pCommunityIdRequestParameter) |
void |
setFailureUrl(java.lang.String s) |
void |
setGearDefIdRequestParameter(java.lang.String pGearDefIdRequestParameter) |
void |
setGearIdRequestParameter(java.lang.String pGearIdRequestParameter) |
void |
setInitializeDefaultValues(java.lang.String s) |
void |
setParamNames(java.lang.String pParamNames)
Sets a space delimited list of the names of the gear params that will be set in this form
|
void |
setParamType(java.lang.String pParamType)
choices are instance (default) or user
|
void |
setSettingDefaultValues(boolean pSettingDefaultValues)
set property to true to set default values of the gear definition parameters
|
void |
setSuccessUrl(java.lang.String s) |
void |
setValues(java.util.Map pValues) |
addFormException, formatUserMessage, formatUserMessage, formatUserMessage, formatUserMessage, getDefaultLocale, getFailureMessageProcessor, getFailureURL, getFormError, getFormInfo, getFormMessages, getLocale, getPublisher, getSuccessMessageProcessor, getSuccessURL, getUserLocale, handleResetFormExceptions, handleResetFormMessages, handleSetLocale, isUseRequestLocale, processException, processException, processException, processException, processSuccess, processSuccess, processSuccess, resetFormMessages, sendAlertMessage, setDefaultLocale, setFailureMessageProcessor, setFailureURL, setPublisher, setSuccessMessageProcessor, setSuccessURL, setUseRequestLocaleafterSet, beforeSet, checkFormRedirect, commitTransaction, getTransactionDemarcation, getTransactionStatus, isEnsureTransaction, isRollbackTransaction, isRollbackTransactionOnUnhandledException, isTransactionMarkedAsRollback, setEnsureTransaction, setRollbackTransaction, setRollbackTransactionOnUnhandledException, setTransactionDemarcationaddUncheckedFormException, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, 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, setUseForwardsafterGetaddLogListener, 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 void setParamType(java.lang.String pParamType)
public java.lang.String getParamType()
public void setSettingDefaultValues(boolean pSettingDefaultValues)
public boolean isSettingDefaultValues()
public void setValues(java.util.Map pValues)
public java.util.Map getValues()
public void setGearIdRequestParameter(java.lang.String pGearIdRequestParameter)
public java.lang.String getGearIdRequestParameter()
public void setCommunityIdRequestParameter(java.lang.String pCommunityIdRequestParameter)
public java.lang.String getCommunityIdRequestParameter()
public void setGearDefIdRequestParameter(java.lang.String pGearDefIdRequestParameter)
public java.lang.String getGearDefIdRequestParameter()
public void beforeGet(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
beforeGet in interface DropletFormHandlerbeforeGet in class EmptyFormHandlerpublic boolean handleCollectValues(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic boolean handleCancel(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
handleCancel in class GenericFormHandlerjavax.servlet.ServletExceptionjava.io.IOExceptionpublic boolean handleConfirm(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void preConfirm(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void postConfirm(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void preCollectValues(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void postCollectValues(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void setParamNames(java.lang.String pParamNames)
public java.lang.String getParamNames()
public boolean handleParamNames(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionprotected GearEnvironment getGearEnvironment(DynamoHttpServletRequest pReq, DynamoHttpServletResponse pResp)
public java.lang.String getSuccessUrl()
public void setSuccessUrl(java.lang.String s)
public java.lang.String getFailureUrl()
public void setFailureUrl(java.lang.String s)
public java.lang.String getCancelUrl()
public void setCancelUrl(java.lang.String s)
public boolean handleInitializeDefaultValues(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void setInitializeDefaultValues(java.lang.String s)
public void addFailureMessage(java.lang.String pResourceBundle,
java.lang.String pMsgId,
java.lang.String[] pArgs)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void addSuccessMessage(java.lang.String pResourceBundle,
java.lang.String pMsgId,
java.lang.String[] pArgs)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic boolean isSettingUserParams()