org.kuali.kfs.module.purap.businessobject
Class PurApItemBase

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.kfs.module.purap.businessobject.PurApItemBase
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, ExternalPurApItem, PurapEnterableItem, PurApItem, org.kuali.rice.kns.bo.BusinessObject, org.kuali.rice.kns.bo.ExternalizableBusinessObject, org.kuali.rice.kns.bo.PersistableBusinessObject
Direct Known Subclasses:
AccountsPayableItemBase, PurApSummaryItem, PurchasingItemBase

public abstract class PurApItemBase
extends org.kuali.rice.kns.bo.PersistableBusinessObjectBase
implements PurApItem

Purap Item Base Business Object.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
PurApItemBase()
          Default constructor.
 
Method Summary
 List buildListOfDeletionAwareLists()
           
 org.kuali.rice.kns.util.KualiDecimal calculateExtendedPrice()
           
 void fixAccountReferences()
          fixes item references on accounts
abstract  Class getAccountingLineClass()
           
 PurApAccountingLine getBaselineSourceAccountingLine(int index)
           
 List<PurApAccountingLine> getBaselineSourceAccountingLines()
           
 org.kuali.rice.kns.util.KualiDecimal getExtendedPrice()
           
 String getExternalOrganizationB2bProductReferenceNumber()
           
 String getExternalOrganizationB2bProductTypeName()
           
 boolean getItemAssignedToTradeInIndicator()
           
 String getItemAuxiliaryPartIdentifier()
           
 String getItemCatalogNumber()
           
 String getItemDescription()
           
 Integer getItemIdentifier()
           
 String getItemIdentifierString()
           
 Integer getItemLineNumber()
           
 org.kuali.rice.kns.util.KualiDecimal getItemQuantity()
           
 org.kuali.rice.kns.util.KualiDecimal getItemSalesTaxAmount()
           
 org.kuali.rice.kns.util.KualiDecimal getItemTaxAmount()
           
 ItemType getItemType()
           
 String getItemTypeCode()
           
 String getItemUnitOfMeasureCode()
           
 BigDecimal getItemUnitPrice()
           
 PurApAccountingLine getNewSourceLine()
           
<T extends PurchasingAccountsPayableDocument>
T
getPurapDocument()
           
 Integer getPurapDocumentIdentifier()
           
 PurApAccountingLine getSourceAccountingLine(int index)
          This implementation is coupled tightly with some underlying issues that the Struts PojoProcessor plugin has with how objects get instantiated within lists.
 List<PurApAccountingLine> getSourceAccountingLines()
           
 PurApSummaryItem getSummaryItem()
           
 org.kuali.rice.kns.util.KualiDecimal getTotalAmount()
           
 org.kuali.rice.kns.util.KualiDecimal getTotalRemitAmount()
          gets the total amount to remit to a vendor
abstract  Class getUseTaxClass()
           
 List<PurApItemUseTax> getUseTaxItems()
           
 boolean isAccountListEmpty()
           
 void refreshNonUpdateableReferences()
           
 void resetAccount()
          This method resets the transient new account method
 void setBaselineSourceAccountingLines(List<PurApAccountingLine> baselineSourceLines)
           
 void setExtendedPrice(org.kuali.rice.kns.util.KualiDecimal extendedPrice)
           
 void setExternalOrganizationB2bProductReferenceNumber(String externalOrganizationB2bProductReferenceNumber)
           
 void setExternalOrganizationB2bProductTypeName(String externalOrganizationB2bProductTypeName)
           
 void setItemAssignedToTradeInIndicator(boolean itemAssignedToTradeInIndicator)
           
 void setItemAuxiliaryPartIdentifier(String itemAuxiliaryPartIdentifier)
           
 void setItemCatalogNumber(String itemCatalogNumber)
           
 void setItemDescription(String itemDescription)
           
 void setItemIdentifier(Integer ItemIdentifier)
           
 void setItemLineNumber(Integer itemLineNumber)
           
 void setItemQuantity(org.kuali.rice.kns.util.KualiDecimal itemQuantity)
           
 void setItemSalesTaxAmount(org.kuali.rice.kns.util.KualiDecimal itemSalesTaxAmount)
           
 void setItemTaxAmount(org.kuali.rice.kns.util.KualiDecimal itemTaxAmount)
           
 void setItemType(ItemType itemType)
          Deprecated.  
 void setItemTypeCode(String itemTypeCode)
           
 void setItemUnitOfMeasureCode(String itemUnitOfMeasureCode)
           
 void setItemUnitPrice(BigDecimal itemUnitPrice)
           
 void setNewSourceLine(PurApAccountingLine newAccountingLine)
           
 void setPurapDocument(PurchasingAccountsPayableDocument purapDoc)
           
 void setPurapDocumentIdentifier(Integer purapDocumentIdentifier)
           
 void setSourceAccountingLines(List<PurApAccountingLine> accountingLines)
           
 void setTotalAmount(org.kuali.rice.kns.util.KualiDecimal totalAmount)
           
 void setUseTaxItems(List<PurApItemUseTax> useTaxItems)
           
 String toString()
           
