com.ibm.commerce.contract.commands
Class PolicyAddCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.contract.commands.PolicyAddCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, PolicyAddCmd, Protectable
- public class PolicyAddCmdImpl
- extends ControllerCommandImpl
- implements PolicyAddCmd
Add a business policy to policy table (WebSphere Commerce Business Edition only).
Method Summary |
java.sql.Timestamp |
getEndDate()
Return the end date of the contract |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
java.sql.Timestamp |
getStartDate()
Return the start date of the contract |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
void |
setEndDate(java.lang.Long anEndDate)
Set the end date of the contract |
void |
setEndDate(java.sql.Timestamp newEndDate)
Set the end date of the contract |
void |
setRequestProperties(TypedProperty aRequestProperties)
The WebController calls this method before invoking the execute method in this command to
set the request properties for this command. |
void |
setStartDate(java.lang.Long anStartDate)
Set the start date of the contract |
void |
setStartDate(java.sql.Timestamp newStartDate)
Set the start date of the contract |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
CLASSNAME
public static final java.lang.String CLASSNAME
COPYRIGHT
public static final java.lang.String COPYRIGHT
PolicyAddCmdImpl
public PolicyAddCmdImpl()
getEndDate
public java.sql.Timestamp getEndDate()
- Return the end date of the contract
- Returns:
- java.sql.Timestamp
getResources
public AccessVector getResources()
throws ECException
- Gets the access vector accessed by this command.
The default implementation returns null indicating that no protectable resource is
accessed by this command. It is the responsibilities of the command writer to
return the protectable primary resource(s) and the corresponding actions accessed
by this command.
- Specified by:
getResources
in interface ECCommand
- Overrides:
getResources
in class AbstractECTargetableCommand
- Returns:
- AccessVector - a vector of resource action pairs
getStartDate
public java.sql.Timestamp getStartDate()
- Return the start date of the contract
- Returns:
- java.sql.Timestamp
performExecute
public void performExecute()
throws ECException
- Description copied from interface:
ECCommand
- Contains the actual business logic of the command
It should be implemented by all the command writer.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setEndDate
public void setEndDate(java.lang.Long anEndDate)
- Set the end date of the contract
- Parameters:
anEndDate
- java.lang.Long
setEndDate
public void setEndDate(java.sql.Timestamp newEndDate)
- Set the end date of the contract
- Parameters:
newEndDate
- java.sql.Timestamp
setRequestProperties
public void setRequestProperties(TypedProperty aRequestProperties)
throws ECApplicationException
- Description copied from interface:
ControllerCommand
- The WebController calls this method before invoking the execute method in this command to
set the request properties for this command.
It is the responsibility of the implementer of the ControllerCommand to extract the
required input parameters from the request properties and perform parameter checking.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Overrides:
setRequestProperties
in class ControllerCommandImpl
- Following copied from interface:
com.ibm.commerce.command.ControllerCommand
- Parameters:
requestProperties
- com.ibm.commerce.datatype.TypedProperty- Throws:
com.ibm.commerce.exception.ECException.
-
setStartDate
public void setStartDate(java.lang.Long anStartDate)
- Set the start date of the contract
- Parameters:
anStartDate
- java.lang.Long
setStartDate
public void setStartDate(java.sql.Timestamp newStartDate)
- Set the start date of the contract
- Parameters:
newStartDate
- java.sql.Timestamp