public class TenantStatusHandler 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 |
---|
TenantStatusHandler(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 desiredStatus,
java.util.Date date,
java.lang.String memo)
Changes the status from the current state to a desired state.
|
void |
checkStatusChangeAuthorization(java.lang.String desiredStatus)
Checks to see if the user is authorized to make a status changes.
|
void |
checkUserSecurity(java.lang.String desiredMaxStatus)
Confirm the users security rights to call the specified status.
|
postStatusChange, preStatusChange, updateMboForStatus
public TenantStatusHandler(StatefulMbo sm)
public void checkStatusChangeAuthorization(java.lang.String desiredStatus) throws MXException, java.rmi.RemoteException
checkStatusChangeAuthorization
in class StatusHandler
desiredExternalStatus
- The desired external status of the asset.MXApplicationException
- is thrown if the desired statusMXException
java.rmi.RemoteException
This method is used to build the list of
permitted status changes.
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 tenant's current statusdesiredStatus
- the status to change todate
- the date as of the status change is to be madememo
- memo textMXException
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
currentStatus
- The tenant's current statusdesiredStatus
- The status to change to. This is the synonym value.accessModifier
- IgnoredMXException
- Throws an MXApplicationException if the desired status is New.java.rmi.RemoteException
public void checkUserSecurity(java.lang.String desiredMaxStatus) throws MXException, java.rmi.RemoteException
desiredMaxStatus
- The status to check if we can change to.MXAccessException
- Throws an access exception "notauthorized" if the
check fails.MXException
java.rmi.RemoteException