protected  LinkedHashMap toStringMapper()
           
 
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
addNote, afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeInsert, beforeUpdate, beforeUpdate, deleteNote, getAttachmentService, getBoNote, getBoNotes, getExtension, getNoteService, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isAutoIncrementSet, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refresh, refreshReferenceObject, setAutoIncrementSet, setBoNotes, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber, supportsBoNotes
 
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase
prepareForWorkflow, toStringBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kns.bo.PersistableBusinessObject
addNote, deleteNote, getBoNote, getBoNotes, getExtension, getObjectId, getVersionNumber, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refreshReferenceObject, setAutoIncrementSet, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from interface org.apache.ojb.broker.PersistenceBrokerAware
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate
 
Methods inherited from interface org.kuali.kfs.module.purap.businessobject.PurapEnterableItem
isConsideredEntered
 
Methods inherited from interface org.kuali.rice.kns.bo.BusinessObject
prepareForWorkflow, refresh
 

Constructor Detail

PurApItemBase

public PurApItemBase()
Default constructor.

Method Detail

getItemIdentifierString

public String getItemIdentifierString()
Specified by:
getItemIdentifierString in interface PurApItem
See Also:
PurApItem.getItemIdentifierString()

getItemIdentifier

public Integer getItemIdentifier()
Specified by:
getItemIdentifier in interface PurApItem

setItemIdentifier

public void setItemIdentifier(Integer ItemIdentifier)
Specified by:
setItemIdentifier in interface PurApItem

getItemLineNumber

public Integer getItemLineNumber()
Specified by:
getItemLineNumber in interface PurApItem

setItemLineNumber

public void setItemLineNumber(Integer itemLineNumber)
Specified by:
setItemLineNumber in interface PurApItem

getItemUnitOfMeasureCode

public String getItemUnitOfMeasureCode()
Specified by:
getItemUnitOfMeasureCode in interface PurApItem

setItemUnitOfMeasureCode

public void setItemUnitOfMeasureCode(String itemUnitOfMeasureCode)
Specified by:
setItemUnitOfMeasureCode in interface PurApItem

getItemCatalogNumber

public String getItemCatalogNumber()
Specified by:
getItemCatalogNumber in interface PurApItem

setItemCatalogNumber

public void setItemCatalogNumber(String itemCatalogNumber)
Specified by:
setItemCatalogNumber in interface PurApItem

getItemDescription

public String getItemDescription()
Specified by:
getItemDescription in interface PurApItem

setItemDescription

public void setItemDescription(String itemDescription)
Specified by:
setItemDescription in interface PurApItem

getItemUnitPrice

public BigDecimal getItemUnitPrice()
Specified by:
getItemUnitPrice in interface PurApItem

setItemUnitPrice

public void setItemUnitPrice(BigDecimal itemUnitPrice)
Specified by:
setItemUnitPrice in interface PurApItem

getItemTypeCode

public String getItemTypeCode()
Specified by:
getItemTypeCode in interface PurApItem

setItemTypeCode

public void setItemTypeCode(String itemTypeCode)
Specified by:
setItemTypeCode in interface PurApItem

getItemAuxiliaryPartIdentifier

