com.ibm.commerce.utf.commands
Class RFQNotificationMonitorBaseCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.utf.commands.RFQNotificationMonitorBaseCmdImpl
- All Implemented Interfaces:
-
AccCommand,
ControllerCommand,
ECCommand,
ECTargetableCommand,
RFQNotificationMonitorBaseCmd
- Direct Known Subclasses:
-
RFQNotificationClosedMonitorCmdImpl,
RFQNotificationCompletedMonitorCmdImpl,
RFQNotificationSubmittedMonitorCmdImpl
- public class RFQNotificationMonitorBaseCmdImpl
- extends
ControllerCommandImpl
- implements
RFQNotificationMonitorBaseCmd
Implementation of the base command for monitoring when notifications need to
be sent.
This is the default implementation of the RFQNotificationMonitorBaseCmd.
This command calls the following TaskCommands:
This command uses the following AccessBeans/DataBeans
SchedulerConfigAccessBean
SchedulerStatusAccessBean
-
UserAccessBean
UserManageBean
- See Also:
- Serialized
Form
Methods inherited from class
com.ibm.commerce.command.
ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setRequestProperties,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class
com.ibm.commerce.command.
AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
performExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface
com.ibm.commerce.command.
ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRequestProperties,
setRetriable,
setViewInputProperties |
Methods inherited from interface
com.ibm.commerce.command.
ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
performExecute,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
RFQNotificationMonitorBaseCmdImpl
public RFQNotificationMonitorBaseCmdImpl()
- RFQNotificationMonitorBaseCmdImpl constructor.
getNotifyRFQOwner
public boolean getNotifyRFQOwner()
-
- Specified by:
-
getNotifyRFQOwner
in interface
RFQNotificationMonitorBaseCmd
-
- Returns:
- True if the RFQ owner is to be notified, false
otherwise.
getScheduledJobLastCompletionTimestamp
public java.sql.Timestamp getScheduledJobLastCompletionTimestamp()
throws ECException
- Returns the last time the scheduled job was successfully completed. Returns
the earliest timestamp possible if the job was never successfully completed
before.
-
- Returns:
- The last time the scheduled job was successfully completed.
- Throws:
ECException.
-
ECException
getSellerMemberGroupNameToNotify
public java.lang.String getSellerMemberGroupNameToNotify()
-
- Specified by:
-
getSellerMemberGroupNameToNotify
in interface
RFQNotificationMonitorBaseCmd
-
- Returns:
- 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.
getSellerMemberGroupToNotifyOwnerId
public java.lang.Long getSellerMemberGroupToNotifyOwnerId()
-
- Specified by:
-
getSellerMemberGroupToNotifyOwnerId
in interface
RFQNotificationMonitorBaseCmd
-
- Returns:
- The owner id of the member group name defined by the
setSellerMemberGroupNameToNotify()
method.
getUsersToNotify
public UserAccessBean[] getUsersToNotify(RFQAccessBean rfq)
throws ECException
- Return a list of users to notify.
-
- Returns:
- An array of UserAccessBean objects.
- Throws:
ECException.
-
ECException
setNotifyRFQOwner
public void setNotifyRFQOwner(boolean aFlag)
-
- Specified by:
-
setNotifyRFQOwner
in interface
RFQNotificationMonitorBaseCmd
-
- Parameters:
aFlag
- Sets whether the RFQ owner is notified. True the RFQ
owner is notified, false the RFQ owner is not notified.
setSellerMemberGroupNameToNotify
public void setSellerMemberGroupNameToNotify(java.lang.String mbrGroup)
-
- Specified by:
-
setSellerMemberGroupNameToNotify
in interface
RFQNotificationMonitorBaseCmd
-
- Parameters:
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.
setSellerMemberGroupToNotifyOwnerId
public void setSellerMemberGroupToNotifyOwnerId(java.lang.Long mbrGrpOwnerId)
-
- Specified by:
-
setSellerMemberGroupToNotifyOwnerId
in interface
RFQNotificationMonitorBaseCmd
-
- Parameters:
mbrGrpOwnerId
- The owner id of the member group name defined
by the setSellerMemberGroupNameToNotify()
method.
updateCommandContextWithUsersPreferredLanguage
public void updateCommandContextWithUsersPreferredLanguage(UserAccessBean user)
throws ECException
- Sets the command context language id to that of the user's preferred
language. This also resets the locale in the command context.
-
- Throws:
-
ECException
validateParameters
public void validateParameters()
throws ECException
- Checks if the
jobRefNum
was specified with command. This
parameter is the scheduled job in the SCHCONFIG table. The reference number is
needed to retrieve the last successfull 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.
-
- Specified by:
-
validateParameters
in interface
ECCommand
- Overrides:
-
validateParameters
in class
AbstractECTargetableCommand
-
- Throws:
-
ECException
- See Also:
-
ECCommand.validateParameters()