public class ProcRemoveExpiredCommerceItems extends ApplicationLoggingImpl implements PipelineProcessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
STOP_CHAIN_EXECUTION, STOP_CHAIN_EXECUTION_AND_COMMIT, STOP_CHAIN_EXECUTION_AND_ROLLBACK
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
ProcRemoveExpiredCommerceItems() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLoggingIdentifier()
Returns property LoggingIdentifier
|
java.lang.String[] |
getOpenOrderStates()
A list of order states that determine whether an item can be removed from the order.
|
java.lang.String |
getRemovedProductId()
Value of the Repository id of the product item representing a removed product item.
|
java.lang.String |
getRemovedSkuId()
Value of the repository id of the sku item representing a removed sku item from the database.
|
int[] |
getRetCodes()
Returns the valid return codes
1 - The processor completed
|
boolean |
isRemoveItemsWithDeletedProducts()
If true then the commerceitem is removed from the order if the product has been removed
from the database.
|
boolean |
isTreatNullOrderStateAsModifiable()
Specify whether orders whose order state is null should be considered
modifiable or non-modifiable.
|
boolean |
isWarnOnNullOrderState()
Query whether to issue a warning if asked to oeprate on an order
whose order state is null.
|
int |
runProcess(java.lang.Object pParam,
PipelineResult pResult)
This method runs the actual processor and does the work.
|
void |
setLoggingIdentifier(java.lang.String pLoggingIdentifier)
Sets property LoggingIdentifier
|
void |
setOpenOrderStates(java.lang.String[] pOpenOrderStates) |
void |
setRemovedProductId(java.lang.String pRemovedProductId) |
void |
setRemovedSkuId(java.lang.String pRemovedSkuId) |
void |
setRemoveItemsWithDeletedProducts(boolean pRemoveItemsWithDeletedProducts) |
void |
setTreatNullOrderStateAsModifiable(boolean pTreatNullOrderStateAsModifiable)
Specify whether orders whose order state is null should be considered
modifiable or non-modifiable.
|
void |
setWarnOnNullOrderState(boolean pWarnOnNullOrderState)
Specify whether to issue a warning if asked to operate on an order
whose order state is null.
|
boolean |
shouldItemBeRemoved(CommerceItem pCommerceItem)
Determines whether the CommerceItem that is being passed in should be removed based on
whether the product or sku have been removed from the database.
|
boolean |
shouldOrderBeModified(Order pOrder)
This method is used to determine whether the order that is passed in is in a state that
allows it to be modified.
|
addGlobalLogListeners, addLogListener, getLoggingForVlogging, getLoggingIdentifer, getLogListenerCount, getLogListeners, initializeFromServiceEvent, isAutoInitListeners, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, removeLogListener, sendLogEvent, setAutoInitListeners, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public int[] getRetCodes()
getRetCodes
in interface PipelineProcessor
public void setOpenOrderStates(java.lang.String[] pOpenOrderStates)
public java.lang.String[] getOpenOrderStates()
public void setRemoveItemsWithDeletedProducts(boolean pRemoveItemsWithDeletedProducts)
public boolean isRemoveItemsWithDeletedProducts()
public boolean shouldOrderBeModified(Order pOrder)
pOrder
- - the order whose state is being checked.public void setLoggingIdentifier(java.lang.String pLoggingIdentifier)
setLoggingIdentifier
in class ApplicationLoggingImpl
public java.lang.String getLoggingIdentifier()
getLoggingIdentifier
in class ApplicationLoggingImpl
public void setRemovedSkuId(java.lang.String pRemovedSkuId)
public java.lang.String getRemovedSkuId()
public void setRemovedProductId(java.lang.String pRemovedProductId)
public java.lang.String getRemovedProductId()
public void setWarnOnNullOrderState(boolean pWarnOnNullOrderState)
public boolean isWarnOnNullOrderState()
public void setTreatNullOrderStateAsModifiable(boolean pTreatNullOrderStateAsModifiable)
public boolean isTreatNullOrderStateAsModifiable()
public boolean shouldItemBeRemoved(CommerceItem pCommerceItem)
pCommerceItem
- the item whose Product or Sku ids will be checkedpublic int runProcess(java.lang.Object pParam, PipelineResult pResult) throws java.lang.Exception
PipelineProcessor
runProcess
in interface PipelineProcessor
pParam
- an optional user parameterpResult
- the PipelineResult object which is used to return errors or other datajava.lang.Exception