1 package org.kuali.ole.service;
2
3 import org.kuali.ole.select.bo.OleAgreementDocumentMetadata;
4 import org.kuali.ole.select.bo.OleLicenseRequestBo;
5
6 import java.io.File;
7 import java.util.Date;
8 import java.util.List;
9 import java.util.Map;
10
11
12
13
14
15
16
17
18 public interface OleLicenseRequestService {
19
20 public List<OleAgreementDocumentMetadata> processIngestAgreementDocuments(List<OleAgreementDocumentMetadata> oleAgreementDocs);
21
22 public List<OleAgreementDocumentMetadata> processCheckInAgreementDocuments(List<OleAgreementDocumentMetadata> oleAgreementDocs);
23
24 public File downloadAgreementDocumentFromDocstore(OleAgreementDocumentMetadata oleAgreementDocumentMetadata);
25
26 public String getAgreementContent(String uuid);
27
28 public String ingestAgreementContent(String content);
29
30 public List<OleLicenseRequestBo> findLicenseRequestByCriteria(Map<String, String> criteria)throws Exception;
31
32
33
34 public OleLicenseRequestBo getLicenseRequestFromDocumentContent(String documentContent);
35
36 public boolean deleteAgreementDocument(OleAgreementDocumentMetadata metadata);
37
38 public boolean validateDate (Date documentDate, String fromDate, String toDate)throws Exception;
39
40 public int getLicenseAttachments(String licenseId);
41 }