com.ibm.commerce.scheduler.commands
Class EditJobCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.scheduler.commands.AddJobCmdImpl
|
+--com.ibm.commerce.scheduler.commands.EditJobCmdImpl
- All Implemented Interfaces:
- AccCommand, AddJobCmd, ControllerCommand, ECCommand, ECTargetableCommand, EditJobCmd, Protectable
- public class EditJobCmdImpl
- extends AddJobCmdImpl
- implements EditJobCmd
Edits a job to scheduler table by calling the remove job on the
given scheduler job and and add job to create a copy of the scheduler
job.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Constructor Summary |
EditJobCmdImpl()
Constructs the EditJobCmdImpl object. |
Methods inherited from class com.ibm.commerce.scheduler.commands.AddJobCmdImpl |
convertTime, getApplicationType, getAttempts, getCheckCommandId, getDelay, getEndTime, getErrorUrl, getHost, getInterfaceName, getInterval, getJobId, getJobInstanceId, getName, getPathInfo, getPriority, getQueryString, getSequence, getStartTime, getStoreId, getStringEndTime, getStringStartTime, getUrl, getUserRefNum, setApplicationType, setAttempts, setCheckCommandId, setDelay, setEndTime, setErrorUrl, setHost, setInterfaceName, setInterval, setJobId, setJobInfo, setName, setPathInfo, setPriority, setQueryString, setSequence, setStartTime, setStoreId, setStringEndTime, setStringStartTime, setUrl, setUserRefNum |
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, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
EditJobCmdImpl
public EditJobCmdImpl()
- Constructs the EditJobCmdImpl object.
getResources
public AccessVector getResources()
throws ECException
- Returns the resources.
- Specified by:
getResources
in interface ECCommand
- Overrides:
getResources
in class AddJobCmdImpl
- Returns:
- com.ibm.commerce.accesscontrol.AccessVector
- Throws:
ECException
- The exception description.
performExecute
public void performExecute()
throws ECException
- This is the real function part of the EditJob command - add a entry in
scheduler config table and scheduler status table.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AddJobCmdImpl
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setRequestProperties
public void setRequestProperties(TypedProperty reqParms)
throws ECException
- This method extracts the required parameters from the request properties and
sets it locally in the command.
It throws an ECApplicationException if a required parameter is missing.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Overrides:
setRequestProperties
in class AddJobCmdImpl
- Parameters:
reqParms
- com.ibm.commerce.datatype.TypedProperty- Throws:
ECApplicationException
-
validateParameters
public void validateParameters()
throws ECException
- Checks the validity of the parameters. It checks for the presence or absence of parameters and the range of
values.
- Specified by:
validateParameters
in interface ECCommand
- Overrides:
validateParameters
in class AddJobCmdImpl
- Throws:
ECException
-