public class InvoiceStatusHandler 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 | 
|---|
| InvoiceStatusHandler(StatefulMbo sm)Construct the invoice status handler. | 
| 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)Change the status from the current state to a desired state. | 
| void | checkStatusChangeAuthorization(java.lang.String desiredStatus)Determines which statuses to show in the list returned by the Mbo's getStatusList method. | 
| static java.lang.String | getOptionName(java.lang.String status)Given a Invoice Status, return the optionName
 Note the status passed in is the INTERNAL status code. | 
postStatusChange, preStatusChange, updateMboForStatuspublic InvoiceStatusHandler(StatefulMbo sm)
sm - public void checkStatusChangeAuthorization(java.lang.String desiredStatus)
                                    throws MXException,
                                           java.rmi.RemoteException
checkStatusChangeAuthorization in class StatusHandlercurrentStatus - The invoice's current status.desiredStatus - The status to change the invoice to.  This is the synonym value.MXException - Throws an access exception with group
                        key "access" and error key "notauthorized" if the user does not have security for
                        a status change.MXApplicationException - (invoice, InvalidStatusChange) This status change is
                        not allowed.java.rmi.RemoteExceptionThe calling method.public static java.lang.String getOptionName(java.lang.String status)
status - The status to return the optionName of.public void canChangeStatus(java.lang.String currentStatus,
                            java.lang.String desiredStatus,
                            long accessModifier)
                     throws MXException,
                            java.rmi.RemoteException
canChangeStatus in class StatusHandlercurrentStatus - The invoice's current status.desiredStatus - The status to change the invoice to.  This is the synonym value.MXApplicationException - (invoice, InvalidStatusChange) This status change is
                        not allowed.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 parent invoice's current status.desiredStatus - The status to change to.date - The date as of the status change is to be made.memo - Memo field to record any comments about this status change.MXApplicationException - (invoice, StatusDate)MXExceptionjava.rmi.RemoteException