public class MaxLicStatusHandler 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 |
|---|
MaxLicStatusHandler(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)
Set status value.
|
void |
checkStatusChangeAuthorization(java.lang.String desiredExternalStatus)
Checks to see if the user is authorized to make a status changes.
|
void |
checkUserSecurity(java.lang.String desiredMaxStatus)
Check out the users security rights to call the specified status.
|
void |
checkUserSecurity(java.lang.String desiredMaxStatus,
boolean applevel)
Check out the users security in mbo or applevel
|
postStatusChange, preStatusChange, updateMboForStatuspublic MaxLicStatusHandler(StatefulMbo sm)
public void canChangeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
long accessModifier)
throws MXException,
java.rmi.RemoteException
canChangeStatus in class StatusHandlercurrentStatus - the License's current statusdesiredStatus - the status to change toaccessModifier - If this flag is set to NOACCESSCHECK, a License may change
status.MXApplicationException - (lictrack, invalidstatus) is thrown if the desired
status is not legal.MXExceptionjava.rmi.RemoteExceptionpublic void checkStatusChangeAuthorization(java.lang.String desiredExternalStatus)
throws MXException,
java.rmi.RemoteException
checkStatusChangeAuthorization in class StatusHandlercurrentExternalStatus - The current external status of the asset.desiredExternalStatus - The desired external status of the asset.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.java.rmi.RemoteExceptionMXExceptionpublic void checkUserSecurity(java.lang.String desiredMaxStatus,
boolean applevel)
throws MXException,
java.rmi.RemoteException
desiredMaxStatus - applevel - 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 StatusHandlercurrentStatus - the Licens's current statusdesiredStatus - the status to change todate - the date as of the status change is to be madememo - memo textMXExceptionjava.rmi.RemoteException