org.kuali.kfs.module.cab.document.service.impl
Class PurApInfoServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.cab.document.service.impl.PurApInfoServiceImpl
All Implemented Interfaces:
PurApInfoService

public class PurApInfoServiceImpl
extends Object
implements PurApInfoService

This class provides default implementations of PurApLineService


Field Summary
protected static String PURCHASE_ORDER_CURRENT_INDICATOR
           
 
Constructor Summary
PurApInfoServiceImpl()
           
 
Method Summary
protected  AssetService getAssetService()
           
protected  List<ItemCapitalAsset> getAssetsFromItemCapitalAsset(List<ItemCapitalAsset> itemCapitalAssets)
          Get asset number list from ItemCapitalAsset list.
 org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
          Gets the businessObjectService attribute.
protected  CapitalAssetSystem getCapitalAssetSystemForIndividual(Integer poId, PurApItem purApItem)
           
protected  String getCapitalAssetTransTypeForOneSystem(Integer poId)
          Get capitalAssetTransactionTypeCode for one system from PurAp.
 PurchaseOrderDocument getCurrentDocumentForPurchaseOrderIdentifier(Integer poId)
          Get the workflow document number for given poId
protected  List<PurchasingAccountsPayableItemAsset> getMatchingItems(Integer itemIdentifier, List<PurchasingAccountsPayableDocument> purApDocs)
          Finding out the matching PREQ/CM items originating from the same PurchaseOrderItem.
protected  PurchaseOrderItem getPurchaseOrderItemfromCreditMemoItem(CreditMemoItem item)
          Retreives a purchase order item for a given CreditMemoItem by inspecting the item type to see if its above the line or below the line and returns the appropriate type.
 PurchaseOrderService getPurchaseOrderService()
          Gets the purchaseOrderService attribute.
protected  boolean isAssetNumberDuplicate(Long candidateNumber, List<ItemCapitalAsset> assetNumbers)
          Check if given capitalAssetNumber is an duplicate number in assetNumbers list.
 List<Long> retrieveValidAssetNumberForLocking(Integer poId, String capitalAssetSystemTypeCode, PurApItem purApItem)
          Valid asset number means asset number must exist in Asset table with status active ( a, c, s, u)
 void setAccountsPayableItemsFromPurAp(PurchasingAccountsPayableItemAsset purchasingAccountsPayableItemAsset, String docTypeCode)
          Set CAB line item information from PurAp PaymentRequestItem or CreditMemoItem.
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setCamsTransactionFromPurAp(List<PurchasingAccountsPayableDocument> purApDocs)
          Set CAMS transaction type code the user entered in PurAp
protected  void setIndividualAssetsFromPurAp(Integer poId, List<PurchasingAccountsPayableDocument> purApDocs, String capitalAssetSystemStateCode)
          Set Individual system asset transaction type and asset numbers.
protected  void setItemAssetsCamsTransaction(Integer capitalAssetSystemIdentifier, String capitalAssetTransactionTypeCode, List<ItemCapitalAsset> purApCapitalAssets, List<PurchasingAccountsPayableItemAsset> itemAssets)
          Update item assets by PurAp Cams Transaction setting
protected  void setMultipleSystemFromPurAp(Integer poId, List<PurchasingAccountsPayableDocument> purApDocs, String capitalAssetSystemStateCode)
          Set Multiple system capital asset transaction type code and asset numbers.
protected  void setOneSystemFromPurAp(Integer poId, List<PurchasingAccountsPayableDocument> purApDocs, String capitalAssetSystemStateCode)
          Set One System capital asset transaction type code and asset numbers.
 void setPurchaseOrderFromPurAp(PurApLineForm purApLineForm)
          Set Purchasing order email address and contact phone from PurAp.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PURCHASE_ORDER_CURRENT_INDICATOR

protected static final String PURCHASE_ORDER_CURRENT_INDICATOR
See Also:
Constant Field Values
Constructor Detail

PurApInfoServiceImpl

public PurApInfoServiceImpl()
Method Detail

getCurrentDocumentForPurchaseOrderIdentifier

public PurchaseOrderDocument getCurrentDocumentForPurchaseOrderIdentifier(Integer poId)
Description copied from interface: PurApInfoService
Get the workflow document number for given poId

Specified by:
getCurrentDocumentForPurchaseOrderIdentifier in interface PurApInfoService
Returns:
See Also:
org.kuali.kfs.module.cab.document.service.PurApInfoService#getDocumentNumberForPurchaseOrderIdentifier(java.lang.Integer)

setPurchaseOrderFromPurAp

public void setPurchaseOrderFromPurAp(PurApLineForm purApLineForm)
Description copied from interface: PurApInfoService
Set Purchasing order email address and contact phone from PurAp.

Specified by:
setPurchaseOrderFromPurAp in interface PurApInfoService
Parameters:
purApLineForm - form
See Also:
org.kuali.kfs.module.cab.document.service.PurApLineService#setPurchaseOrderInfo(org.kuali.kfs.module.cab.document.web.struts.PurApLineForm)

