public abstract class StatusHandler extends java.lang.Object implements MboConstants
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 |
---|
StatusHandler(StatefulMbo sm)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
canChangeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
long accessModifier)
Can a certain status change be performed ?
|
void |
changeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
java.util.Date date,
java.lang.String memo)
Change the status from the specified state to a desired state
It is up to the programmer to throw and exception from this rountine if
the specified status does not exist !
|
abstract 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.
|
void |
postStatusChange(java.lang.String currentStatus,
java.lang.String status,
java.util.Date asOfDate,
java.lang.String memo)
Object can over override this method to process post status change logic.
|
void |
preStatusChange(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 |
updateMboForStatus(java.lang.String status)
Called to set the state of the Mbo for the specified status.
|
public StatusHandler(StatefulMbo sm)
public void changeStatus(java.lang.String currentStatus, java.lang.String desiredStatus, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void canChangeStatus(java.lang.String currentStatus, java.lang.String desiredStatus, long accessModifier) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void updateMboForStatus(java.lang.String status) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public abstract void checkStatusChangeAuthorization(java.lang.String desiredStatus) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
This method is used to build the list of
permitted status changes.
public void preStatusChange(java.lang.String currentStatus, java.lang.String status, java.util.Date asOfDate, java.lang.String memo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void postStatusChange(java.lang.String currentStatus, java.lang.String status, java.util.Date asOfDate, java.lang.String memo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException