public class DocstoreHelperService extends Object
Constructor and Description |
---|
DocstoreHelperService() |
public DocstoreHelperService()
public DocstoreClientLocator getDocstoreClientLocator()
public InstanceOlemlRecordProcessor getInstanceOlemlRecordProcessor()
public HoldingOlemlRecordProcessor getHoldingOlemlRecordProcessor()
public String persistToDocstoreForEditor(String content, String uuid, String format) throws Exception
Exception
public String persistToDocstoreFromUnifiedEditor(String reqContent, String uuid, String format) throws Exception
Exception
public String persistToDocstoreWithAdditionalAttributesForEditor(String content, AdditionalAttributes additionalAttributes, String uuid, String format) throws Exception
Exception
public String persistNewToDocstoreForIngest(BibliographicRecord bibliographicRecord, List<ProfileAttributeBo> profileAttributes) throws Exception
Exception
public String persistNewToDocstoreForIngest(LineItemOrder lineItemOrder, BibliographicRecord bibliographicRecord, List<ProfileAttributeBo> profileAttributes) throws Exception
Exception
public String getDocstoreData(String uuid) throws Exception
Exception
public String getDocstoreData(String docCategory, String docType, String docFormat, String uuid) throws Exception
Exception
public ResponseDocument checkOutDocument(String docCategory, String docType, String docFormat, String uuid) throws Exception
Exception
public String getResponseContent(Response response)
public static String postData(String target, String content) throws Exception
Exception
public String buildReuestDocXMLForIngest(String bibXML, String instanceXML)
public String getInstanceXML(BibliographicRecord bibliographicRecord)
public String getInstanceXML(LineItemOrder lineItemOrder, BibliographicRecord bibliographicRecord)
public OleHoldings getOleHolding(BibliographicRecord bibliographicRecord)
public Item getOleItem(BibliographicRecord bibliographicRecord)
public Item getOleItem(LineItemOrder lineItemOrder, BibliographicRecord bibliographicRecord)
public void rollbackData(String xmlForRollback) throws Exception
Exception
public String updateItem(BibliographicRecord bibliographicRecord, String itemUUID)
public String buildReuestDocXMLForUpdate(String itemXML, String itemUUID)
public String instanceRecordCallToDocstore(String content, String uuid, String format) throws Exception
content
- uuid
- format
- Exception
public String updateInstanceRecord(String uuid, String docType, String xmlContent) throws Exception
uuid
- docType
- xmlContent
- Exception
public String updateInstanceRecord(String uuid, String docType, String xmlContent, AdditionalAttributes additionalAttributes) throws Exception
Exception
public String deleteInstanceRecord(Instance instance) throws Exception
instance
- Exception
public String deleteDocstoreRecord(String uuid) throws Exception
uuid
- Exception
public String createItemForInstanceRecord(String instanceUuid, String docType, String xmlContent) throws Exception
instanceUuid
- docType
- xmlContent
- Exception
public String createItemForInstanceRecord(String instanceUuid, String docType, String xmlContent, AdditionalAttributes additionalAttributes) throws Exception
Exception
public void transferInstances(String requestXML) throws Exception
Exception
public String transferItems(String requestXML) throws Exception
Exception
public String deleteItemrecord(String uuid) throws Exception
Exception
public WorkBibDocument getInfoForBibTree(WorkBibDocument workBibDocument)
public List<WorkBibDocument> getInfoForBibTree(List<WorkBibDocument> bibDocumentList)
public BibliographicRecord getBibliographicRecord(String bibUUID) throws Exception
Exception
public InstanceCollection getInstanceCollection(String instanceUUID) throws Exception
Exception
public String updateInstanceToDocstore(InstanceCollection instanceCollection) throws Exception
Exception
public String updateOleHoldingToDocstore(OleHoldings oleHoldings) throws Exception
Exception
public String updateOleItemToDocstore(Item item) throws Exception
Exception
public String persistNewToDocstoreForIngest(BibliographicRecord bibliographicRecord, Item item, OleHoldings oleHoldings)
public Item getItemPojo(String itemXml) throws Exception
itemXml
- Exception
public String getItemXML(String itemUUID) throws Exception
itemUUID
- Exception
public OleHoldings getOleHoldings(String instanceUUID) throws Exception
instanceUUID
- Exception
public boolean isItemAvailableInDocStore(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public List<OleItemSearch> getOleItemSearchList(Map<String,String> searchCriteria)
public DocumentConfig getDocumentConfigObj()
public boolean checkItemStatus(List<String> uuids, List<String> fieldValueList) throws org.apache.solr.client.solrj.SolrServerException
uuids
- fieldValueList
- org.apache.solr.client.solrj.SolrServerException
public boolean checkItemStatusForInstances(List<String> instanceIds, List<String> fieldValueList) throws org.apache.solr.client.solrj.SolrServerException
instanceIds
- fieldValueList
- org.apache.solr.client.solrj.SolrServerException
public List<OLEInstanceSearch> getOleInstanceSearchList(Map<String,String> searchCriteria)
public void getInstanceLocation(OLEInstanceSearch instanceSearch)
public String getContentFromDocStore(String uuid) throws IOException
IOException
public String buildRequestIdsForDelete(List bibIdsList)
public Response performRestFulOperation(String docCategory, String docType, String docFormat, String ids) throws Exception
Exception
public RequestDocument buildRequestDocument(String bibXML, String uuid)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.