public class LaborStatusHandler extends StatusHandler
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 |
---|
LaborStatusHandler(StatefulMbo sm)
Constructor
|
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 status,
java.util.Date asOfDate,
java.lang.String memo)
Object can over override this method to process pre status change logic.
|
void |
checkStatusChangeAuthorization(java.lang.String desiredStatus)
Is a certain status change allowable?
This test determines whether a status change is possible by only checking
security.
|
postStatusChange, preStatusChange, updateMboForStatus
public LaborStatusHandler(StatefulMbo sm)
public void canChangeStatus(java.lang.String currentStatus, java.lang.String desiredStatus, long accessModifier) throws MXException, java.rmi.RemoteException
canChangeStatus
in class StatusHandler
currentStatus
- The current external status of the LabordesiredStatus
- The desired external status of the LaboraccessModifier
- MXApplicationException("LABOR",
- "invalidstatus")MXException
java.rmi.RemoteException
possibleStatusChange
,
statusChangeMatrix#matrix
public void changeStatus(java.lang.String currentStatus, java.lang.String status, java.util.Date asOfDate, java.lang.String memo) throws MXException, java.rmi.RemoteException
changeStatus
in class StatusHandler
MXException
java.rmi.RemoteException
public void checkStatusChangeAuthorization(java.lang.String desiredStatus) throws MXException, java.rmi.RemoteException
checkStatusChangeAuthorization
in class StatusHandler
MXException
java.rmi.RemoteException
This method is used to build the list of
permitted status changes.