public class CIStatusHandler 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 |
|---|
CIStatusHandler(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.
|
protected void |
canDecommission(java.lang.String currentMaxStatus)
Can change to Discommissioned?
|
protected void |
canNotready(java.lang.String currentMaxStatus)
Can change to Notready? This is an empty method implementation.
|
protected void |
canOperating(java.lang.String currentMaxStatus)
Can change to Operating? This is an empty method implementation.
|
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 desiredExternalStatus)
Checks to see if the user is authorised to make a status changes.
|
void |
checkUserSecurity(java.lang.String desiredMaxStatus)
Check out the users security rights to call the specified status.
|
void |
postStatusChange(java.lang.String currentStatus,
java.lang.String status,
java.util.Date asOfDate,
java.lang.String memo)
This method is called by the framework's changestatus method.
|
preStatusChange, statusToOptionName, updateMboForStatuspublic CIStatusHandler(StatefulMbo sm)
public void checkStatusChangeAuthorization(java.lang.String desiredExternalStatus)
throws MXException,
java.rmi.RemoteException
checkStatusChangeAuthorization in class StatusHandlercurrentExternalStatus - The current external status of the CI.desiredExternalStatus - The desired external status of the CI.MXExceptionjava.rmi.RemoteExceptioncheckUserSecurity,
possibleStatusChangepublic void checkUserSecurity(java.lang.String desiredMaxStatus)
throws MXException,
java.rmi.RemoteException
status - The status to check if we can change to.MXAccessException - Throws an access exception "notauthorized" if the
check fails.MXExceptionjava.rmi.RemoteExceptionpublic void canChangeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
long accessModifier)
throws MXException,
java.rmi.RemoteException
canChangeStatus in class StatusHandlercurrentMaxStatus - CI's current statusdesiredStatus - Status to change toaccessModifier - Flag which can be set to NOACCESSCHECKMXApplicationException - (ci, invalidstatus) is thrown if the desired status
is not legal.MXExceptionjava.rmi.RemoteExceptionprotected void canNotready(java.lang.String currentMaxStatus)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected void canOperating(java.lang.String currentMaxStatus)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected void canDecommission(java.lang.String currentMaxStatus)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic 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 StatusHandlercurrentMaxStatus - CI's current statusdesiredStatus - Status to change todate - Date as of the status change is to be madememo - memo textMXExceptionjava.rmi.RemoteExceptionpublic void postStatusChange(java.lang.String currentStatus,
java.lang.String status,
java.util.Date asOfDate,
java.lang.String memo)
throws MXException,
java.rmi.RemoteException
postStatusChange in class StatusHandlerMXExceptionjava.rmi.RemoteException