public class UpdateTicklerCmdImpl extends TaskCommandImpl implements UpdateTicklerCmd
UpdateTicklerCmdImpl
updates ticklers from the supplied list.
Behavior:
Exceptional conditions:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this class.
|
Constructor and Description |
---|
UpdateTicklerCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getAssignToMemberId()
This method gets the identifier of the Customer Service Representative to whom this tickler is assigned.
|
java.sql.Timestamp |
getRemindOnDate()
This method retrieves the date-time when this tickler should next pop into the queue.
|
AccessVector |
getResources()
This method gets the resources that are accessed by this command.
|
java.lang.Short |
getStatus()
This method retrieves the tickler status.
|
java.lang.String |
getTicklerComment()
This method gets the tickler comment.
|
java.lang.Long[] |
getTicklerIds()
This method gets the list of tickler identifiers.
|
boolean |
getUnassigned()
This method gets the
boolean flag that determines whether the tickler is to be assigned to a member. |
void |
performExecute()
This method executes the business logic for this command.
|
void |
reset()
This method resets all the command parameters.
|
void |
setAssignToMemberId(java.lang.Long anAssignToMemberId)
This method sets the identifier of the Customer Service Representative to whom this tickler is assigned.
|
void |
setRemindOnDate(java.sql.Timestamp aRemindOnDate)
This method sets the date-time when this tickler should next pop into the queue.
|
void |
setRequestProperties(TypedProperty reqParms)
This method sets the request properties.
|
void |
setStatus(java.lang.Short aStatus)
This method sets the tickler status.
|
void |
setTicklerComment(java.lang.String astrComment)
This method sets the tickler comment.
|
void |
setTicklerIds(java.lang.Long[] aarrnTicklerIds)
This method sets the list of tickler identifiers.
|
void |
setUnassigned(boolean inUnassignedValue)
This method sets the
boolean flag that determines whether the tickler is to be assigned to a member. |
void |
updateTickler(TicklerAccessBean abTickler,
java.lang.String comment,
java.lang.Integer languageIdentifier,
java.sql.Timestamp remindOnDate,
java.lang.Short status,
boolean unassigned,
java.lang.Long assignToMember,
java.lang.Integer assignToRole)
This method updates an existing tickler.
|
void |
validateParameters()
This method validates the command parameters.
|
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
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String CLASSNAME
public java.lang.String getTicklerComment()
getTicklerComment
in interface UpdateTicklerCmd
public void setTicklerComment(java.lang.String astrComment)
setTicklerComment
in interface UpdateTicklerCmd
astrComment
- text of the comment.public java.sql.Timestamp getRemindOnDate()
getRemindOnDate
in interface UpdateTicklerCmd
public void setRemindOnDate(java.sql.Timestamp aRemindOnDate)
setRemindOnDate
in interface UpdateTicklerCmd
aRemindOnDate
- date-time when this tickler should next pop into the queue.public java.lang.Long getAssignToMemberId()
getAssignToMemberId
in interface UpdateTicklerCmd
public void setAssignToMemberId(java.lang.Long anAssignToMemberId)
setAssignToMemberId
in interface UpdateTicklerCmd
anAssignToMemberId
- the Customer Service Representative identifier.public java.lang.Long[] getTicklerIds()
getTicklerIds
in interface UpdateTicklerCmd
public void setTicklerIds(java.lang.Long[] aarrnTicklerIds)
setTicklerIds
in interface UpdateTicklerCmd
aarrnTicklerIds
- array of tickler identifiers.public java.lang.Short getStatus()
getStatus
in interface UpdateTicklerCmd
0
for open, 1
for closed.public void setStatus(java.lang.Short aStatus)
setStatus
in interface UpdateTicklerCmd
aStatus
- tickler status (0
for open, 1
for closed).public boolean getUnassigned()
boolean
flag that determines whether the tickler is to be assigned to a member.getUnassigned
in interface UpdateTicklerCmd
true
if the tickler is not to be assigned; false
otherwise.public void setUnassigned(boolean inUnassignedValue)
boolean
flag that determines whether the tickler is to be assigned to a member.setUnassigned
in interface UpdateTicklerCmd
inUnassignedValue
- true
if the tickler is not to be assigned; false
otherwise.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 updateTickler(TicklerAccessBean abTickler, java.lang.String comment, java.lang.Integer languageIdentifier, java.sql.Timestamp remindOnDate, java.lang.Short status, boolean unassigned, java.lang.Long assignToMember, java.lang.Integer assignToRole) throws ECException
abTickler
- the access bean of the tickler to be updated.comment
- the comment to accompany this tickler.languageIdentifier
- the language identifier.remindOnDate
- the date-time when this tickler should show up in the tickler queue;
if not supplied, the current date-time will be used.status
- the status of this tickler (0
for open, 1
for closed).unassigned
- the flag to indicate whether the tickler is to be assigned:
true
if it is not to be assigned,
in which case both assignToMember
and assignToRole
will be ignored;
false
otherwise.assignToMember
- the ID of the CSR to whom this tickler is to be assigned;
if not supplied, assignToRole
will be used.assignToRole
- the code of the CSR role to which the tickler is to be assigned
if assignToMember
is not supplied.ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
requestProperties
provides additional methods for retrieving properties. It is wrapper to java.util.Map
setRequestProperties
in interface UpdateTicklerCmd
reqParms
- the request properties.ECApplicationException