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, updateMboForStatus
public 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 MboMXException
java.rmi.RemoteException
public void canChangeStatus(java.lang.String currentStatus, java.lang.String desiredStatus, long accessModifier) throws MXException, java.rmi.RemoteException
canChangeStatus
in class StatusHandler
currentStatus
- 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.MXException
java.rmi.RemoteException
public void checkStatusChangeAuthorization(java.lang.String desiredExternalStatus) throws MXException, java.rmi.RemoteException
checkStatusChangeAuthorization
in class StatusHandler
currentExternalStatus
- The current external status of the RFQ.desiredExternalStatus
- The desired external status of the RFQ.MXException
java.rmi.RemoteException
checkUserSecurity
public 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 StatusHandler
asOfDate
- 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 toMXException
java.rmi.RemoteException
public void checkChargeValues() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException