public class StoreOpenCmdImpl extends com.ibm.commerce.command.ControllerCommandImpl implements StoreOpenCmd
URL
- URL that is executed upon completion of the command
targetStoreId
- string of store id
String
and then iteratively calls the ManageStoreCmd
task command to update store state to open, efresh store registry
and invalidate WebSphere Application Server cache
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this interface is "com.ibm.commerce.store.commands.StoreCloseCmd".
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
StoreOpenCmdImpl() |
Modifier and Type | Method and Description |
---|---|
com.ibm.commerce.accesscontrol.AccessVector |
getResources()
Returns the resources accessed by this command.
|
java.lang.String |
getURL()
Gets the URL to be redirected to when the command completes successfully.
|
void |
performExecute()
This static method perform closing a store
(Call ManageStore task command, update store state to close, refresh store registry
and invalidate WAS cache.)
|
void |
reset()
This method should be called after a command has been executed to reset its state variables.
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty requestProperties)
The WebController calls the setRequestProperties method before invoking the execute method in this command.
|
void |
setTargetStoreId(java.lang.Long[] newTargetStoreId)
Sets the list of targetStoreId to Opened.
|
void |
setURL(java.lang.String newUrl)
Sets the URL to be redirected to when the command completes successfully.
|
void |
validateParameters()
Check mandatory parameters.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public com.ibm.commerce.accesscontrol.AccessVector getResources() throws com.ibm.commerce.exception.ECException
getResources
in interface com.ibm.commerce.command.ECCommand
getResources
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- - The exception.public java.lang.String getURL()
public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- - The exception.public void reset()
reset
in class com.ibm.commerce.command.AbstractECTargetableCommand
public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty requestProperties) throws com.ibm.commerce.exception.ECException
setRequestProperties
in interface com.ibm.commerce.command.ControllerCommand
setRequestProperties
in class com.ibm.commerce.command.ControllerCommandImpl
requestProperties
- com.ibm.commerce.datatype.TypedPropertycom.ibm.commerce.exception.ECApplicationException.
com.ibm.commerce.exception.ECException
public void setTargetStoreId(java.lang.Long[] newTargetStoreId)
setTargetStoreId
in interface StoreOpenCmd
the
- array of store id Long typepublic void setURL(java.lang.String newUrl)
setURL
in interface StoreOpenCmd
the
- URL string to be redirectedpublic void validateParameters() throws com.ibm.commerce.exception.ECException
validateParameters
in interface com.ibm.commerce.command.ECCommand
validateParameters
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- - The exception.