setCamsTransactionFromPurAp

public void setCamsTransactionFromPurAp(List<PurchasingAccountsPayableDocument> purApDocs)
Set CAMS transaction type code the user entered in PurAp

Specified by:
setCamsTransactionFromPurAp in interface PurApInfoService
Parameters:
poId -

setMultipleSystemFromPurAp

protected void setMultipleSystemFromPurAp(Integer poId,
                                          List<PurchasingAccountsPayableDocument> purApDocs,
                                          String capitalAssetSystemStateCode)
Set Multiple system capital asset transaction type code and asset numbers.

Parameters:
poId -
purApDocs -

setOneSystemFromPurAp

protected void setOneSystemFromPurAp(Integer poId,
                                     List<PurchasingAccountsPayableDocument> purApDocs,
                                     String capitalAssetSystemStateCode)
Set One System capital asset transaction type code and asset numbers.

Parameters:
poId -
purApDocs -

setItemAssetsCamsTransaction

protected void setItemAssetsCamsTransaction(Integer capitalAssetSystemIdentifier,
                                            String capitalAssetTransactionTypeCode,
                                            List<ItemCapitalAsset> purApCapitalAssets,
                                            List<PurchasingAccountsPayableItemAsset> itemAssets)
Update item assets by PurAp Cams Transaction setting

Parameters:
capitalAssetSystemIdentifier -
capitRalAssetTransactionTypeCode -
purApCapitalAssets -
itemAssets -

getCapitalAssetTransTypeForOneSystem

protected String getCapitalAssetTransTypeForOneSystem(Integer poId)
Get capitalAssetTransactionTypeCode for one system from PurAp.

Parameters:
poId -
Returns:

setIndividualAssetsFromPurAp

protected void setIndividualAssetsFromPurAp(Integer poId,
                                            List<PurchasingAccountsPayableDocument> purApDocs,
                                            String capitalAssetSystemStateCode)
Set Individual system asset transaction type and asset numbers.

Parameters:
poId -
purApDocs -

getAssetsFromItemCapitalAsset

protected List<ItemCapitalAsset> getAssetsFromItemCapitalAsset(List<ItemCapitalAsset> itemCapitalAssets)
Get asset number list from ItemCapitalAsset list.

Parameters:
itemCapitalAssets -
Returns:

isAssetNumberDuplicate

protected boolean isAssetNumberDuplicate(Long candidateNumber,
                                         List<ItemCapitalAsset> assetNumbers)
Check if given capitalAssetNumber is an duplicate number in assetNumbers list.

Parameters:
capitalAssetNumber -
assetNumbers -
Returns:

getMatchingItems

protected List<PurchasingAccountsPayableItemAsset> getMatchingItems(Integer itemIdentifier,
                                                                    List<PurchasingAccountsPayableDocument> purApDocs)
Finding out the matching PREQ/CM items originating from the same PurchaseOrderItem.

Parameters:
itemIdentifier -
purApDocs -
Returns:

setAccountsPayableItemsFromPurAp

public void setAccountsPayableItemsFromPurAp(PurchasingAccountsPayableItemAsset purchasingAccountsPayableItemAsset,
                                             String docTypeCode)
Set CAB line item information from PurAp PaymentRequestItem or CreditMemoItem.

Specified by:
setAccountsPayableItemsFromPurAp in interface PurApInfoService
Parameters:
purchasingAccountsPayableItemAsset -
docTypeCode -

getPurchaseOrderItemfromCreditMemoItem

protected PurchaseOrderItem getPurchaseOrderItemfromCreditMemoItem(CreditMemoItem item)
Retreives a purchase order item for a given CreditMemoItem by inspecting the item type to see if its above the line or below the line and returns the appropriate type.

Parameters:
item -
Returns:

retrieveValidAssetNumberForLocking

public List<Long> retrieveValidAssetNumberForLocking(Integer poId,
                                                     String capitalAssetSystemTypeCode,
                                                     PurApItem purApItem)
Description copied from interface: PurApInfoService
Valid asset number means asset number must exist in Asset table with status active ( a, c, s, u)

Specified by:
retrieveValidAssetNumberForLocking in interface PurApInfoService
Returns:

getCapitalAssetSystemForIndividual

protected CapitalAssetSystem getCapitalAssetSystemForIndividual(Integer poId,
                                                                PurApItem purApItem)

getAssetService

protected AssetService getAssetService()

getBusinessObjectService

public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
Gets the businessObjectService attribute.

Returns:
Returns the businessObjectService.

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.

Parameters:
businessObjectService - The businessObjectService to set.

getPurchaseOrderService

public PurchaseOrderService getPurchaseOrderService()
Gets the purchaseOrderService attribute.

Returns:
Returns the purchaseOrderService.


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