01: /*
02: * Copyright 2006-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.module.purap.service;
17:
18: import org.kuali.module.purap.document.RequisitionDocument;
19:
20: /**
21: * Defines methods that must be implemented by classes providing a RequisitionService.
22: */
23: public interface RequisitionService {
24:
25: /**
26: * Saves the document without doing validation by invoking the saveDocument method of documentService.
27: *
28: * @param requisitionDocument the requisition document to be saved
29: */
30: public void saveDocumentWithoutValidation(
31: RequisitionDocument requisitionDocument);
32:
33: /**
34: * Obtains the requisition document from the database given a requisition id as the input parameter
35: *
36: * @param id the requisition id of the document we want to obtain.
37: * @return RequisitionDocument the requisition document whose requisition id is the id in the input parameter of this method.
38: */
39: public RequisitionDocument getRequisitionById(Integer id);
40:
41: /**
42: * Checks whether the requisition is eligible to become an Automatic Purchase Order (APO)
43: *
44: * @param requisition the requisition document to be checked.
45: * @return boolean true if the requisition is eligible to become APO.
46: */
47: public boolean isAutomaticPurchaseOrderAllowed(
48: RequisitionDocument requisition);
49: }
|