public class CreateTicklerCmdImpl extends TaskCommandImpl implements CreateTicklerCmd
CreateTicklerCmdImpl
creates a tickler based on an action object
such as a quote or an order.
Behavior:
inAssignToMemberId
is not specified, calls the DetermineAssignmentCmd task command to determine the assignee for a tickler.
Exceptional conditions:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this class.
|
Constructor and Description |
---|
CreateTicklerCmdImpl() |
Modifier and Type | Method and Description |
---|---|
TicklerAccessBean |
createTickler(java.lang.Integer storeId,
java.lang.String actionObjectType,
java.lang.Long actionObjectIndentifier,
java.lang.Integer ticklerReasonIndentifier,
java.lang.Long createdByUserIndentifier,
java.lang.String comment,
java.lang.Integer languageIdentifier,
java.sql.Timestamp remindOnDate,
java.lang.Long assignToMember,
java.lang.Integer assignToRole)
This method creates and returns a new tickler.
|
java.lang.Long |
getActionObjectId()
This method retrieves the identifier of the action object based on which this tickler is created.
|
java.lang.String |
getActionObjectType()
This method retrieves the type of the action object based on which this tickler is created.
|
java.lang.Long |
getAssignToMemberId()
This method returns the identifier of the Customer Service Representative(CSR) to whom
this tickler is assigned.
|
java.lang.Integer |
getAssignToRole()
This method retrieves the Customer Service Representative(CSR) role to which the 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 retrieves the resources that are accessed by this command.
|
java.lang.String |
getTicklerComment()
This method retrieves the tickler comment.
|
java.lang.Long |
getTicklerId()
This method retrieves the tickler identifier.
|
java.lang.Integer |
getTicklerReasonId()
This method retrieves the tickler reason identifier.
|
void |
performExecute()
This method contains the business logic for this command.
|
void |
reset()
This method resets all the command parameters.
|
void |
setActionObjectId(java.lang.Long anActionObjectId)
This method sets the identifier of the action object based on which this tickler is created.
|
void |
setActionObjectType(java.lang.String astrActionObjectType)
This method sets the type of the action object based on which this tickler is created.
|
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 of the responsible member.
|
void |
setRequestProperties(TypedProperty reqParms)
This method sets the request properties.
|
void |
setTicklerComment(java.lang.String astrComment)
This method sets the tickler comment.
|
void |
setTicklerReasonId(java.lang.Integer anTicklerReasonId)
This method sets the tickler reason identifier.
|
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 CreateTicklerCmd
public void setTicklerComment(java.lang.String astrComment)
setTicklerComment
in interface CreateTicklerCmd
astrComment
- text of the comment.public java.lang.Integer getTicklerReasonId()
getTicklerReasonId
in interface CreateTicklerCmd
createTickler
public void setTicklerReasonId(java.lang.Integer anTicklerReasonId)
setTicklerReasonId
in interface CreateTicklerCmd
anTicklerReasonId
- tickler reason identifier.createTickler
public java.lang.Long getActionObjectId()
ORDER=Order QUOTE=Quote RMA=Return USER=Customer
getActionObjectId
in interface CreateTicklerCmd
createTickler
public void setActionObjectId(java.lang.Long anActionObjectId)
ORDER=Order QUOTE=Quote RMA=Return USER=Customer
setActionObjectId
in interface CreateTicklerCmd
anActionObjectId
- action object identifier.createTickler
public java.lang.String getActionObjectType()
ORDER=Order QUOTE=Quote RMA=Return USER=Customer
getActionObjectType
in interface CreateTicklerCmd
createTickler
public void setActionObjectType(java.lang.String astrActionObjectType)
ORDER=Order QUOTE=Quote RMA=Return USER=Customer
setActionObjectType
in interface CreateTicklerCmd
astrActionObjectType
- action object type.createTickler
public java.sql.Timestamp getRemindOnDate()
getRemindOnDate
in interface CreateTicklerCmd
public void setRemindOnDate(java.sql.Timestamp aRemindOnDate)
setRemindOnDate
in interface CreateTicklerCmd
aRemindOnDate
- date-time when this tickler should next pop into the queue.public java.lang.Long getAssignToMemberId()
getAssignToMemberId
in interface CreateTicklerCmd
public void setAssignToMemberId(java.lang.Long anAssignToMemberId)
setAssignToMemberId
in interface CreateTicklerCmd
anAssignToMemberId
- the Customer Service Representative identifier.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 TicklerAccessBean createTickler(java.lang.Integer storeId, java.lang.String actionObjectType, java.lang.Long actionObjectIndentifier, java.lang.Integer ticklerReasonIndentifier, java.lang.Long createdByUserIndentifier, java.lang.String comment, java.lang.Integer languageIdentifier, java.sql.Timestamp remindOnDate, java.lang.Long assignToMember, java.lang.Integer assignToRole) throws ECException
storeId
- the store identifier within which this tickler is of interest.actionObjectType
- the type of the action object with which this tickler is associated;
for example, QUOTE
or ORDER
actionObjectIndentifier
- the internal reference number of the action object with which this tickler is associated.ticklerReasonIndentifier
- the code of the reason for this tickler.createdByUserIndentifier
- the identifier of the user who is creating this tickler.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.assignToMember
- the identifier of the Customer Service Representative(CSR) to whom this tickler is to be assigned;
if not supplied, assignToRole
will be used.assignToRole
- the code of the Customer Service Representative(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
TypedProperties
is a wrapper to a java.util.Map
.setRequestProperties
in interface CreateTicklerCmd
reqParms
- request properties.ECApplicationException
public java.lang.Long getTicklerId()
getTicklerId
in interface CreateTicklerCmd
public java.lang.Integer getAssignToRole()