public class OleDocstoreHelperServiceImpl extends Object implements OleDocstoreHelperService
Constructor and Description |
---|
OleDocstoreHelperServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkCopyEntry(org.kuali.rice.core.api.util.type.KualiDecimal noOfCopies,
String location,
Integer itemCount,
org.kuali.rice.core.api.util.type.KualiDecimal noOfCopiesOrdered,
org.kuali.rice.core.api.util.type.KualiInteger noOfPartsOrdered,
List<OleCopies> copiesList,
String volumeNumber,
boolean isRoute) |
boolean |
checkForCopiesAndLocation(org.kuali.rice.core.api.util.type.KualiDecimal noOfCopies,
String location) |
boolean |
checkForItemCopiesGreaterThanQuantity(org.kuali.rice.core.api.util.type.KualiDecimal noOfCopies,
org.kuali.rice.core.api.util.type.KualiDecimal noOfCopiesOrdered) |
boolean |
checkForTotalCopiesGreaterThanQuantity(List<OleCopies> copyList,
org.kuali.rice.core.api.util.type.KualiDecimal noOfCopies,
org.kuali.rice.core.api.util.type.KualiDecimal noOfCopiesOrdered) |
boolean |
checkForTotalCopiesGreaterThanQuantityAtSubmit(List<OleCopies> copyList,
org.kuali.rice.core.api.util.type.KualiDecimal noOfCopiesOrdered) |
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(PurApItem item) |
String |
deleteDocstoreRecord(String docType,
String uuid) |
org.kuali.rice.core.api.config.property.ConfigurationService |
getConfigurationService() |
HashMap<String,List<OleCopy>> |
getCopyListBasedOnCopyNumber(List<OleCopy> copyList) |
HashMap<String,List<OleCopy>> |
getCopyListBasedOnLocation(List<OleCopy> copyList,
String bibId) |
String |
getDocstoreData(String uuid) |
String |
getItemLocations(String location) |
String |
getLocationLevelCode(OleCopy copy)
Populate location levels.
|
int |
getReceiptStatusDetails(String receiptStatusCd) |
String |
getResponseContent(Response response) |
WebClientService |
getWebClientService() |
WorkHoldingOlemlRecordProcessor |
getWorkHoldingOlemlRecordProcessor() |
WorkInstanceOlemlRecordProcessor |
getWorkInstanceOlemlRecordProcessor() |
String |
instanceRecordCallToDocstore(String content,
String uuid,
String format)
Method to generate Request XML and ingest Instance record to docstore
|
boolean |
isValidVolumeNumber(String volumeNumber,
String pattern) |
void |
performDocstoreUpdateForRequisitionAndPOItem(OlePurchaseOrderItem singleItem,
WorkBibDocument workBibDocument) |
WorkBibDocument |
performDocstoreUpdation(String itemTitleId,
WorkBibDocument workBibDocument) |
static String |
postData(String target,
String content) |
String |
rollbackData(String bibiUUID) |
void |
setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService) |
List<OleCopies> |
setCopiesToLineItem(List<OleCopy> copyList,
org.kuali.rice.core.api.util.type.KualiInteger noOfParts,
String bibId)
This method will set copies into list of copies for LineItem.
|
List<OleCopy> |
setCopyValues(OleRequisitionCopies itemCopy,
String bibId,
List<String> volChar)
This method takes RequisitionItem as parameter, it will calculate and set copyList
lineItem
|
List<OleCopy> |
setCopyValuesForList(List<OleCopies> itemCopies,
String bibId)
This method takes RequisitionItem as parameter, it will calculate and set copyList
lineItem
|
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) |
String |
updateOleHoldingToDocstore(OleHoldings oleHoldings) |
String |
updateOleItemToDocstore(Item item) |
void |
updateRequisitionAndPOItems(OlePurchaseOrderItem olePurchaseOrderItem,
OleLineItemReceivingItem oleLineItemReceivingItem,
OleCorrectionReceivingItem oleCorrectionReceivingItem,
boolean isReceiving) |
boolean |
volumeNumberValidation(Integer itemCount,
org.kuali.rice.core.api.util.type.KualiInteger noOfPartsOrdered,
String volumeNumber,
List<OleCopies> copiesList,
boolean isRoute) |
public OleDocstoreHelperServiceImpl()
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(OlePurchaseOrderItem singleItem, WorkBibDocument workBibDocument) throws Exception
Exception
public HashMap<String,List<OleCopy>> getCopyListBasedOnLocation(List<OleCopy> copyList, String bibId)
getCopyListBasedOnLocation
in interface OleDocstoreHelperService
public HashMap<String,List<OleCopy>> getCopyListBasedOnCopyNumber(List<OleCopy> copyList)
getCopyListBasedOnCopyNumber
in interface OleDocstoreHelperService
public Item setItemDetails(OleCopy oleCopy, String itemTypeDescription)
oleCopy
- itemTypeDescription
- public OleHoldings setHoldingDetails(OleCopy copy) throws Exception
copy
- Exception
public WorkBibDocument performDocstoreUpdation(String itemTitleId, WorkBibDocument workBibDocument) throws Exception
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 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(PurApItem item)
createOrUpdateDocStoreBasedOnLocation
in interface OleDocstoreHelperService
public List<OleCopies> setCopiesToLineItem(List<OleCopy> copyList, org.kuali.rice.core.api.util.type.KualiInteger noOfParts, String bibId)
setCopiesToLineItem
in interface OleDocstoreHelperService
copyList
- noOfParts
- public List<OleCopy> setCopyValues(OleRequisitionCopies itemCopy, String bibId, List<String> volChar)
setCopyValues
in interface OleDocstoreHelperService
itemCopy
- public List<OleCopy> setCopyValuesForList(List<OleCopies> itemCopies, String bibId)
setCopyValuesForList
in interface OleDocstoreHelperService
itemCopies
- public boolean checkCopyEntry(org.kuali.rice.core.api.util.type.KualiDecimal noOfCopies, String location, Integer itemCount, org.kuali.rice.core.api.util.type.KualiDecimal noOfCopiesOrdered, org.kuali.rice.core.api.util.type.KualiInteger noOfPartsOrdered, List<OleCopies> copiesList, String volumeNumber, boolean isRoute)
checkCopyEntry
in interface OleDocstoreHelperService
public boolean checkForCopiesAndLocation(org.kuali.rice.core.api.util.type.KualiDecimal noOfCopies, String location)
public boolean checkForItemCopiesGreaterThanQuantity(org.kuali.rice.core.api.util.type.KualiDecimal noOfCopies, org.kuali.rice.core.api.util.type.KualiDecimal noOfCopiesOrdered)
public boolean checkForTotalCopiesGreaterThanQuantity(List<OleCopies> copyList, org.kuali.rice.core.api.util.type.KualiDecimal noOfCopies, org.kuali.rice.core.api.util.type.KualiDecimal noOfCopiesOrdered)
public boolean checkForTotalCopiesGreaterThanQuantityAtSubmit(List<OleCopies> copyList, org.kuali.rice.core.api.util.type.KualiDecimal noOfCopiesOrdered)
checkForTotalCopiesGreaterThanQuantityAtSubmit
in interface OleDocstoreHelperService
public boolean volumeNumberValidation(Integer itemCount, org.kuali.rice.core.api.util.type.KualiInteger noOfPartsOrdered, String volumeNumber, List<OleCopies> copiesList, boolean isRoute)
public void updateRequisitionAndPOItems(OlePurchaseOrderItem olePurchaseOrderItem, OleLineItemReceivingItem oleLineItemReceivingItem, OleCorrectionReceivingItem oleCorrectionReceivingItem, boolean isReceiving)
updateRequisitionAndPOItems
in interface OleDocstoreHelperService
public int getReceiptStatusDetails(String receiptStatusCd)
public boolean isValidVolumeNumber(String volumeNumber, String pattern)
public String getLocationLevelCode(OleCopy copy) throws Exception
Exception
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.