public class OleDocstoreHelperServiceImpl extends Object implements OleDocstoreHelperService
Constructor and Description |
---|
OleDocstoreHelperServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Response |
createInstanceForBib(InstanceCollection instanceCollection) |
String |
createItemForInstanceRecord(String instanceUuid,
String docType,
String xmlContent)
Method to add NEW ITEM for existing Instance record
|
Response |
createItemToDocstore(String instanceUuid,
Item item) |
void |
createOrUpdateDocStoreBasedOnLocation(PurchaseOrderDocument document,
PurApItem item,
String currentDocumentTypeName,
String note) |
String |
deleteDocstoreRecord(String docType,
String uuid) |
org.kuali.rice.core.api.config.property.ConfigurationService |
getConfigurationService() |
DocstoreClientLocator |
getDocstoreClientLocator() |
String |
getDocstoreData(String uuid) |
Response |
getDocstoreResponse(String uuid) |
String |
getItemLocations(String location) |
String |
getLocationLevelCode(OleCopy copy)
Populate location levels.
|
String |
getResponseContent(Response response) |
WebClientService |
getWebClientService() |
List<BibTree> |
getWorkBibRecords(List<LinkedHashMap<String,String>> uuidsMapList) |
WorkHoldingOlemlRecordProcessor |
getWorkHoldingOlemlRecordProcessor() |
WorkInstanceOlemlRecordProcessor |
getWorkInstanceOlemlRecordProcessor() |
String |
instanceRecordCallToDocstore(String content,
String uuid,
String format)
Method to generate Request XML and ingest Instance record to docstore
|
boolean |
isValidLocation(String location) |
void |
performDocstoreUpdateForRequisitionAndPOItem(PurchaseOrderDocument purchaseOrderDocument,
OlePurchaseOrderItem singleItem,
BibTree bibTree,
String documentTypeName,
String note) |
static String |
postData(String target,
String content) |
String |
rollbackData(String bibiUUID) |
void |
setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService) |
OleHoldings |
setHoldingDetails(OleCopy copy)
/**
This method will set values to OleHoldings Object and returns it to update or create OleHoldings at Docstore.
|
Item |
setItemDetails(OleCopy oleCopy,
String itemTypeDescription)
This method will set values to Item Object and returns it to update or create Item at Docstore.
|
LocationLevel |
setLocationLevels(LocationLevel locationLevel,
String locationLevelCode,
String locationLevelName)
This method takes locationLevelCode and locationLevelName as parameters and split level name and returns as location level.
|
void |
setWebClientService(WebClientService webClientService) |
String |
updateInstanceRecord(String uuid,
String docType,
String xmlContent) |
String |
updateInstanceToDocstore(InstanceCollection instanceCollection) |
void |
updateItemLocation(PurchaseOrderDocument document,
PurApItem item) |
String |
updateOleHoldingToDocstore(OleHoldings oleHoldings) |
String |
updateOleItemToDocstore(Item item) |
public OleDocstoreHelperServiceImpl()
public DocstoreClientLocator getDocstoreClientLocator()
public String rollbackData(String bibiUUID)
rollbackData
in interface OleDocstoreHelperService
public org.kuali.rice.core.api.config.property.ConfigurationService getConfigurationService()
public void setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService)
public WebClientService getWebClientService()
public void setWebClientService(WebClientService webClientService)
public void performDocstoreUpdateForRequisitionAndPOItem(PurchaseOrderDocument purchaseOrderDocument, OlePurchaseOrderItem singleItem, BibTree bibTree, String documentTypeName, String note) throws Exception
Exception
public Item setItemDetails(OleCopy oleCopy, String itemTypeDescription)
oleCopy
- itemTypeDescription
- public OleHoldings setHoldingDetails(OleCopy copy) throws Exception
setHoldingDetails
in interface OleDocstoreHelperService
copy
- Exception
public String deleteDocstoreRecord(String docType, String uuid) throws IOException
IOException
public String instanceRecordCallToDocstore(String content, String uuid, String format) throws Exception
content
- uuid
- format
- Exception
public Response createInstanceForBib(InstanceCollection instanceCollection)
public String updateInstanceToDocstore(InstanceCollection instanceCollection) throws Exception
Exception
public WorkInstanceOlemlRecordProcessor getWorkInstanceOlemlRecordProcessor()
public String getDocstoreData(String uuid) throws Exception
Exception
public Response getDocstoreResponse(String uuid) throws Exception
Exception
public String getResponseContent(Response response)
public LocationLevel setLocationLevels(LocationLevel locationLevel, String locationLevelCode, String locationLevelName)
locationLevel
- locationLevelCode
- locationLevelName
- public Response createItemToDocstore(String instanceUuid, Item item)
public String updateOleHoldingToDocstore(OleHoldings oleHoldings) throws Exception
Exception
public String updateOleItemToDocstore(Item item) throws Exception
Exception
public WorkHoldingOlemlRecordProcessor getWorkHoldingOlemlRecordProcessor()
public String updateInstanceRecord(String uuid, String docType, String xmlContent) throws Exception
Exception
public static String postData(String target, String content) throws Exception
Exception
public String createItemForInstanceRecord(String instanceUuid, String docType, String xmlContent) throws Exception
instanceUuid
- docType
- xmlContent
- Exception
public String getItemLocations(String location)
public void createOrUpdateDocStoreBasedOnLocation(PurchaseOrderDocument document, PurApItem item, String currentDocumentTypeName, String note)
createOrUpdateDocStoreBasedOnLocation
in interface OleDocstoreHelperService
public List<BibTree> getWorkBibRecords(List<LinkedHashMap<String,String>> uuidsMapList) throws Exception
Exception
public String getLocationLevelCode(OleCopy copy) throws Exception
Exception
public void updateItemLocation(PurchaseOrderDocument document, PurApItem item)
updateItemLocation
in interface OleDocstoreHelperService
public boolean isValidLocation(String location)
isValidLocation
in interface OleDocstoreHelperService
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.