public class AutoApproveReturnItemByDaysPolicyCmdImpl extends BusinessPolicyCommandImpl implements AutoApproveReturnItemPolicyCmd
If the ship date of the item cannot be determined (from the ORDSHIPHST table). Then the item will fail this test, and not be automatically approved.
If this automatic approval test is unsuccessful then the deny reason 'EXCDATE' will be logged for the RMA item.
Constructor and Description |
---|
AutoApproveReturnItemByDaysPolicyCmdImpl()
AutoApproveReturnItemByDaysPolicyCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void | autoApproveRMAItem()
Calculate whether the RMA item can be approved based on the number of days since the item was shipped.
|
protected void | determineDenyReason(java.lang.String denyCode)
Log a reason for auto_approve denial.
|
protected boolean | exceedsReturnPeriod(java.sql.Timestamp aShipDate)
This method checks whether the time exceeds the return period.
|
protected java.lang.Integer | getDays()
Get the number of days in the return period.
|
protected java.sql.Timestamp | getItemShippedTime(RMAItemAccessBean rmaItemAB)
This method gets the shipped time of item.
|
java.util.List | getRMAItemDenyReasonList()
Get the deny reason list.
|
void | performExecute()
Execute the command.
|
void | reset()
This method is called after a command has been executed.
|
void | setRequestProperties(TypedProperty requestProperties)
This method sets the request properties for the policy.
|
void | setRMAItemAB(RMAItemAccessBean RMAItemAB)
This method sets the RMA item being accessed.
|
void | setRMAItemDenyReasonList(java.util.List newRMAItemDenyReasons)
This method sets the list of deny reason codes for this RMA item.
|
void | validateParameters()
This method verifies the input parameters.
|
public AutoApproveReturnItemByDaysPolicyCmdImpl()
protected void autoApproveRMAItem() throws javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException, ECException
protected java.sql.Timestamp getItemShippedTime(RMAItemAccessBean rmaItemAB) throws ECException
protected void determineDenyReason(java.lang.String denyCode)
protected boolean exceedsReturnPeriod(java.sql.Timestamp aShipDate)
protected java.lang.Integer getDays()
public java.util.List getRMAItemDenyReasonList()
public void performExecute() throws ECException
public void reset()
public void setRequestProperties(TypedProperty requestProperties)
public void setRMAItemAB(RMAItemAccessBean RMAItemAB)
public void setRMAItemDenyReasonList(java.util.List newRMAItemDenyReasons)
public void validateParameters() throws ECException