public class PolicyUpdateCmdImpl extends com.ibm.commerce.command.ControllerCommandImpl implements PolicyUpdateCmd
PolicyUpdateCmd
controller command.
Name | Description |
---|---|
BusinessPolicyName |
The name of the business policy. Mandatory. |
BusinessPolicyType |
The type of the business policy. Mandatory. |
Commands |
The commands which process the business policy. Optional. |
CommonProperty |
The common property string which business policy commands need.. Optional. |
CommonSingleProperty |
The single common property string which business policy commands need.. Optional. |
EndDate |
The end date of the business policy. Optional. |
Properties |
The specific properties of the business policy commands need. Optional. |
RequestProperties |
The request properties. Possible values include: redirecturl, XMLFile, type, name, plcyStoreId, cmd, props, prop, commonProps, commonProp, startDate, endDate. Optional. |
SingleProperties |
The single specific properties of the business policy commands need. Optional. |
StartDate |
The start date of the business policy. Mandatory. |
StoreEntityId |
The store entity id which the business policy belongs to. Mandatory. |
Name | Description |
---|---|
EndDate |
The end date of the business policy. |
StartDate |
The start date of the business policy. |
Resources |
The access vector accessed by this command. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The default implementation class is "com.ibm.commerce.contract.commands.PolicyUpdateCmdImpl".
|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
PolicyUpdateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.sql.Timestamp |
getEndDate()
Returns the end date of the business policy.
|
com.ibm.commerce.accesscontrol.AccessVector |
getResources()
Gets the access vector accessed by this command.
|
java.sql.Timestamp |
getStartDate()
Returns the start date of the business policy.
|
void |
performExecute()
Executes the business logic of this command implementation.
|
void |
setBusinessPolicyName(java.lang.String name)
Sets the name of the business policy.
|
void |
setBusinessPolicyType(java.lang.String type)
Sets the type of the business policy.
|
void |
setCommands(java.util.Hashtable commands)
Sets the commands which process the business policy.
|
void |
setCommonProperty(java.lang.String commonProp)
Sets the common property string which business policy commands need.
|
void |
setCommonSingleProperty(java.lang.String commonSingleProp)
Sets a single common property string which business policy commands need.
|
void |
setEndDate(java.lang.Long anEndDate)
Set the end date of the business policy.
|
void |
setEndDate(java.lang.String endDate)
Sets the end date of the business policy.
|
void |
setEndDate(java.sql.Timestamp newEndDate)
Sets the end date of the business policy.
|
void |
setProperties(java.util.Hashtable props)
Sets the specific properties of the business policy commands need.
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties)
Sets the request properties
|
void |
setSingleProperties(java.util.Hashtable props)
Sets the single specific properties of the business policy commands need.
|
void |
setStartDate(java.lang.Long anStartDate)
Sets the start date of the business policy.
|
void |
setStartDate(java.lang.String startDate)
Sets the starting date of the business policy.
|
void |
setStartDate(java.sql.Timestamp newStartDate)
Sets the start date of the business policy.
|
void |
setStoreEntityId(java.lang.Integer storeEntId)
Sets the store entity id which the business policy belongs to.
|
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, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
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, validateParameters
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public java.sql.Timestamp getEndDate()
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
public java.sql.Timestamp getStartDate()
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
public void setBusinessPolicyName(java.lang.String name)
setBusinessPolicyName
in interface PolicyUpdateCmd
name
- The name of the business policy.public void setBusinessPolicyType(java.lang.String type)
setBusinessPolicyType
in interface PolicyUpdateCmd
type
- the business policy typepublic void setCommands(java.util.Hashtable commands)
setCommands
in interface PolicyUpdateCmd
commands
- All the commands to process the business policy.public void setCommonProperty(java.lang.String commonProp)
setCommonProperty
in interface PolicyUpdateCmd
commonProp
- The common property which business policy commands need to process the policy.public void setCommonSingleProperty(java.lang.String commonSingleProp)
setCommonSingleProperty
in interface PolicyUpdateCmd
commonSingleProp
- The common property which business policy commands need to process the policy.public void setEndDate(java.lang.Long anEndDate)
anEndDate
- The end date of the business policy.public void setEndDate(java.lang.String endDate)
setEndDate
in interface PolicyUpdateCmd
endDate
- A string object in yyyy-mm-dd hh:mm:ss.fffffffff format.public void setEndDate(java.sql.Timestamp newEndDate)
newEndDate
- The end date of the business policy.public void setProperties(java.util.Hashtable props)
setProperties
in interface PolicyUpdateCmd
props
- A hashtable contains the business properties for a business commandpublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties) throws com.ibm.commerce.exception.ECApplicationException
setRequestProperties
in interface com.ibm.commerce.command.ControllerCommand
setRequestProperties
in class com.ibm.commerce.command.ControllerCommandImpl
aRequestProperties
- the request propertiescom.ibm.commerce.exception.ECApplicationException
public void setSingleProperties(java.util.Hashtable props)
setSingleProperties
in interface PolicyUpdateCmd
props
- A hashtable contains the business properties for a business commandpublic void setStartDate(java.lang.Long anStartDate)
anStartDate
- The start date of the business policy.public void setStartDate(java.lang.String startDate)
setStartDate
in interface PolicyUpdateCmd
startDate
- java.lang.Stringpublic void setStartDate(java.sql.Timestamp newStartDate)
newStartDate
- The start date of the business policy.public void setStoreEntityId(java.lang.Integer storeEntId)
setStoreEntityId
in interface PolicyUpdateCmd
storeEntId
- The store entity id.