org.kuali.ole.editor.service
Class DocstoreHelperService

java.lang.Object
  extended by org.kuali.ole.editor.service.DocstoreHelperService

public class DocstoreHelperService
extends Object

DocstoreHelperService is the service class to access Docstore services


Constructor Summary
DocstoreHelperService()
           
 
Method Summary
 String buildReuestDocXMLForIngest(String bibXML, String instanceXML)
           
 String createItemForInstanceRecord(String instanceUuid, String docType, String xmlContent)
          Method to add NEW ITEM for existing Instance record
 String deleteInstanceRecord(Instance instance)
          This method used to delete a instance record
 String deleteItemrecord(String uuid)
           
 String getDocstoreData(String uuid)
           
 String getInstanceXML(BibliographicRecord bibliographicRecord)
           
 OleHoldings getOleHolding()
           
 Item getOleItem(BibliographicRecord bibliographicRecord)
           
 String instanceRecordCallToDocstore(String content, String uuid, String format)
          Method to generate Request XML and ingest Instance record to docstore
 String persistNewToDocstoreForIngest(BibliographicRecord bibliographicRecord, List<ProfileAttributeBo> profileAttributes)
           
 String persistToDocstoreForEditor(String content, String uuid, String format)
           
static String postData(String target, String content)
           
 void rollbackData(String xmlForRollback)
           
 String updateInstanceRecord(String uuid, String docType, String xmlContent)
          Method to update Holding or Item record of an Instance record
 String updateItem(BibliographicRecord bibliographicRecord, String itemUUID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocstoreHelperService

public DocstoreHelperService()
Method Detail

persistToDocstoreForEditor

public String persistToDocstoreForEditor(String content,
                                         String uuid,
                                         String format)
                                  throws Exception
Throws:
Exception

persistNewToDocstoreForIngest

public String persistNewToDocstoreForIngest(BibliographicRecord bibliographicRecord,
                                            List<ProfileAttributeBo> profileAttributes)
                                     throws Exception
Throws:
Exception

getDocstoreData

public String getDocstoreData(String uuid)
                       throws Exception
Throws:
Exception

postData

public static String postData(String target,
                              String content)
                       throws Exception
Throws:
Exception

buildReuestDocXMLForIngest

public String buildReuestDocXMLForIngest(String bibXML,
                                         String instanceXML)

getInstanceXML

public String getInstanceXML(BibliographicRecord bibliographicRecord)

getOleHolding

public OleHoldings getOleHolding()

getOleItem

public Item getOleItem(BibliographicRecord bibliographicRecord)

rollbackData

public void rollbackData(String xmlForRollback)
                  throws Exception
Throws:
Exception

updateItem

public String updateItem(BibliographicRecord bibliographicRecord,
                         String itemUUID)

instanceRecordCallToDocstore

public String instanceRecordCallToDocstore(String content,
                                           String uuid,
                                           String format)
                                    throws Exception
Method to generate Request XML and ingest Instance record to docstore

Parameters:
content -
uuid -
format -
Returns:
Docstore response for Ingesting New Instance Record
Throws:
Exception

updateInstanceRecord

public String updateInstanceRecord(String uuid,
                                   String docType,
                                   String xmlContent)
                            throws Exception
Method to update Holding or Item record of an Instance record

Parameters:
uuid -
docType -
xmlContent -
Returns:
Docstore XML response with success/failure status
Throws:
Exception

deleteInstanceRecord

public String deleteInstanceRecord(Instance instance)
                            throws Exception
This method used to delete a instance record

Parameters:
instance -
Returns:
Throws:
Exception

createItemForInstanceRecord

public String createItemForInstanceRecord(String instanceUuid,
                                          String docType,
                                          String xmlContent)
                                   throws Exception
Method to add NEW ITEM for existing Instance record

Parameters:
instanceUuid -
docType -
xmlContent -
Returns:
Docstore XML response with success/failure status
Throws:
Exception

deleteItemrecord

public String deleteItemrecord(String uuid)
                        throws Exception
Throws:
Exception


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