public class StyleFormHandler extends PortalGenericFormHandler
All handle methods in this form handler mirror a similiar pattern.
Each handleXXX process, some have an associated preXXX and postXXX method.
For example, the handleCreate
has an associate
preCreate
and postCreate
.
These pre/post methods provide an easy way for a user to extend the
functionality of this form handler.
GenericFormHandler
,
PortalGenericFormHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected static java.util.ResourceBundle |
sResourceBundle
Resource Bundle
|
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
StyleFormHandler()
Constructs an instanceof StyleFormHandler
|
Modifier and Type | Method and Description |
---|---|
UploadedFile |
getManifestFile()
Returns property manifestFile.
|
atg.portal.xml.tools.ManifestFileParser |
getManifestFileParser()
Returns property ManifestFileParser
|
java.lang.String |
getName()
Returns property Name
|
atg.portal.admin.PortalRepositoryTools |
getPortalRepositoryTools() |
atg.xml.tools.XMLToolsFactory |
getXmlToolsFactory()
Returns property XmlToolsFactory
|
boolean |
handleCreate(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Called when the admin selects create to create a new style palette.
|
boolean |
handleDelete(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Called when the administrator selects yes in delete confirmation page to
delete an item from the repository.
|
void |
postCreate(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just component creation is finished
|
void |
postDelete(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just after component deleting is finished
|
void |
preCreate(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just before component creation is started
|
void |
preDelete(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just before component deleting is initialized
|
void |
setManifestFile(UploadedFile pManifestFile)
Sets property manifestFile
|
void |
setManifestFileParser(atg.portal.xml.tools.ManifestFileParser pManifestFileParser)
Sets property ManifestFileParser
|
void |
setName(java.lang.String pName)
Sets property Name
|
void |
setPortalRepositoryTools(atg.portal.admin.PortalRepositoryTools p_tools)
Sets property portalRepositoryTools
|
void |
setXmlToolsFactory(atg.xml.tools.XMLToolsFactory pXmlToolsFactory)
Sets property XmlToolsFactory
|
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, setUseRequestLocale
afterSet, beforeSet, checkFormRedirect, commitTransaction, getTransactionDemarcation, getTransactionStatus, isEnsureTransaction, isRollbackTransaction, isRollbackTransactionOnUnhandledException, isTransactionMarkedAsRollback, setEnsureTransaction, setRollbackTransaction, setRollbackTransactionOnUnhandledException, setTransactionDemarcation
addUncheckedFormException, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleCancel, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwards
afterGet, beforeGet
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, 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, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
protected static java.util.ResourceBundle sResourceBundle
public StyleFormHandler()
public void setManifestFileParser(atg.portal.xml.tools.ManifestFileParser pManifestFileParser)
pManifestFileParser
- The property to store the value of the manifest file parser.public atg.portal.xml.tools.ManifestFileParser getManifestFileParser()
public void setXmlToolsFactory(atg.xml.tools.XMLToolsFactory pXmlToolsFactory)
pXmlToolsFactory
- The property to store the value of the XML Tools Factory.public atg.xml.tools.XMLToolsFactory getXmlToolsFactory()
public void setPortalRepositoryTools(atg.portal.admin.PortalRepositoryTools p_tools)
public atg.portal.admin.PortalRepositoryTools getPortalRepositoryTools()
public void setManifestFile(UploadedFile pManifestFile)
pManifestFile
- The property to store the manifest file.public UploadedFile getManifestFile()
public void setName(java.lang.String pName)
pName
- The property to store a component name. This handler can be used to delete portal items. This property would be used to store the name of a specific component.public java.lang.String getName()
getName
in interface NameContextElement
getName
in class GenericService
public boolean handleCreate(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet iopublic void preCreate(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongpublic void postCreate(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongpublic boolean handleDelete(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet iopublic void preDelete(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongpublic void postDelete(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrong