org.kuali.kfs.module.purap.util
Class PurApRelatedViews

java.lang.Object
  extended by org.kuali.kfs.module.purap.util.PurApRelatedViews

public class PurApRelatedViews
extends Object


Nested Class Summary
 class PurApRelatedViews.PurchaseOrderViewGroup
          A container for a List, to be used by a nested c:forEach tag in relatedPurchaseOrderDocumentsDetail.tag.
 class PurApRelatedViews.ReceivingViewGroup
          A container for a LineItemReceivingView and a list of its associated CorrectionReceivingViews.
 
Constructor Summary
PurApRelatedViews(String documentNumber, Integer accountsPayablePurchasingDocumentLinkIdentifier)
           
 
Method Summary
 List<PurApRelatedViews.PurchaseOrderViewGroup> getGroupedRelatedPurchaseOrderViews()
          Groups related PurchaseOrderViews by POIDs descending, and within each group order POs by document numbers descending; thus groups of newer POIDs will be in the front, and within each group, more current POs will be in the front.
 List<PurApRelatedViews.ReceivingViewGroup> getGroupedRelatedReceivingViews()
          Groups related LineItemReceivingView and its CorrectionReceivingViews, with more recent receiving groups in the front; and within each group, with more recent corrections in the front.
 List<CreditMemoView> getPaymentHistoryCreditMemoViews()
          Gets the Payment History Credit Memo Views for this document.
 List<PaymentRequestView> getPaymentHistoryPaymentRequestViews()
          Gets the Payment History Payment Request Views for this document.
 List<BulkReceivingView> getRelatedBulkReceivingViews()
           
 List<CorrectionReceivingView> getRelatedCorrectionReceivingViews()
           
 List<CreditMemoView> getRelatedCreditMemoViews()
           
 List<LineItemReceivingView> getRelatedLineItemReceivingViews()
           
 List<PaymentRequestView> getRelatedPaymentRequestViews()
           
 List<PurchaseOrderView> getRelatedPurchaseOrderViews()
          Obtains a list of related PurchaseOrderViews, first ordered by POIDs descending, then by document numbers descending; thus POs with newer POIDs will be in the front, and within the same POID, the current PO will be in the front.
 List<ElectronicInvoiceRejectView> getRelatedRejectViews()
           
 List<RequisitionView> getRelatedRequisitionViews()
           
 void resetRelatedViews()
          Reset all related view lists to null.
 List updateRelatedView(Class<?> clazz, List<? extends AbstractRelatedView> relatedList, boolean removeCurrentDocument)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PurApRelatedViews

public PurApRelatedViews(String documentNumber,
                         Integer accountsPayablePurchasingDocumentLinkIdentifier)
Method Detail

resetRelatedViews

public void resetRelatedViews()
Reset all related view lists to null.


updateRelatedView

public List updateRelatedView(Class<?> clazz,
                              List<? extends AbstractRelatedView> relatedList,
                              boolean removeCurrentDocument)

getRelatedRequisitionViews

public List<RequisitionView> getRelatedRequisitionViews()
See Also:
org.kuali.kfs.module.purap.document.PurchasingAccountsPayableDocument#getRelatedRequisitionViews()

getRelatedRejectViews

public List<ElectronicInvoiceRejectView> getRelatedRejectViews()

getRelatedPurchaseOrderViews

public List<PurchaseOrderView> getRelatedPurchaseOrderViews()
Obtains a list of related PurchaseOrderViews, first ordered by POIDs descending, then by document numbers descending; thus POs with newer POIDs will be in the front, and within the same POID, the current PO will be in the front.

Returns:
A list of with newer POs in the front.

getGroupedRelatedPurchaseOrderViews

public List<PurApRelatedViews.PurchaseOrderViewGroup> getGroupedRelatedPurchaseOrderViews()
Groups related PurchaseOrderViews by POIDs descending, and within each group order POs by document numbers descending; thus groups of newer POIDs will be in the front, and within each group, more current POs will be in the front.

Returns:
A list of with newer POs in the front.
See Also:
org.kuali.kfs.module.purap.util.PurApRelatedViews.getRelatedPurchaseOrderViews, PurchaseOrderView

getRelatedPaymentRequestViews

public List<PaymentRequestView> getRelatedPaymentRequestViews()
See Also:
org.kuali.kfs.module.purap.document.PurchasingAccountsPayableDocument#getRelatedPaymentRequestViews()

getRelatedCreditMemoViews

public List<CreditMemoView> getRelatedCreditMemoViews()
See Also:
org.kuali.kfs.module.purap.document.PurchasingAccountsPayableDocument#getRelatedCreditMemoViews()

getPaymentHistoryPaymentRequestViews

public List<PaymentRequestView> getPaymentHistoryPaymentRequestViews()
Gets the Payment History Payment Request Views for this document.

Returns:
the list of Payment History Payment Request Views.

getPaymentHistoryCreditMemoViews

public List<CreditMemoView> getPaymentHistoryCreditMemoViews()
Gets the Payment History Credit Memo Views for this document.

Returns:
the list of Payment History Credit Memo Views.

getRelatedLineItemReceivingViews

public List<LineItemReceivingView> getRelatedLineItemReceivingViews()
See Also:
org.kuali.kfs.module.purap.document.PurchasingAccountsPayableDocument#getRelatedRequisitionViews()

getRelatedCorrectionReceivingViews

public List<CorrectionReceivingView> getRelatedCorrectionReceivingViews()
See Also:
org.kuali.kfs.module.purap.document.PurchasingAccountsPayableDocument#getRelatedRequisitionViews()

getRelatedBulkReceivingViews

public List<BulkReceivingView> getRelatedBulkReceivingViews()

getGroupedRelatedReceivingViews

public List<PurApRelatedViews.ReceivingViewGroup> getGroupedRelatedReceivingViews()
Groups related LineItemReceivingView and its CorrectionReceivingViews, with more recent receiving groups in the front; and within each group, with more recent corrections in the front.

Returns:
A list of ReceivingCorrectionViewGroups.


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