001 /*
002 * Copyright 2011 The Kuali Foundation.
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.kfs.module.purap.dataaccess;
017
018 import java.util.List;
019
020 import org.kuali.kfs.module.purap.businessobject.PurApItem;
021
022 /**
023 * PurApAccounting DAO Interface.
024 */
025 public interface PurApAccountingDao {
026
027 /**
028 * Retrieves the accounting lines for a purap item.
029 *
030 * @param item - purap item
031 * @return - list of accounting lines
032 */
033 public List getAccountingLinesForItem(PurApItem item);
034
035 /**
036 * Deletes the summary accounts by payment request document id.
037 *
038 * @param paymentRequestIdentifier - payment request document id
039 */
040 public void deleteSummaryAccountsbyPaymentRequestIdentifier(Integer paymentRequestIdentifier);
041
042 /**
043 * Deletes the summary accounts by credit memo document id.
044 *
045 * @param creditMemoIdentifier - credit memo document id
046 */
047 public void deleteSummaryAccountsbyCreditMemoIdentifier(Integer creditMemoIdentifier);
048
049 /**
050 * Retrieves the summary accounts by payment request document id.
051 *
052 * @param paymentRequestIdentifier - payment request document id
053 * @return List of SummaryAccounts
054 */
055 public List getSummaryAccountsbyPaymentRequestIdentifier(Integer paymentRequestIdentifier);
056
057 /**
058 * Retrieves the summary accounts by credit memo document id.
059 *
060 * @param creditMemoIdentifier - credit memo document id
061 * @return List of SummaryAccounts
062 */
063 public List getSummaryAccountsbyCreditMemoIdentifier(Integer creditMemoIdentifier);
064
065
066 }