public class CountBookStatusHandler 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 |
|---|
CountBookStatusHandler(StatefulMbo sm) |
| 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 |
checkStatusChangeAuthorization(java.lang.String desiredStatus)
Is a certain status change allowable?
This test determines whether a status change is possible by only checking
security.
|
changeStatus, postStatusChange, preStatusChange, statusToOptionName, updateMboForStatuspublic CountBookStatusHandler(StatefulMbo sm)
public void checkStatusChangeAuthorization(java.lang.String desiredStatus)
throws MXException,
java.rmi.RemoteException
StatusHandlercheckStatusChangeAuthorization in class StatusHandlerMXExceptionjava.rmi.RemoteExceptionThis method is used to build the list of
permitted status changes.public void canChangeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
long accessModifier)
throws MXException,
java.rmi.RemoteException
canChangeStatus in class StatusHandlercurrentStatus - The count book's current statusdesiredStatus - The status to change the count book to. This is the synonym value.MXException - Throws a MXAccessException with a group key of "workorder". The error
key will be one of: "unappr", "wappr", "wmatl", "inprg", "comp", "close", "can", "wsch" depending on
the desired status parameter.java.rmi.RemoteException