org.broadleafcommerce.core.order.service.workflow.add
Class ValidateAddRequestActivity

java.lang.Object
  extended by org.broadleafcommerce.core.workflow.BaseActivity
      extended by org.broadleafcommerce.core.order.service.workflow.add.ValidateAddRequestActivity
All Implemented Interfaces:
Activity, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

public class ValidateAddRequestActivity
extends BaseActivity


Field Summary
protected  CatalogService catalogService
           
protected  OrderService orderService
           
 
Constructor Summary
ValidateAddRequestActivity()
           
 
Method Summary
protected  boolean checkSkuForMatch(Sku sku, Map<String,String> attributeValues)
           
protected  Sku determineSku(Product product, Long skuId, Map<String,String> attributeValues)
           
 ProcessContext execute(ProcessContext context)
          Called by the encompassing processor to activate the execution of the Activity
protected  Sku findMatchingSku(Product product, Map<String,String> attributeValues)
           
 
Methods inherited from class org.broadleafcommerce.core.workflow.BaseActivity
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setRollbackHandler, setRollbackRegion, setStateConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orderService

protected OrderService orderService

catalogService

protected CatalogService catalogService
Constructor Detail

ValidateAddRequestActivity

public ValidateAddRequestActivity()
Method Detail

execute

public ProcessContext execute(ProcessContext context)
                       throws Exception
Description copied from interface: Activity
Called by the encompassing processor to activate the execution of the Activity

Parameters:
context - - process context for this workflow
Returns:
resulting process context
Throws:
Exception

determineSku

protected Sku determineSku(Product product,
                           Long skuId,
                           Map<String,String> attributeValues)

findMatchingSku

protected Sku findMatchingSku(Product product,
                              Map<String,String> attributeValues)

checkSkuForMatch

protected boolean checkSkuForMatch(Sku sku,
                                   Map<String,String> attributeValues)


Copyright © 2013. All Rights Reserved.