public class MaxUserStatusHandler 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 |
---|
MaxUserStatusHandler(StatefulMbo sm)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
canChangeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
long accessModifier)
If this is an internal process, allow anything.
|
void |
changeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
java.util.Date date,
java.lang.String memo)
Change the status from the current state to a desired state.
|
void |
checkStatusChangeAuthorization(java.lang.String desiredStatus)
Must have
USERSTATUS privilege to change user status. |
postStatusChange, preStatusChange, updateMboForStatus
public MaxUserStatusHandler(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
changeStatus
in class StatusHandler
currentStatus
- The status now.desiredStatus
- The status to change to.date
- The date as of the status change is to be made.memo
- Memo text.MXException
java.rmi.RemoteException
public void checkStatusChangeAuthorization(java.lang.String desiredStatus) throws MXException, java.rmi.RemoteException
USERSTATUS
privilege to change user status.checkStatusChangeAuthorization
in class StatusHandler
desiredStatus
- The desired status.
The value provided is not relevant, as there are no special restrictions on
the from/to status.Throws
- "access" / "not authorized" if no USERSTATUS
privilege.MXException
java.rmi.RemoteException
This 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 StatusHandler
MXException
java.rmi.RemoteException