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
           
 
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.scheduler.commands.EditJobCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.scheduler.commands.AddJobCmd
defaultCommandClassName, NAME
 
Constructor Summary
EditJobCmdImpl()
          Constructs the EditJobCmdImpl object.
 
Method Summary
 AccessVector getResources()
          Returns the resources.
 void performExecute()
          This is the real function part of the EditJob command - add a entry in scheduler config table and scheduler status table.
 void setRequestProperties(TypedProperty reqParms)
          This method extracts the required parameters from the request properties and sets it locally in the command.
 void validateParameters()
          Checks the validity of the parameters.
 
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.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

EditJobCmdImpl

public EditJobCmdImpl()
Constructs the EditJobCmdImpl object.
Method Detail

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 -