public class ProcUpdateCatalogRefOfProfile extends GenericService implements PipelineProcessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
static java.util.ResourceBundle |
sResourceBundle |
SERVICE_INFO_KEY
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 |
---|
ProcUpdateCatalogRefOfProfile() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAndUpdate(Order pOrder,
RepositoryItem pProfile)
This function checks the profile for the catalogRefId, and updates the
profile with catalogRefId if it doesn't contain the catalog
|
protected boolean |
checkProfile(CommerceItem pCItem,
RepositoryItem pProfile)
This function checks whether the given profile contains the catalogRefId
of the commerce item.
|
Repository |
getRepository()
Returns Order Repository
|
int[] |
getRetCodes()
The return codes that this processor can return.
|
int |
runProcess(java.lang.Object pParam,
PipelineResult pResult)
This method is executed by the pipeline manager to execute this
process.
|
void |
setRepository(Repository pRepository)
Sets Order Repository
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final java.util.ResourceBundle sResourceBundle
public void setRepository(Repository pRepository)
public Repository getRepository()
public int runProcess(java.lang.Object pParam, PipelineResult pResult) throws java.lang.Exception
runProcess
in interface PipelineProcessor
pParam
- an optional user parameterpResult
- the PipelineResult object which is used to return errors or other datajava.lang.Exception
protected void checkAndUpdate(Order pOrder, RepositoryItem pProfile) throws RepositoryException
pOrder
- the orderpProfile
- the profile to check and update for.RepositoryException
protected boolean checkProfile(CommerceItem pCItem, RepositoryItem pProfile) throws RepositoryException
pCItem
- the CommerceItem which contains the catalogRefId.pProfile
- the profile of the user to check for.RepositoryException
public int[] getRetCodes()
getRetCodes
in interface PipelineProcessor
int[]
of the valid return codes