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.cab.document.service;
017
018 import java.util.List;
019
020 import org.kuali.kfs.module.cab.businessobject.PurchasingAccountsPayableDocument;
021 import org.kuali.kfs.module.cab.businessobject.PurchasingAccountsPayableItemAsset;
022 import org.kuali.kfs.module.cab.document.web.PurApLineSession;
023 import org.kuali.rice.kew.exception.WorkflowException;
024
025
026 /**
027 * This class declares methods used by CAB PurAp Line process
028 */
029 public interface PurApLineDocumentService {
030
031 /**
032 * Create CAMs asset global document.
033 *
034 * @param selectedItem
035 * @param purApDocs
036 * @param purApLineSession
037 * @param requisitionIdentifier
038 * @return
039 * @throws WorkflowException
040 */
041 String processCreateAsset(PurchasingAccountsPayableItemAsset selectedItem, List<PurchasingAccountsPayableDocument> purApDocs, PurApLineSession purApLineSession, Integer requisitionIdentifier) throws WorkflowException;
042
043 /**
044 * Create CAMS asset payment document.
045 *
046 * @param selectedItem
047 * @param purApDocs
048 * @param purApLineSession
049 * @param requistionIdentifer
050 * @return
051 * @throws WorkflowException
052 */
053 String processApplyPayment(PurchasingAccountsPayableItemAsset selectedItem, List<PurchasingAccountsPayableDocument> purApDocs, PurApLineSession purApLineSession, Integer requistionIdentifer) throws WorkflowException;
054
055 }