org.kuali.kfs.module.purap.document.service.impl
Class B2BPurchaseOrderServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.purap.document.service.impl.B2BPurchaseOrderServiceImpl
All Implemented Interfaces:
B2BPurchaseOrderService

@Transactional
public class B2BPurchaseOrderServiceImpl
extends Object
implements B2BPurchaseOrderService


Constructor Summary
B2BPurchaseOrderServiceImpl()
           
 
Method Summary
protected  String getContractManagerEmail(ContractManager cm)
          Retrieve the Contract Manager's email
 String getCxml(PurchaseOrderDocument purchaseOrder, String requisitionInitiatorId, String password, ContractManager contractManager, String contractManagerEmail, String vendorDuns)
          Returns the cxml of the Purchase Order for electronic transmission to the vendor
protected  org.kuali.rice.kim.service.PersonService<org.kuali.rice.kim.bo.Person> getPersonService()
           
protected  boolean isProduction()
          Throws an exception if running on production
 String sendPurchaseOrder(PurchaseOrderDocument purchaseOrder)
          Send the Purchase Order
 void setB2bDao(B2BDao b2bDao)
           
 void setB2bEnvironment(String environment)
           
 void setB2bPurchaseOrderIdentity(String b2bPurchaseOrderIdentity)
           
 void setB2bPurchaseOrderPassword(String purchaseOrderPassword)
           
 void setB2bPurchaseOrderURL(String purchaseOrderURL)
           
 void setB2bUserAgent(String userAgent)
           
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
           
 void setRequisitionService(RequisitionService requisitionService)
           
 String verifyCxmlPOData(PurchaseOrderDocument purchaseOrder, String requisitionInitiatorId, String password, ContractManager contractManager, String contractManagerEmail, String vendorDuns)
          Verifies that each piece of data required for the PO cXML is present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

B2BPurchaseOrderServiceImpl

public B2BPurchaseOrderServiceImpl()
Method Detail

sendPurchaseOrder

public String sendPurchaseOrder(PurchaseOrderDocument purchaseOrder)
Description copied from interface: B2BPurchaseOrderService
Send the Purchase Order

Specified by:
sendPurchaseOrder in interface B2BPurchaseOrderService
Returns:
Response
See Also:
B2BPurchaseOrderService.sendPurchaseOrder(org.kuali.kfs.module.purap.document.PurchaseOrderDocument)

getCxml

public String getCxml(PurchaseOrderDocument purchaseOrder,
                      String requisitionInitiatorId,
                      String password,
                      ContractManager contractManager,
                      String contractManagerEmail,
                      String vendorDuns)
Description copied from interface: B2BPurchaseOrderService
Returns the cxml of the Purchase Order for electronic transmission to the vendor

Specified by:
getCxml in interface B2BPurchaseOrderService
Parameters:
purchaseOrder - PurchaseOrderDocument - PO data
password - String - password for PO transmission
contractManager - ContractManager - contract manager for the PO
contractManagerEmail - String - email address for the contract manager
vendorDuns - String - vendor DUNS number for the PO
Returns:
String which is the cxml of the PO to send to the vendor
See Also:
org.kuali.kfs.module.purap.document.service.B2BPurchaseOrderService#getCxml(org.kuali.kfs.module.purap.document.PurchaseOrderDocument, org.kuali.rice.kim.bo.Person, java.lang.String, org.kuali.kfs.vnd.businessobject.ContractManager, java.lang.String, java.lang.String)

verifyCxmlPOData

public String verifyCxmlPOData(PurchaseOrderDocument purchaseOrder,
                               String requisitionInitiatorId,
                               String password,
                               ContractManager contractManager,
                               String contractManagerEmail,
                               String vendorDuns)
Description copied from interface: B2BPurchaseOrderService
Verifies that each piece of data required for the PO cXML is present.

Specified by:
verifyCxmlPOData in interface B2BPurchaseOrderService
Returns:
See Also:
org.kuali.kfs.module.purap.document.service.B2BPurchaseOrderService#verifyCxmlPOData(org.kuali.kfs.module.purap.document.PurchaseOrderDocument, org.kuali.rice.kim.bo.Person, java.lang.String, org.kuali.kfs.vnd.businessobject.ContractManager, java.lang.String, java.lang.String)

getContractManagerEmail

protected String getContractManagerEmail(ContractManager cm)
Retrieve the Contract Manager's email


getPersonService

protected org.kuali.rice.kim.service.PersonService<org.kuali.rice.kim.bo.Person> getPersonService()
Returns:
Returns the personService.

setRequisitionService

public void setRequisitionService(RequisitionService requisitionService)

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)

setB2bDao

public void setB2bDao(B2BDao b2bDao)

isProduction

protected boolean isProduction()
Throws an exception if running on production


setB2bEnvironment

public void setB2bEnvironment(String environment)

setB2bUserAgent

public void setB2bUserAgent(String userAgent)

setB2bPurchaseOrderURL

public void setB2bPurchaseOrderURL(String purchaseOrderURL)

setB2bPurchaseOrderIdentity

public void setB2bPurchaseOrderIdentity(String b2bPurchaseOrderIdentity)

setB2bPurchaseOrderPassword

public void setB2bPurchaseOrderPassword(String purchaseOrderPassword)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.