public String getItemAuxiliaryPartIdentifier()
Specified by:
getItemAuxiliaryPartIdentifier in interface PurApItem

setItemAuxiliaryPartIdentifier

public void setItemAuxiliaryPartIdentifier(String itemAuxiliaryPartIdentifier)
Specified by:
setItemAuxiliaryPartIdentifier in interface PurApItem

getExternalOrganizationB2bProductReferenceNumber

public String getExternalOrganizationB2bProductReferenceNumber()
Specified by:
getExternalOrganizationB2bProductReferenceNumber in interface PurApItem

setExternalOrganizationB2bProductReferenceNumber

public void setExternalOrganizationB2bProductReferenceNumber(String externalOrganizationB2bProductReferenceNumber)
Specified by:
setExternalOrganizationB2bProductReferenceNumber in interface PurApItem

getExternalOrganizationB2bProductTypeName

public String getExternalOrganizationB2bProductTypeName()
Specified by:
getExternalOrganizationB2bProductTypeName in interface PurApItem

setExternalOrganizationB2bProductTypeName

public void setExternalOrganizationB2bProductTypeName(String externalOrganizationB2bProductTypeName)
Specified by:
setExternalOrganizationB2bProductTypeName in interface PurApItem

getItemAssignedToTradeInIndicator

public boolean getItemAssignedToTradeInIndicator()
Specified by:
getItemAssignedToTradeInIndicator in interface PurApItem

setItemAssignedToTradeInIndicator

public void setItemAssignedToTradeInIndicator(boolean itemAssignedToTradeInIndicator)
Specified by:
setItemAssignedToTradeInIndicator in interface PurApItem

getItemType

public ItemType getItemType()
Specified by:
getItemType in interface PurApItem

setItemType

public void setItemType(ItemType itemType)
Deprecated. 

Sets the itemType attribute.

Specified by:
setItemType in interface PurApItem
Parameters:
itemType - The itemType to set.

getItemTaxAmount

public org.kuali.rice.kns.util.KualiDecimal getItemTaxAmount()
Specified by:
getItemTaxAmount in interface PurApItem

setItemTaxAmount

public void setItemTaxAmount(org.kuali.rice.kns.util.KualiDecimal itemTaxAmount)
Specified by:
setItemTaxAmount in interface PurApItem

getItemSalesTaxAmount

public final org.kuali.rice.kns.util.KualiDecimal getItemSalesTaxAmount()

setItemSalesTaxAmount

public final void setItemSalesTaxAmount(org.kuali.rice.kns.util.KualiDecimal itemSalesTaxAmount)

getExtendedPrice

public org.kuali.rice.kns.util.KualiDecimal getExtendedPrice()
Specified by:
getExtendedPrice in interface PurApItem

getTotalAmount

public org.kuali.rice.kns.util.KualiDecimal getTotalAmount()
Specified by:
getTotalAmount in interface PurApItem

setTotalAmount

public void setTotalAmount(org.kuali.rice.kns.util.KualiDecimal totalAmount)
Specified by:
setTotalAmount in interface PurApItem

calculateExtendedPrice

public org.kuali.rice.kns.util.KualiDecimal calculateExtendedPrice()
Specified by:
calculateExtendedPrice in interface PurApItem

setExtendedPrice

public void setExtendedPrice(org.kuali.rice.kns.util.KualiDecimal extendedPrice)
Specified by:
setExtendedPrice in interface PurApItem

getSourceAccountingLines

public List<PurApAccountingLine> getSourceAccountingLines()
Specified by:
getSourceAccountingLines in interface PurApItem

setSourceAccountingLines

public void setSourceAccountingLines(List<PurApAccountingLine> accountingLines)
Specified by:
setSourceAccountingLines in interface PurApItem

getBaselineSourceAccountingLines

public List<PurApAccountingLine> getBaselineSourceAccountingLines()
Specified by:
getBaselineSourceAccountingLines in interface PurApItem

setBaselineSourceAccountingLines

public void setBaselineSourceAccountingLines(List<PurApAccountingLine> baselineSourceLines)

getSourceAccountingLine

public PurApAccountingLine getSourceAccountingLine(int index)
This implementation is coupled tightly with some underlying issues that the Struts PojoProcessor plugin has with how objects get instantiated within lists. The first three lines are required otherwise when the PojoProcessor tries to automatically inject values into the list, it will get an index out of bounds error if the instance at an index is being called and prior instances at indices before that one are not being instantiated. So changing the code below will cause adding lines to break if you add more than one item to the list.

See Also:
org.kuali.rice.kns.document.FinancialDocument#getTargetAccountingLine(int)

getBaselineSourceAccountingLine

public PurApAccountingLine getBaselineSourceAccountingLine(int index)

getAccountingLineClass

public abstract Class getAccountingLineClass()
Specified by:
getAccountingLineClass in interface PurApItem

getUseTaxClass

public abstract Class getUseTaxClass()
Specified by:
getUseTaxClass in interface PurApItem

resetAccount

public void resetAccount()
Description copied from interface: PurApItem
This method resets the transient new account method

Specified by:
resetAccount in interface PurApItem

buildListOfDeletionAwareLists

public List buildListOfDeletionAwareLists()
Specified by:
buildListOfDeletionAwareLists in interface org.kuali.rice.kns.bo.PersistableBusinessObject
Overrides:
buildListOfDeletionAwareLists in class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
See Also:
PersistableBusinessObjectBase.buildListOfDeletionAwareLists()

toStringMapper

protected LinkedHashMap toStringMapper()
Specified by:
toStringMapper in class org.kuali.rice.kns.bo.BusinessObjectBase
See Also:
BusinessObjectBase.toStringMapper()

getNewSourceLine

public PurApAccountingLine getNewSourceLine()
Specified by:
getNewSourceLine in interface PurApItem

setNewSourceLine

public void setNewSourceLine(PurApAccountingLine newAccountingLine)
Specified by:
setNewSourceLine in interface PurApItem

getPurapDocumentIdentifier

public Integer getPurapDocumentIdentifier()
Specified by:
getPurapDocumentIdentifier in interface PurApItem

setPurapDocumentIdentifier

public void setPurapDocumentIdentifier(Integer purapDocumentIdentifier)
Specified by:
setPurapDocumentIdentifier in interface PurApItem

getUseTaxItems

public List<PurApItemUseTax> getUseTaxItems()
Specified by:
getUseTaxItems in interface PurApItem

setUseTaxItems

public void setUseTaxItems(List<PurApItemUseTax> useTaxItems)
Specified by:
setUseTaxItems in interface PurApItem

getItemQuantity

public org.kuali.rice.kns.util.KualiDecimal getItemQuantity()
Specified by:
getItemQuantity in interface PurApItem

setItemQuantity

public void setItemQuantity(org.kuali.rice.kns.util.KualiDecimal itemQuantity)
Specified by:
setItemQuantity in interface PurApItem

isAccountListEmpty

public boolean isAccountListEmpty()

getSummaryItem

public PurApSummaryItem getSummaryItem()
Specified by:
getSummaryItem in interface PurApItem

getPurapDocument

public final <T extends PurchasingAccountsPayableDocument> T getPurapDocument()
Specified by:
getPurapDocument in interface PurApItem

setPurapDocument

public final void setPurapDocument(PurchasingAccountsPayableDocument purapDoc)
Specified by:
setPurapDocument in interface PurApItem

fixAccountReferences

public void fixAccountReferences()
fixes item references on accounts

Specified by:
fixAccountReferences in interface PurApItem
See Also:
PurApItem.fixAccountReferences()

refreshNonUpdateableReferences

public void refreshNonUpdateableReferences()
Specified by:
refreshNonUpdateableReferences in interface org.kuali.rice.kns.bo.PersistableBusinessObject
Overrides:
refreshNonUpdateableReferences in class org.kuali.rice.kns.bo.PersistableBusinessObjectBase

getTotalRemitAmount

public org.kuali.rice.kns.util.KualiDecimal getTotalRemitAmount()
Description copied from interface: PurApItem
gets the total amount to remit to a vendor

Specified by:
getTotalRemitAmount in interface PurApItem
Returns:
pre tax total if use tax post tax if sales

toString

public String toString()
Overrides:
toString in class org.kuali.rice.kns.bo.BusinessObjectBase


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