public class OleDeliverRequestDocumentHelperServiceImpl extends Object
Constructor and Description |
---|
OleDeliverRequestDocumentHelperServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Date |
addDate(Date in,
int daysToAdd) |
void |
buildSearchParams(SearchParams searchParams) |
List<OleLoanDocument> |
buildSearchResultsFields(SearchResponse searchResponse,
Map<String,OleLoanDocument> loanDocumentMap)
This method is used to set the values from the docstore response
|
void |
cancelDocument(OleDeliverRequestBo oleDeliverRequestBo)
This method is used to cancel the request document using ASR/NCIP.
|
void |
cancelPendingRequestForClaimsReturnedItem(String itemUuid) |
List<OleNoticeBo> |
cancelRequestForItem(String itemUuid,
String patronId)
Build the cancellation notice template.
|
boolean |
canRaiseRequest(OleDeliverRequestBo oleDeliverRequestBo)
This method is to check whether the selected request can be raised for the item
|
boolean |
checkForOverdueNotice(Date expDate) |
List<String> |
convertArrayToList(String[] array) |
void |
deleteRequest(String requestId,
String itemUUID,
String operatorId,
String loanTransactionNumber,
String reuestOutCome) |
void |
deleteTemporaryHistoryRecord() |
void |
deleteTitleLevelIndividualRequests(OleDeliverRequestBo oleDeliverRequestBo) |
void |
deletingExpiredRequests() |
boolean |
deliverAddressExist(String patronId) |
org.kuali.rice.krms.api.engine.EngineResults |
executeEngineResults(OleDeliverRequestBo oleDeliverRequestBo) |
org.kuali.rice.krms.api.engine.EngineResults |
executeEngineResultsForOverride(OleDeliverRequestBo oleDeliverRequestBo) |
void |
generateCourtesyNotice() |
void |
generateHoldCourtesyNotice() |
void |
generateLostNotice() |
void |
generateNoticeForOverdueAndCourtesy(String patronId,
List<OleLoanDocument> oleLoanDocuments,
boolean overdue,
List<String> itemUUIDS) |
void |
generateNotices() |
void |
generateOnHoldNotice() |
void |
generateOnHoldNoticesBasedOnPickupLocation(String pickupLocationId) |
void |
generateOverdueNotice() |
OleDeliverRequestBo |
generateRecallNotice(OleDeliverRequestBo oleDeliverRequestBo) |
void |
generateRequestExpirationNotice() |
protected Map<String,String> |
getAgendaContext(String agendaName)
This method returns AgendaContext using agendaName..
|
String |
getAvailableDate(String itemBarcode) |
DataCarrierService |
getDataCarrierService() |
org.kuali.rice.core.api.datetime.DateTimeService |
getDateTimeService() |
DocstoreClientLocator |
getDocstoreClientLocator() |
DocstoreUtil |
getDocstoreUtil() |
org.kuali.rice.krms.api.engine.EngineResults |
getEngineResults(String agendaName,
HashMap<String,Object> termValues) |
String |
getIntervalForCourtesyNotice() |
String |
getIntervalForOverdueNotice() |
OleItemSearch |
getItemDetails(String itemUUID)
This for retrieving the item Details from docstore
|
OleItemSearch |
getItemDetailsForPatron(String itemUUID)
This method is for retrieving the item details for displaying in the patron screen
|
ItemOlemlRecordProcessor |
getItemOlemlRecordProcessor() |
Map<String,List<String>> |
getItemStatusBasedOnRequestTypeMap() |
String |
getItemTypeCodeByName(String itemTypeName) |
List<String> |
getList(String[] arrays) |
List<OleLoanDocument> |
getLoanDocumentWithItemInfo(List<OleLoanDocument> oleLoanDocuments)
This method is used to set the item information in the loan documents
|
LoanProcessor |
getLoanProcessor() |
Map<String,String> |
getMap(String[] arrays) |
OleCirculationDesk |
getOleCirculationDesk(String circulationDeskId) |
OleCirculationPolicyService |
getOleCirculationPolicyService()
Gets the oleCirculationPolicyService attribute.
|
OLEDeliverNoticeHelperService |
getOleDeliverNoticeHelperService() |
OleDeliverRequestBo |
getOleDeliverRequestBo(String itemUUID) |
OlePatronHelperService |
getOlePatronHelperService() |
String |
getParameter(String name) |
List |
getPatronDocumentByPatronBarcode(String patronBarcode) |
List<OleDeliverRequestBo> |
getRequestByItem(String itemBarcode) |
List<OleDeliverRequestBo> |
getRequestedItems(String olePatronId)
This is for retrieving the request raised by the patron
|
protected Map<String,String> |
getSelectionContext(String contextName)
This method returns SelectionContext using contextName.
|
String |
getShelvingLocation(LocationLevel oleLocationLevel) |
boolean |
isAlreadyLoaned(OleDeliverRequestBo oleDeliverRequestBo)
This is to check whether the requested item is currently in loan to the requesting patron
|
boolean |
isItemAvailable(OleDeliverRequestBo oleDeliverRequestBo)
This is to check whether the item is available in the desk or not
|
boolean |
isItemAvailableForLoan(OleDeliverRequestBo oleDeliverRequestBo)
This is to check whether the item is available in the desk or not
|
boolean |
isItemAvailbleInDocstore(OleDeliverRequestBo oleDeliverRequestBo)
Thsi method is to check whether the item is available in doc store or not
|
boolean |
isItemEligible(OleDeliverRequestBo oleDeliverRequestBo)
This is to check whether the item is eligible to loan
|
boolean |
isRequestAlreadyRaisedByPatron(OleDeliverRequestBo oleDeliverRequestBo)
This is to check whether the request is already raised by the patron for this item
|
boolean |
isRequestRaised(OleDeliverRequestBo oleDeliverRequestBo)
This is to check whether any request raised for the item
|
boolean |
isValidProxyPatron(OleDeliverRequestBo oleDeliverRequestBo)
This is to check whether the login patron is the proxy patron for the real patron
|
String |
overridePlaceRequest(String patronBarcode,
String operatorId,
String itemBarcode,
String requestType,
String pickUpLocation,
String itemIdentifier,
String itemLocation,
String itemType,
String title,
String author,
String callNumber,
boolean externalItem,
String bibId,
String requestLevel,
Date requestExpiryDate) |
String |
patronRecordExpired(OleDeliverRequestBo oleDeliverRequestBo)
This is to check whether the patron record is alive or expired
|
String |
placeRequest(String patronBarcode,
String operatorId,
String itemBarcode,
String requestType,
String pickUpLocation,
String itemIdentifier,
String itemLocation,
String itemType,
String title,
String author,
String callNumber,
boolean externalItem,
String bibId,
String requestLevel,
Date requestExpiryDate) |
Holdings |
populateInfoFromInstanceHoldingToDocHoldings(OleHoldings oleHoldings,
Holdings holdings) |
Item |
populateInfoFromInstanceItemToDocItem(Item instanceItem,
Item documentItem) |
OleDeliverRequestBo |
populateItemDetailsToRequest(OleDeliverRequestBo oleDeliverRequestBo,
OleItemSearch oleItemSearch) |
OleDeliverRequestBo |
processItem(OleDeliverRequestBo oleDeliverRequestBo)
This method is to set the item values from docstore
|
OleDeliverRequestBo |
processItemType(OleDeliverRequestBo oleDeliverRequestBo)
This method is to set the item type name based on the item type code
|
String |
processItemType(String itemType) |
boolean |
processOperator(String principalId) |
OleDeliverRequestBo |
processPatron(OleDeliverRequestBo oleDeliverRequestBo)
This is to create a new patron object if the user enters the operator Id manually
|
OleDeliverRequestBo |
processRequester(OleDeliverRequestBo oleDeliverRequestBo)
This for setting the null values for the unselected requester
|
OleDeliverRequestBo |
processRequestType(OleDeliverRequestBo oleDeliverRequestBo)
This method is used to change the request type based on selection of pick up location
|
OleDeliverRequestBo |
reOrderQueuePosition(OleDeliverRequestBo oleDeliverRequestBo)
This method is to re-order the queuePosition based on the priority while creating the request
|
Map |
retrieveBIbItemHoldingData(String itemUUID) |
Item |
retrieveItemWithBibAndHoldingData(String itemUUID) |
void |
saveOLEDeliverNoticeHistory(OleLoanDocument oleLoanDocument) |
void |
sendCancelNotice(List<OleNoticeBo> oleNoticeBos)
send the email to respective patron.
|
void |
sendMailsToPatron(OlePatronDocument olePatronDocument,
String noticeContent,
String fromAddress) |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService) |
void |
setCircDeskLocationResolver(CircDeskLocationResolver circDeskLocationResolver) |
void |
setDocstoreClientLocator(DocstoreClientLocator docstoreClientLocator) |
void |
setDocstoreUtil(DocstoreUtil docstoreUtil) |
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService) |
void |
setLoanProcessor(LoanProcessor loanProcessor) |
void |
setOleDeliverNoticeHelperService(OLEDeliverNoticeHelperService oleDeliverNoticeHelperService) |
void |
setOleLoanDocumentsFromSolrBuilder(OleLoanDocumentsFromSolrBuilder oleLoanDocumentsFromSolrBuilder) |
void |
setOlePatronHelperService(OlePatronHelperServiceImpl olePatronHelperService) |
List |
splitListToSubList(List<OleLoanDocument> parentList,
int childListSize) |
void |
updateItem(Item oleItem)
This method is to update the item
|
void |
updateItem(Item oleItem,
String itemUuid) |
OleDeliverRequestBo |
updateLoanDocument(OleDeliverRequestBo oleDeliverRequestBo)
racle
This method is to update the request id in the loan document
|
boolean |
validateDeliveryPrivilege(OleDeliverRequestBo oleDeliverRequestBo)
This is to check whether the patron is having delivery privilege or not
|
OlePatronDocument |
validateGeneralChecks(OlePatronDocument olePatronDocument) |
boolean |
validatePagingPrivilege(OleDeliverRequestBo oleDeliverRequestBo)
This is to check whether the patron is having paging privilege or not
|
String |
validateQueuePosition(List<OleDeliverRequestBo> itemList)
This is to check the duplicate in the queue Position while re -ordering
|
boolean |
validateRequestType(OleDeliverRequestBo oleDeliverRequestBo)
This is to check whether the pick up location is selected for the hold type of Request
|
public OleDeliverRequestDocumentHelperServiceImpl()
public org.kuali.rice.core.api.datetime.DateTimeService getDateTimeService()
public void setCircDeskLocationResolver(CircDeskLocationResolver circDeskLocationResolver)
public DocstoreClientLocator getDocstoreClientLocator()
public OlePatronHelperService getOlePatronHelperService()
public void setOlePatronHelperService(OlePatronHelperServiceImpl olePatronHelperService)
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
public void setLoanProcessor(LoanProcessor loanProcessor)
public void setDocstoreUtil(DocstoreUtil docstoreUtil)
public void setDocstoreClientLocator(DocstoreClientLocator docstoreClientLocator)
public DocstoreUtil getDocstoreUtil()
public LoanProcessor getLoanProcessor()
public ItemOlemlRecordProcessor getItemOlemlRecordProcessor()
public OLEDeliverNoticeHelperService getOleDeliverNoticeHelperService()
public void setOleDeliverNoticeHelperService(OLEDeliverNoticeHelperService oleDeliverNoticeHelperService)
public OleCirculationPolicyService getOleCirculationPolicyService()
public OleDeliverRequestBo processRequestType(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public OleDeliverRequestBo processPatron(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public boolean processOperator(String principalId)
public boolean validateRequestType(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public boolean validateDeliveryPrivilege(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public boolean validatePagingPrivilege(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public OleDeliverRequestBo processRequester(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public boolean isValidProxyPatron(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public boolean isRequestAlreadyRaisedByPatron(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public boolean isAlreadyLoaned(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public boolean isItemAvailable(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public boolean isItemAvailableForLoan(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public boolean isItemEligible(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public String patronRecordExpired(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public List<OleDeliverRequestBo> getRequestedItems(String olePatronId)
olePatronId
- public String validateQueuePosition(List<OleDeliverRequestBo> itemList)
itemList
- public boolean isRequestRaised(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public void cancelDocument(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public List<OleNoticeBo> cancelRequestForItem(String itemUuid, String patronId) throws Exception
itemUuid
- patronId
- Exception
public void sendCancelNotice(List<OleNoticeBo> oleNoticeBos) throws Exception
oleNoticeBos
- Exception
public void cancelPendingRequestForClaimsReturnedItem(String itemUuid) throws Exception
Exception
public OleDeliverRequestBo processItem(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public OleDeliverRequestBo processItemType(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public boolean canRaiseRequest(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public OleDeliverRequestBo updateLoanDocument(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public void deleteRequest(String requestId, String itemUUID, String operatorId, String loanTransactionNumber, String reuestOutCome)
requestId
- itemUUID
- operatorId
- loanTransactionNumber
- public void deleteTitleLevelIndividualRequests(OleDeliverRequestBo oleDeliverRequestBo)
public OleItemSearch getItemDetails(String itemUUID)
itemUUID
- public OleItemSearch getItemDetailsForPatron(String itemUUID)
itemUUID
- public OleDeliverRequestBo reOrderQueuePosition(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public boolean isItemAvailbleInDocstore(OleDeliverRequestBo oleDeliverRequestBo)
oleDeliverRequestBo
- public OleDeliverRequestBo populateItemDetailsToRequest(OleDeliverRequestBo oleDeliverRequestBo, OleItemSearch oleItemSearch)
public OleDeliverRequestBo generateRecallNotice(OleDeliverRequestBo oleDeliverRequestBo) throws Exception
Exception
public void generateOnHoldNoticesBasedOnPickupLocation(String pickupLocationId) throws Exception
Exception
public void generateOnHoldNotice() throws Exception
Exception
public void generateRequestExpirationNotice() throws Exception
Exception
public void deletingExpiredRequests()
public OleDeliverRequestBo getOleDeliverRequestBo(String itemUUID)
public void generateNotices() throws Exception
Exception
public void generateLostNotice() throws Exception
Exception
public void generateCourtesyNotice() throws Exception
Exception
public void generateOverdueNotice() throws Exception
Exception
public void generateNoticeForOverdueAndCourtesy(String patronId, List<OleLoanDocument> oleLoanDocuments, boolean overdue, List<String> itemUUIDS)
public void generateHoldCourtesyNotice() throws Exception
Exception
public void deleteTemporaryHistoryRecord() throws Exception
Exception
public void updateItem(Item oleItem, String itemUuid) throws Exception
Exception
public String getShelvingLocation(LocationLevel oleLocationLevel)
public String getIntervalForCourtesyNotice()
public String getIntervalForOverdueNotice()
public String processItemType(String itemType)
public String placeRequest(String patronBarcode, String operatorId, String itemBarcode, String requestType, String pickUpLocation, String itemIdentifier, String itemLocation, String itemType, String title, String author, String callNumber, boolean externalItem, String bibId, String requestLevel, Date requestExpiryDate)
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
public String overridePlaceRequest(String patronBarcode, String operatorId, String itemBarcode, String requestType, String pickUpLocation, String itemIdentifier, String itemLocation, String itemType, String title, String author, String callNumber, boolean externalItem, String bibId, String requestLevel, Date requestExpiryDate)
public String getAvailableDate(String itemBarcode)
public org.kuali.rice.krms.api.engine.EngineResults executeEngineResults(OleDeliverRequestBo oleDeliverRequestBo)
public org.kuali.rice.krms.api.engine.EngineResults executeEngineResultsForOverride(OleDeliverRequestBo oleDeliverRequestBo)
protected Map<String,String> getSelectionContext(String contextName)
contextName
- protected Map<String,String> getAgendaContext(String agendaName)
agendaName
- public OleCirculationDesk getOleCirculationDesk(String circulationDeskId)
public boolean checkForOverdueNotice(Date expDate)
public Item retrieveItemWithBibAndHoldingData(String itemUUID)
public Item populateInfoFromInstanceItemToDocItem(Item instanceItem, Item documentItem)
public Holdings populateInfoFromInstanceHoldingToDocHoldings(OleHoldings oleHoldings, Holdings holdings)
public Map retrieveBIbItemHoldingData(String itemUUID)
public void sendMailsToPatron(OlePatronDocument olePatronDocument, String noticeContent, String fromAddress)
public List<OleLoanDocument> getLoanDocumentWithItemInfo(List<OleLoanDocument> oleLoanDocuments) throws Exception
oleLoanDocuments
- Exception
public List<OleLoanDocument> buildSearchResultsFields(SearchResponse searchResponse, Map<String,OleLoanDocument> loanDocumentMap) throws Exception
searchResponse
- loanDocumentMap
- Exception
public void setOleLoanDocumentsFromSolrBuilder(OleLoanDocumentsFromSolrBuilder oleLoanDocumentsFromSolrBuilder)
public String getItemTypeCodeByName(String itemTypeName)
public void updateItem(Item oleItem) throws Exception
oleItem
- Exception
public List splitListToSubList(List<OleLoanDocument> parentList, int childListSize)
public void buildSearchParams(SearchParams searchParams)
public void saveOLEDeliverNoticeHistory(OleLoanDocument oleLoanDocument)
public Map<String,List<String>> getItemStatusBasedOnRequestTypeMap()
public boolean deliverAddressExist(String patronId) throws Exception
Exception
public List getPatronDocumentByPatronBarcode(String patronBarcode) throws Exception
Exception
public String getParameter(String name)
public DataCarrierService getDataCarrierService()
public OlePatronDocument validateGeneralChecks(OlePatronDocument olePatronDocument) throws Exception
Exception
public org.kuali.rice.krms.api.engine.EngineResults getEngineResults(String agendaName, HashMap<String,Object> termValues) throws Exception
Exception
public List<OleDeliverRequestBo> getRequestByItem(String itemBarcode)
public List<String> convertArrayToList(String[] array)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.