public class RFQStatusHandler extends StatusHandler
| Modifier and Type | Field and Description |
|---|---|
static boolean[][] |
statusChangeMatrix
A statusChangeMatrix for the legal status changes that can be made.
|
ALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER| Constructor and Description |
|---|
RFQStatusHandler(StatefulMbo sm)
Constructs the RFQStatus object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
canChangeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
long accessModifier)
Defines which status changes are legal.
|
void |
changeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
java.util.Date asOfDate,
java.lang.String memo)
Changes the status from the current state to a desired state.
|
void |
checkChargeValues() |
void |
checkStatusChangeAuthorization(java.lang.String desiredExternalStatus)
Checks to see if the user is authorised to make a status changes.
|
static java.lang.String |
getOptionName(java.lang.String status)
Given a RFQ Status, return the optionName
Note the status passed in is the INTERNAL status code.
|
postStatusChange, preStatusChange, statusToOptionName, updateMboForStatuspublic static boolean[][] statusChangeMatrix
| Status |   INPRG  |  COMP  |   SENT  |   READY  |  CLOSE  |  CANCEL  |
|---|---|---|---|---|---|---|
| INPRG | false | false | true | true | false | true |
| COMP | false | false | false | false | true | false |
| SENT | true | true | false | false | true | true |
| READY | true | false | true | false | false | true |
| CLOSE | false | false | false | false | false | false |
| CANCEL | false | false | false | false | false | false |
public RFQStatusHandler(StatefulMbo sm)
sm - A stateful MboMXExceptionjava.rmi.RemoteExceptionpublic void canChangeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
long accessModifier)
throws MXException,
java.rmi.RemoteException
canChangeStatus in class StatusHandlercurrentStatus - The parent Mbo's status nowdesiredStatus - The status to change toaccessModifier - If this flag is set to NOACCESSCHECK, signature security is not
checked. Currently this flag is not using in RFQ.MXExceptionjava.rmi.RemoteExceptionpublic void checkStatusChangeAuthorization(java.lang.String desiredExternalStatus)
throws MXException,
java.rmi.RemoteException
checkStatusChangeAuthorization in class StatusHandlercurrentExternalStatus - The current external status of the RFQ.desiredExternalStatus - The desired external status of the RFQ.MXExceptionjava.rmi.RemoteExceptioncheckUserSecuritypublic static java.lang.String getOptionName(java.lang.String status)
status - The status to return the optionName of.public void changeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
java.util.Date asOfDate,
java.lang.String memo)
throws MXException,
java.rmi.RemoteException
changeStatus in class StatusHandlerasOfDate - The date as of the status change is to be
made. If null, set to the current date/time.currentStatus - The parent RFQ's status nowmemo - textdesiredStatus - The status to change toMXExceptionjava.rmi.RemoteExceptionpublic void checkChargeValues()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException