public class PkgStatusHandler 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 |
---|
PkgStatusHandler(StatefulMbo sm)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
changeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
java.util.Date asOfDate,
java.lang.String memo)
Change the status of the mbo to desired status
|
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.
|
canChangeStatus, postStatusChange, preStatusChange, updateMboForStatus
public PkgStatusHandler(StatefulMbo sm)
sm
- public void checkStatusChangeAuthorization(java.lang.String desiredExternalStatus) throws MXException, java.rmi.RemoteException
checkStatusChangeAuthorization
in class StatusHandler
currentExternalStatus
- The current external status of the asset.desiredExternalStatus
- The desired external status of the asset.MXException
java.rmi.RemoteException
checkUserSecurity
,
possibleStatusChange
public 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.MXException
java.rmi.RemoteException
public void changeStatus(java.lang.String currentStatus, java.lang.String desiredStatus, java.util.Date asOfDate, java.lang.String memo) throws MXException, java.rmi.RemoteException
changeStatus
in class StatusHandler
MXException
java.rmi.RemoteException