001package org.kuali.ole.service; 002 003import org.kuali.ole.select.bo.OleAgreementDocumentMetadata; 004import org.kuali.ole.select.bo.OleLicenseRequestBo; 005 006import java.io.File; 007import java.util.Date; 008import java.util.List; 009import java.util.Map; 010 011/** 012 * Created with IntelliJ IDEA. 013 * User: JuliyaMonica.S 014 * Date: 8/2/12 015 * Time: 11:51 AM 016 * To change this template use File | Settings | File Templates. 017 */ 018public interface OleLicenseRequestService { 019 020 public List<OleAgreementDocumentMetadata> processIngestAgreementDocuments(List<OleAgreementDocumentMetadata> oleAgreementDocs); 021 022 public List<OleAgreementDocumentMetadata> processCheckInAgreementDocuments(List<OleAgreementDocumentMetadata> oleAgreementDocs); 023 024 public File downloadAgreementDocumentFromDocstore(OleAgreementDocumentMetadata oleAgreementDocumentMetadata); 025 026 public String getAgreementContent(String uuid); 027 028 public String ingestAgreementContent(String content); 029 030 public List<OleLicenseRequestBo> findLicenseRequestByCriteria(Map<String, String> criteria)throws Exception; 031 032 // public String getLicenseRequestByRequisitionDocNum(String reqDocNum); 033 034 public OleLicenseRequestBo getLicenseRequestFromDocumentContent(String documentContent); 035 036 public boolean deleteAgreementDocument(OleAgreementDocumentMetadata metadata); 037 038 public boolean validateDate (Date documentDate, String fromDate, String toDate)throws Exception; 039 040 public int getLicenseAttachments(String licenseId); 041}