public class BudgetStatusHandler 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 |
---|
BudgetStatusHandler(StatefulMbo sm) |
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)
Set status value.
|
void |
checkStatusChangeAuthorization(java.lang.String desiredExternalStatus)
Is a certain status change allowable?
This test determines whether a status change is possible by only checking
security.
|
void |
checkUserSecurity(java.lang.String currentStatus,
java.lang.String desiredMaxStatus) |
void |
checkUserSecurity(java.lang.String currentStatus,
java.lang.String desiredMaxStatus,
boolean applevel)
Check out the users security in mbo or applevel
|
void |
updateMboForStatus(java.lang.String status)
Called to set the state of the Mbo for the specified status.
|
postStatusChange, preStatusChange
public BudgetStatusHandler(StatefulMbo sm)
public void checkStatusChangeAuthorization(java.lang.String desiredExternalStatus) throws MXException, java.rmi.RemoteException
StatusHandler
checkStatusChangeAuthorization
in class StatusHandler
MXException
java.rmi.RemoteException
This method is used to build the list of
permitted status changes.
public void checkUserSecurity(java.lang.String currentStatus, java.lang.String desiredMaxStatus) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void checkUserSecurity(java.lang.String currentStatus, java.lang.String desiredMaxStatus, boolean applevel) throws MXException, java.rmi.RemoteException
desiredMaxStatus
- applevel
- MXException
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
MXException
java.rmi.RemoteException
public void changeStatus(java.lang.String currentStatus, java.lang.String desiredStatus, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
changeStatus
in class StatusHandler
MXException
java.rmi.RemoteException
public void updateMboForStatus(java.lang.String status) throws MXException, java.rmi.RemoteException
StatusHandler
updateMboForStatus
in class StatusHandler
MXException
java.rmi.RemoteException