public class RFQNotificationMonitorBaseCmdImpl extends ControllerCommandImpl implements RFQNotificationMonitorBaseCmd
This is the default implementation of the RFQNotificationMonitorBaseCmd. This command calls the following TaskCommands:
This command uses the following AccessBeans/DataBeansSchedulerConfigAccessBean
SchedulerStatusAccessBean
UserAccessBean
UserManageBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME, NOTIFY_RFQ_OWNER_PARAM, SCHJOB_COMPETED_STATE_FLAG, SCHJOB_REFNUM_PARAM, SELLER_MBR_GROUP_NAME_TO_NOTIFY_OWNERID_PARAM, SELLER_MBR_GROUP_NAME_TO_NOTIFY_PARAM, siteStoreId
Constructor and Description |
---|
RFQNotificationMonitorBaseCmdImpl()
RFQNotificationMonitorBaseCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getNotifyRFQOwner()
Gets the RFQ owner is to be notified.
|
java.sql.Timestamp |
getScheduledJobLastCompletionTimestamp()
Returns the last time the scheduled job was successfully completed.
|
java.lang.String |
getSellerMemberGroupNameToNotify()
Gets member group name defined in the MBRGRP table that is
used to retrieve the users in the seller's organization in order
to send notifications to.
|
java.lang.Long |
getSellerMemberGroupToNotifyOwnerId()
Gets owner id of the member group name defined by the
setSellerMemberGroupNameToNotify() method. |
UserAccessBean[] |
getUsersToNotify(RFQAccessBean rfq)
Return a list of users to notify.
|
void |
setNotifyRFQOwner(boolean aFlag)
Sets whether the RFQ owner is notified.
|
void |
setSellerMemberGroupNameToNotify(java.lang.String mbrGroup)
Sets member group name defined in the MBRGRP table that is
used to retrieve the users in the seller's organization in order
to send notifications to.
|
void |
setSellerMemberGroupToNotifyOwnerId(java.lang.Long mbrGrpOwnerId)
Sets owner id of the member group name defined by the
setSellerMemberGroupNameToNotify() method. |
void |
updateCommandContextWithUsersPreferredLanguage(UserAccessBean user)
Sets the command context language id to that of the user's preferred language.
|
void |
validateParameters()
Checks if the
jobRefNum was specified with command. |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, 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
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, 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 RFQNotificationMonitorBaseCmdImpl()
public boolean getNotifyRFQOwner()
getNotifyRFQOwner
in interface RFQNotificationMonitorBaseCmd
public java.sql.Timestamp getScheduledJobLastCompletionTimestamp() throws ECException
ECException.
ECException
public java.lang.String getSellerMemberGroupNameToNotify()
getSellerMemberGroupNameToNotify
in interface RFQNotificationMonitorBaseCmd
public java.lang.Long getSellerMemberGroupToNotifyOwnerId()
setSellerMemberGroupNameToNotify()
method.getSellerMemberGroupToNotifyOwnerId
in interface RFQNotificationMonitorBaseCmd
setSellerMemberGroupNameToNotify()
method.public UserAccessBean[] getUsersToNotify(RFQAccessBean rfq) throws ECException
RFQAccessBean
- The RFQs.ECException.
ECException
public void setNotifyRFQOwner(boolean aFlag)
setNotifyRFQOwner
in interface RFQNotificationMonitorBaseCmd
aFlag
- Sets whether the RFQ owner is notified. True the RFQ owner
is notified, false the RFQ owner is not notified.public void setSellerMemberGroupNameToNotify(java.lang.String mbrGroup)
setSellerMemberGroupNameToNotify
in interface RFQNotificationMonitorBaseCmd
mbrGroup
- The member group name defined in the MBRGRP table that is
used to retrieve the users in the seller's organization in order
to send notifications to.public void setSellerMemberGroupToNotifyOwnerId(java.lang.Long mbrGrpOwnerId)
setSellerMemberGroupNameToNotify()
method.setSellerMemberGroupToNotifyOwnerId
in interface RFQNotificationMonitorBaseCmd
mbrGrpOwnerId
- The owner id of the member group name defined by the
setSellerMemberGroupNameToNotify()
method.public void updateCommandContextWithUsersPreferredLanguage(UserAccessBean user) throws ECException
UserAccessBean
- The user.ECException
public void validateParameters() throws ECException
jobRefNum
was specified with command. This parameter
is the scheduled job in the SCHCONFIG table. The reference number is needed to
retrieve the last successful job completion end time.
Optional parameters are:
sellerMemberGroupNameToNotify
, the group name defined in the mbrgrp table that
is used to notify the seller users.
sellerMemberGroupToNotifyOwnerId
, the group name owner defined in the mbrgrp table that
is used to notify the seller users. If the sellerMemberGroupToNotify parameter is specified then
this parameter must also be specified.
storeId
, the store identifier number in the command context. If the
storeId is 0 then this command works on all the RFQs for the site.
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
ECCommand#validateParameters()