public abstract class AbstractRedirectViewCommand extends AbstractViewCommand implements RedirectViewCommand
defaultCommandClassName
Constructor and Description |
---|
AbstractRedirectViewCommand()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDocumentPathName()
This method gets the path name of the document to be forwarded.
|
java.lang.String |
getRedirectUrl()
This method gets the
EC_REDIRECTURL property from the request properties. |
void |
setViewStorePath(java.lang.Integer storePathId)
This method sets the directory for the store path used to instantiate this view command.
|
fulfills, getForUserId, getOwner, getRequestProperties, getResourceOwners, getResponseProperties, getViewCommandContext, getViewName, mergeProperties, performExecute, setForUserId, setOwner, setRequestProperties, setViewCommandContext, setViewName
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, setForUserId, setUserId, validateParameters
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequestProperties, getResponseProperties, getViewName, mergeProperties, setRequestProperties, setViewName
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
public AbstractRedirectViewCommand()
public void setViewStorePath(java.lang.Integer storePathId)
storePathId
- This is the store path identifier.public java.lang.String getDocumentPathName() throws ECException
getDocumentPathName
in interface RedirectViewCommand
ECException
- This exception generates an _ERR_CMD_MISSING_PARAM
or an _ERR_GENERIC
error message.public java.lang.String getRedirectUrl() throws ECException
EC_REDIRECTURL
property from the request properties. If none is found,
it will try to get the EC_URL
property instead. If none is found, it throws a ParameterNotFoundException
.
After the EC_REDIRECTURL
or EC_URL
has been retrieved, it will be removed from the
properties list so that it won't be added as a parameter to the redirect url itself.getRedirectUrl
in interface RedirectViewCommand
URL
.ECException