org.kuali.ole.service.impl
Class OleLicenseRequestServiceImpl

java.lang.Object
  extended by org.kuali.ole.service.impl.OleLicenseRequestServiceImpl
All Implemented Interfaces:
OleLicenseRequestService

public class OleLicenseRequestServiceImpl
extends Object
implements OleLicenseRequestService

OleLicenseRequestServiceImpl builds the Xml for the Agreement Document ingest operation.


Constructor Summary
OleLicenseRequestServiceImpl()
           
 
Method Summary
 boolean deleteAgreementDocument(OleAgreementDocumentMetadata metadata)
          This method will delete the Agreement Document Content from the docstore
 File downloadAgreementDocumentFromDocstore(OleAgreementDocumentMetadata oleAgreementDocumentMetadata)
          This method downloads the agreement document from the docStore based on uuid.
 List<OleLicenseRequestBo> findLicenseRequestByCriteria(Map<String,String> criteria)
          This method returns the License request documents based on the criterias map
 String getAgreementContent(String uuid)
          This method returns the agreement content for the given uniqueId
 String getLicenseRequestByRequisitionDocNum(String reqDocNum)
          This method returns the license request documentNum for the given requisition documet number
 String ingestAgreementContent(String content)
          This method returns the uuid by ingesting the agreement content to the docstore
static List<File> postDataForLicense(String target, File zipFile)
          This method creates the multipart entity based on zipfile and sent to the target location,
 List<OleAgreementDocumentMetadata> processCheckInAgreementDocuments(List<OleAgreementDocumentMetadata> oleAgreementDocs)
          This method creates the zipped Bag file which contains the requestXml and the File to be updated to the docStore and process the response file to get the uuid (after the checkin).
 List<OleAgreementDocumentMetadata> processIngestAgreementDocuments(List<OleAgreementDocumentMetadata> oleAgreementDocs)
          This method creates the zipped Bag file which contains the requestXml and the File to be uploaded to the docStore and process the response file to get the uuid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OleLicenseRequestServiceImpl

public OleLicenseRequestServiceImpl()
Method Detail

postDataForLicense

public static List<File> postDataForLicense(String target,
                                            File zipFile)
                                     throws Exception
This method creates the multipart entity based on zipfile and sent to the target location,

Parameters:
target -
zipFile -
Returns:
List
Throws:
Exception

processIngestAgreementDocuments

public List<OleAgreementDocumentMetadata> processIngestAgreementDocuments(List<OleAgreementDocumentMetadata> oleAgreementDocs)
This method creates the zipped Bag file which contains the requestXml and the File to be uploaded to the docStore and process the response file to get the uuid.

Specified by:
processIngestAgreementDocuments in interface OleLicenseRequestService
Parameters:
oleAgreementDocs -
Returns:
List

processCheckInAgreementDocuments

public List<OleAgreementDocumentMetadata> processCheckInAgreementDocuments(List<OleAgreementDocumentMetadata> oleAgreementDocs)
This method creates the zipped Bag file which contains the requestXml and the File to be updated to the docStore and process the response file to get the uuid (after the checkin).

Specified by:
processCheckInAgreementDocuments in interface OleLicenseRequestService
Parameters:
oleAgreementDocs -
Returns:
List

downloadAgreementDocumentFromDocstore

public File downloadAgreementDocumentFromDocstore(OleAgreementDocumentMetadata oleAgreementDocumentMetadata)
This method downloads the agreement document from the docStore based on uuid.

Specified by:
downloadAgreementDocumentFromDocstore in interface OleLicenseRequestService
Parameters:
oleAgreementDocumentMetadata -
Returns:
File

ingestAgreementContent

public String ingestAgreementContent(String content)
This method returns the uuid by ingesting the agreement content to the docstore

Specified by:
ingestAgreementContent in interface OleLicenseRequestService
Parameters:
content -
Returns:
uuid

getAgreementContent

public String getAgreementContent(String uuid)
This method returns the agreement content for the given uniqueId

Specified by:
getAgreementContent in interface OleLicenseRequestService
Parameters:
uuid -
Returns:
agreementContent

findLicenseRequestByCriteria

public List<OleLicenseRequestBo> findLicenseRequestByCriteria(Map<String,String> criteria)
This method returns the License request documents based on the criterias map

Specified by:
findLicenseRequestByCriteria in interface OleLicenseRequestService
Parameters:
criteria -
Returns:
licenseRequestList

getLicenseRequestByRequisitionDocNum

public String getLicenseRequestByRequisitionDocNum(String reqDocNum)
This method returns the license request documentNum for the given requisition documet number

Specified by:
getLicenseRequestByRequisitionDocNum in interface OleLicenseRequestService
Parameters:
reqDocNum -
Returns:
licenseRequestDocNum

deleteAgreementDocument

public boolean deleteAgreementDocument(OleAgreementDocumentMetadata metadata)
This method will delete the Agreement Document Content from the docstore

Specified by:
deleteAgreementDocument in interface OleLicenseRequestService
Parameters:
metadata - * @return boolean


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.