|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.ApplicationLoggingImpl atg.commerce.order.processor.ProcSetCatalogRefs
public class ProcSetCatalogRefs
This processor sets the catalog references into the CommerceItems in the order. When an Order is saved its catalogRef is not persisted, but its id is. When the Order is loaded, the catalogRefId is loaded, but the catalogRef remains null. This processor looks up the catalogRef in the ProductCatalog using the catalogRefId.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from interface atg.service.pipeline.PipelineProcessor |
---|
STOP_CHAIN_EXECUTION, STOP_CHAIN_EXECUTION_AND_COMMIT, STOP_CHAIN_EXECUTION_AND_ROLLBACK |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
ProcSetCatalogRefs()
|
Method Summary | |
---|---|
java.lang.String |
getLoggingIdentifier()
Returns property LoggingIdentifier |
int[] |
getRetCodes()
Returns the valid return codes 1 - The processor completed |
java.lang.String |
getSubstituteDeletedSkuId()
This property specifies the id of the sku that will represent all deleted skus. |
boolean |
isSubstituteRemovedSku()
The property is checked to validate whether a CommerceItem that contains a sku which has since been removed from the repository should be substituted with another sku that represents the deleted sku.. |
protected void |
loadCatalogRef(CommerceItemContainer order,
CatalogTools catalogTools)
|
RepositoryItem |
retrieveDeletedSkuItem(CatalogTools pCatalogTools,
java.lang.String pCatalogKey,
java.lang.String pOriginalSkuId)
This method will return the RepositoryItem that represents all deleted skus. |
int |
runProcess(java.lang.Object pParam,
PipelineResult pResult)
This method sets the catalog references into the CommerceItems in the order. |
void |
setLoggingIdentifier(java.lang.String pLoggingIdentifier)
Sets property LoggingIdentifier |
void |
setSubstituteDeletedSkuId(java.lang.String pSubstituteDeletedSkuId)
|
void |
setSubstituteRemovedSku(boolean pSubstituteRemovedSku)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public ProcSetCatalogRefs()
Method Detail |
---|
public int[] getRetCodes()
getRetCodes
in interface PipelineProcessor
public void setLoggingIdentifier(java.lang.String pLoggingIdentifier)
setLoggingIdentifier
in class ApplicationLoggingImpl
public java.lang.String getLoggingIdentifier()
getLoggingIdentifier
in class ApplicationLoggingImpl
public int runProcess(java.lang.Object pParam, PipelineResult pResult) throws java.lang.Exception
runProcess
in interface PipelineProcessor
pParam
- a HashMap which must contain an Order and a CatalogTools objectpResult
- a PipelineResult object which stores any information which must
be returned from this method invokation
java.lang.Exception
- throws any exception back to the callerPipelineProcessor.runProcess(Object, PipelineResult)
public void setSubstituteRemovedSku(boolean pSubstituteRemovedSku)
public boolean isSubstituteRemovedSku()
public void setSubstituteDeletedSkuId(java.lang.String pSubstituteDeletedSkuId)
public java.lang.String getSubstituteDeletedSkuId()
public RepositoryItem retrieveDeletedSkuItem(CatalogTools pCatalogTools, java.lang.String pCatalogKey, java.lang.String pOriginalSkuId)
pCatalogTools
- the catalog tools that contain the catalog repositorypCatalogKey
- the catalog key that was being used to lookup the original sku id.pOriginalSkuId
- the sku id for the item that was initially removed.
protected void loadCatalogRef(CommerceItemContainer order, CatalogTools catalogTools) throws RepositoryException, CommerceException
RepositoryException
CommerceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |