public class InvStatusHandler 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 |
---|
InvStatusHandler(StatefulMbo sm)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
canActive()
Can change to Active? This is an empty method implementation.
|
void |
canChangeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
long accessModifier)
Defines which status changes are legal.
|
void |
canObsolete()
Can change to Obsolete ?
This method checks for WorkOrder/JobPlan/MR/PR/PO/InvBalances/Asset exists for itemnum.
|
void |
canPending()
Can change to pending?
|
void |
canPendobs()
Can Change to Pendobs ?
This method checks if any PO or PR exists for the item.
|
void |
canPlanning()
Can change to Planning?
Can change to Planning? This is an empty method implementation.
|
void |
changeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
java.util.Date asOfDate,
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.
|
void |
validateChangeStatus(java.lang.String currentStatus,
java.lang.String desiredStatus,
java.util.Date asOfDate,
java.lang.String memo)
Validate the change status from the current state to a desired state.
|
postStatusChange, preStatusChange, updateMboForStatus
public InvStatusHandler(StatefulMbo sm)
sm
- public void checkStatusChangeAuthorization(java.lang.String desiredStatus) throws MXException, java.rmi.RemoteException
checkStatusChangeAuthorization
in class StatusHandler
desiredStatus
- The status to change the item 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.java.rmi.RemoteException
The calling method.
public void canChangeStatus(java.lang.String currentStatus, java.lang.String desiredStatus, long accessModifier) throws MXException, java.rmi.RemoteException
canChangeStatus
in class StatusHandler
currentStatus
- The item's current statusdesiredStatus
- The status to change the item to. This is the synonym value.accessModifier
- If this flag is set to NOACCESSCHECK, a work flow controlled
item may change status.MXException
- Throws a MXAccessException.java.rmi.RemoteException
public void canPending() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void canPlanning() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void canActive()
public void canPendobs()
MXException
java.rmi.RemoteException
public void canObsolete() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void validateChangeStatus(java.lang.String currentStatus, java.lang.String desiredStatus, java.util.Date asOfDate, java.lang.String memo) throws MXException, java.rmi.RemoteException
asOfDate
- The date as of the status change is to be
made. If null, set to the current date/time.currentStatus
- The parent WO's status now.memo
- Memo text.desiredStatus
- The status to change to.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
asOfDate
- The date as of the status change is to be
made. If null, set to the current date/time.currentStatus
- Item's current status.memo
- Memo text.desiredStatus
- The status to change to.MXException
java.rmi.RemoteException