|
|||||||||
| 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.servlet.security.AdminFormHandler
public class AdminFormHandler
Base implementation of a Generic Form Handler done for Admin-like tasks
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
RESOURCE_BUNDLE
|
protected static java.util.ResourceBundle |
sResources
The resource bundle and errors |
static int |
STATUS_ERROR_REDIRECT
Constant to indicate that the state of the form errors, but that the form should perform a redirect. |
static int |
STATUS_ERROR_STAY
Constant to indicate that the state of the form errors, but that the form should not perform a redirect. |
static int |
STATUS_SUCCESS
Constant to indicate that the state of the form has no errors. |
| 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 | |
|---|---|
AdminFormHandler()
Empty as all bean consructors usually are. |
|
| Method Summary | |
|---|---|
protected int |
checkFormError(java.lang.String pErrorURL,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Check to see if there were errors during the submit operation. |
protected 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 |
protected java.lang.String |
formatUserMessage(java.lang.String pKey,
java.lang.Object pParam,
DynamoHttpServletRequest pRequest)
Utility method to format a message with no arguments using the Locale of the user |
protected java.lang.String |
generatePropertyPath(java.lang.String pPropertyName)
Returns a Nucleus property path which can be used in a DropletFormException |
java.lang.String |
getErrorRedirect()
Returns URL to which the user will be re-directed if an error has occured |
protected java.util.Locale |
getLocale(DynamoHttpServletRequest pRequest)
|
void |
setErrorRedirect(java.lang.String pErrorRedirect)
Sets URL to which the user will be re-directed if an error has occured |
| 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 RESOURCE_BUNDLE
public static final int STATUS_SUCCESS
checkFormError method.
public static final int STATUS_ERROR_STAY
checkFormError method.
public static final int STATUS_ERROR_REDIRECT
checkFormError method.
protected static java.util.ResourceBundle sResources
| Constructor Detail |
|---|
public AdminFormHandler()
| Method Detail |
|---|
public void setErrorRedirect(java.lang.String pErrorRedirect)
public java.lang.String getErrorRedirect()
protected int checkFormError(java.lang.String pErrorURL,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pErrorURL - the URL to redirect to if there are any form errorspRequest - the servlet's requestpResponse - the servlet's response
javax.servlet.ServletException - if there was an error while executing the code
java.io.IOException - if there was an error with servlet ioSTATUS_SUCCESS,
STATUS_ERROR_STAY,
STATUS_ERROR_REDIRECTprotected java.lang.String generatePropertyPath(java.lang.String pPropertyName)
pPropertyName - the string reprsentation of a property
protected java.util.Locale getLocale(DynamoHttpServletRequest pRequest)
pRequest - the request object which can be used to extract the user's locale
protected 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
protected 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 ResourceBundlepRequest - the request object which can be used to extract the user's locale
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||