public class AddBroadcastJobCmdImpl extends AddJobCmdImpl implements AddBroadcastJobCmd
This class adds a new broadcast job to the WebSphere Commerce Server's scheduler.
The parameters passed to the command are:
pathInfo
(required): This is the command to execute.
URL
(required): This is the URL to which we are redirected after the command is executed.
queryString
(optional): This represents the parameters passed to the command. These will be in the same format
as the query string of a URL request. If no value is specified, the default value is null
which represents that no parameters are passed to the executing command.
name
(optional): This is the user as whom the command is to be run. If no value is specified the current user
adding the broadcast job is used.
This command sets and verifies the configuration needed to create a broadcast job. Only the parameters specified
above are configurable and the rest of the configuration will be set in this command. The actual creation of the
scheduled job is handled by the AddJobCmdImpl
class and this command just controls the configuration that
is specified to the scheduled job.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME, URLNAME
defaultCommandClassName, NAME
Constructor and Description |
---|
AddBroadcastJobCmdImpl()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
void |
setRequestProperties(TypedProperty reqParms)
This method extracts the required parameters from the request properties and
sets them locally in the command.
|
void |
validateParameters()
This method validates the parameters passed to the command and sets other schedule job configuration parameters that
are associated with a broadcast job.
|
getApplicationType, getAttempts, getCheckCommandId, getDelay, getHost, getInterfaceName, getJobId, getJobInstanceId, getResources, getStoreId, getUserRefNum, performExecute, setApplicationType, setAttempts, setCheckCommandId, setDelay, setDescription, setEndTime, setErrorUrl, setHost, setInterfaceName, setInterval, setJobId, setJobInfo, setName, setPathInfo, setPriority, setQueryString, setSequence, setStartTime, setStoreId, setStringEndTime, setStringStartTime, setUrl, setUserRefNum
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, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getJobId, getJobInstanceId, setName, setPathInfo, setQueryString, setUrl, setUserRefNum
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public AddBroadcastJobCmdImpl()
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AddJobCmdImpl
ECException
- This is thrown if there are either missing or invalid parameters passed to the command.public void setRequestProperties(TypedProperty reqParms) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class AddJobCmdImpl
reqParms
- This is a TypedProperty
object that represents the parameters passed to the command.ECException
- This is thrown if there is either missing or incorrect parameter values passed to the command.