public class StoreCloseCmdImpl extends com.ibm.commerce.command.ControllerCommandImpl implements StoreCloseCmd
URL - URL that is executed upon completion of the command
targetStoreId - string of target store id
String and then iteratively
calls the ManageStoreTaskCmd task command to update store state
to close, refresh store registry and invalidate WebSphere Application Server
cache.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSNAME
Indicates closs name
|
static java.lang.String |
COPYRIGHT
Indicates standard copyright
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
StoreCloseCmdImpl() |
| 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, waitcheckPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiescheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic 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.ECCommandgetResources in class com.ibm.commerce.command.AbstractECTargetableCommandcom.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.ECCommandperformExecute in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECException - - The exception.public void reset()
reset in class com.ibm.commerce.command.AbstractECTargetableCommandpublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty requestProperties)
throws com.ibm.commerce.exception.ECException
setRequestProperties in interface com.ibm.commerce.command.ControllerCommandsetRequestProperties in class com.ibm.commerce.command.ControllerCommandImplrequestProperties - com.ibm.commerce.datatype.TypedPropertycom.ibm.commerce.exception.ECApplicationException.com.ibm.commerce.exception.ECExceptionpublic void setTargetStoreId(java.lang.Long[] newTargetStoreId)
setTargetStoreId in interface StoreCloseCmdthe - array of store id Long typepublic void setURL(java.lang.String newUrl)
setURL in interface StoreCloseCmdthe - URL string to be redirectedpublic void validateParameters()
throws com.ibm.commerce.exception.ECException
validateParameters in interface com.ibm.commerce.command.ECCommandvalidateParameters in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECException - - The exception.