public class TicklerUnlockMonitorCmdImpl extends ControllerCommandImpl implements TicklerUnlockMonitorCmd
TicklerUnlockMonitorCmdImpl
unlocks ticklers that have been locked
longer than a specified period of time (for example, four hours).Invoked by a scheduled job.
Mandatory parameters: storeId
Optional parameters: inUnlockAfterNumberOfHours
, URL
Behavior:
UnlockTickler
task command to unlock them.
Exceptional conditions:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this class.
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName
Constructor and Description |
---|
TicklerUnlockMonitorCmdImpl() |
Modifier and Type | Method and Description |
---|---|
AccessVector |
getResources()
This method retrieves the resources that are accessed by this command.
|
java.lang.Integer |
getUnlockAfterNumberOfHours()
This method retrieves the number of hours after which a locked tickler is to be unlocked.
|
java.lang.String |
getURL()
This method retrieves the value of redirect URL.
|
void |
performExecute()
This method executes the business logic for this command.
|
void |
reset()
This method resets all the command parameters.
|
void |
setRequestProperties(TypedProperty reqProperties)
This method sets the request properties.
|
void |
setUnlockAfterNumberOfHours(java.lang.Integer anUnlockAfterNumberOfHours)
This method sets the number of hours after which a locked tickler is to be unlocked.
|
void |
setURL(java.lang.String astrURL)
This method sets the redirect URL.
|
void |
validateParameters()
This method validates the command parameters.
|
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, getStoreId, getUser, getUserId, isReadyToCallExecute, 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
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, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.String getURL()
public void setURL(java.lang.String astrURL)
astrURL
- redirect URL.public java.lang.Integer getUnlockAfterNumberOfHours()
public void setUnlockAfterNumberOfHours(java.lang.Integer anUnlockAfterNumberOfHours)
anUnlockAfterNumberOfHours
- the number of hours after which a locked tickler is to be unlocked.public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setRequestProperties(TypedProperty reqProperties) throws ECApplicationException
requestProperties
provides additional methods for retrieving properties. It is wrapper to java.util.Map
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqProperties
- the request properties.ECApplicationException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException