java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.contract.commands.PolicyAddCmdImpl
Adds a business policy to the POLICY database table (WebSphere Commerce Business Edition only). The following AccessBeans are used in this default implementation: StoreEntityAccessBean, BusinessPolicyAccessBean, PolicyCommandAccessBean, ContractJDBCHelperAccessBean().findAllBusinessPolicyType()
Field Summary | |
static java.lang.String | CLASSNAME The name of this class. |
static java.lang.String | COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.contract.commands.PolicyAddCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
PolicyAddCmdImpl() |
Method Summary | |
java.sql.Timestamp | getEndDate() Gets the end date of the business policy. |
AccessVector | getResources() Gets the access vector accessed by this command. |
java.sql.Timestamp | getStartDate() Gets the start date of the business policy. |
void | performExecute() The method add the business policy to policy table, and create the business policy and command(s) relationship. |
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 | setEndDate(java.lang.Long anEndDate) Sets 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 buisness policy. |
void | setProperties(java.util.Hashtable props) Sets the specific properties of the business policy commands need. |
void | setRequestProperties(TypedProperty aRequestProperties) Retrieves input parameters from the request properties. |
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 startDate) Sets the start date of the business policy. |
void | setStoreEntityId(java.lang.Integer storeEntId) Sets the store entity Id to which the business policy belongs. |
void | validateParameters() Checks the input parameters. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
Constructor Detail |
public PolicyAddCmdImpl()
Method Detail |
public java.sql.Timestamp getEndDate()
public AccessVector getResources() throws ECException
public java.sql.Timestamp getStartDate()
public void performExecute() throws ECException
public void setBusinessPolicyName(java.lang.String name)
public void setBusinessPolicyType(java.lang.String type)
public void setCommands(java.util.Hashtable commands)
public void setCommonProperty(java.lang.String commonProp)
public void setEndDate(java.lang.Long anEndDate)
public void setEndDate(java.lang.String endDate)
public void setEndDate(java.sql.Timestamp newEndDate)
public void setProperties(java.util.Hashtable props)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public void setStartDate(java.lang.Long anStartDate)
public void setStartDate(java.lang.String startDate)
public void setStartDate(java.sql.Timestamp startDate)
public void setStoreEntityId(java.lang.Integer storeEntId)
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.