public class StoreCategoryUpdateCmdImpl extends com.ibm.commerce.command.ControllerCommandImpl implements StoreCategoryUpdateCmd
URL
- View that is executed upon completion of the command
targetStoreId
- string of store id
storeCategoryId
- string of store id
String
and updates it to the store whose store id matches the targetStoreId.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this interface is "com.ibm.commerce.store.commands.StoreCategoryUpdateCmd".
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
StoreCategoryUpdateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOriginalStoreCategoryId()
Returns the origStoreCategoryId.
|
com.ibm.commerce.accesscontrol.AccessVector |
getResources()
Returns the resources accessed by this command.
|
java.lang.Long |
getStoreCategoryId()
Returns the instoreCategoryId.
|
java.lang.String |
getURL()
Gets the URL to be redirected to when the command completes successfully.
|
void |
performExecute()
This static method performs the update that sets the new category to which the store belongs.
|
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 |
setStoreCategoryId(java.lang.Long newStoreCategoryId)
Sets the store category id.
|
void |
setTargetStoreId(java.lang.Long newTargetStoreId)
Sets the store id.
|
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 java.lang.String getOriginalStoreCategoryId()
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.Long getStoreCategoryId()
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 setStoreCategoryId(java.lang.Long newStoreCategoryId)
setStoreCategoryId
in interface StoreCategoryUpdateCmd
the
- store category id Long typepublic void setTargetStoreId(java.lang.Long newTargetStoreId)
setTargetStoreId
in interface StoreCategoryUpdateCmd
the
- store id Long typepublic void setURL(java.lang.String newUrl)
setURL
in interface StoreCategoryUpdateCmd
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.