View Javadoc
1   /*
2    * Copyright 2007 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.module.purap.dataaccess;
17  
18  import java.util.Date;
19  import java.util.Map;
20  
21  /**
22   * An interface to methods needed to join transaction related tables to create records
23   */
24  public interface PurapDocumentsStatusCodeMigrationDao {
25  
26      /**
27       * Method to retrieve the existing requisition documents where status code is null and putting
28       * the document number and status code in a map to be processed.
29       *
30       * @return Map<String, String> requistion details
31       */
32      public Map<String, String> getRequisitionDocumentDetails();
33  
34      /**
35       * Method to retrieve the existing purchase order documents where status code is null and putting
36       * the document number and status code in a map to be processed.
37       *
38       * @return Map<String, String> PO details
39       */
40      public Map<String, String> getPurchaseOrderDocumentDetails();
41  
42      /**
43       * Method to retrieve the existing payment request documents where status code is
44       * null and putting the document number and status code in a map to be processed.
45       *
46       * @return Map<String, String> Payment Request details
47       */
48      public Map<String, String> getPaymentRequestDocumentDetails();
49  
50      /**
51       * Method to retrieve the existing Vendor Credit Memo documents where status code is
52       * null and putting the document number and status code in a map to be processed.
53       *
54       * @return Map<String, String> Vendor Credit Memo details
55       */
56      public Map<String, String> getVendorCreditMemoDocumentDetails();
57  
58      /**
59       * Method to retrieve the existing Line Item Receiving documents where status code is
60       * null and putting the document number and status code in a map to be processed.
61       *
62       * @return Map<String, String> Line Item Receiving details
63       */
64      public Map<String, String> getLineItemReceivingDocumentDetails();
65  
66      /**
67       * The workflowdocument is updated with new application document status and
68       * gets set with new application document status modified date.
69       *
70       * @param documentNumber
71       * @param applicationDocumentStatus
72       * @param applicationDocumentStatusModifiedDate
73       *
74       * @return true if successful else return false
75       */
76      public boolean updateAndSaveMigratedApplicationDocumentStatuses(String documentNumber, String applicationDocumentStatus, Date applicationDocumentStatusModifiedDate);
77  }