public class LoanProcessor extends Object
Constructor and Description |
---|
LoanProcessor() |
Modifier and Type | Method and Description |
---|---|
OleLoanDocument |
addLoan(String patronBarcode,
String itemBarcode,
OleLoanDocument oleLoanDocument,
String operatorId)
Retrieved item object from docstore using itemid .Fetch location code,item available status from item object and
retrieve title from bib object.
|
String |
buildItemContent(Item oleItem)
This method creates and return itemContent using OleItem
|
String |
buildItemContentWithItemStatus(Item oleItem,
String itemStatus)
This method creates and return itemContent using OleItem
|
void |
buildSearchParams(SearchParams searchParams) |
List<OleLoanDocument> |
buildSearchResultsFields(SearchResponse searchResponse,
HashMap<String,Object> loanMap) |
boolean |
canEdit(String principalId) |
boolean |
canOverrideLoan(String principalId) |
void |
checkItemDamagedStatus(OleLoanDocument oleLoanDocument) |
Item |
checkItemStatusForItemBarcode(String itemBarcode) |
void |
checkOverdueExist(OleLoanDocument oleLoanDocument) |
boolean |
checkOverRidePermission(String principalId,
OleLoanForm oleLoanForm) |
boolean |
checkPatronBill(String patronId) |
boolean |
checkPendingRequestforItem(String itemUUID) |
boolean |
checkPermissionForRemoveNote(String principalId) |
void |
checkReplacementFineExist(OleLoanDocument oleLoanDocument) |
String |
convertDateToString(Date date,
String format)
This method is used to convert the date to string based on the given input format
|
String |
convertToString(Timestamp date) |
void |
createCirculationHistoryAndTemporaryHistoryRecords(OleLoanDocument oleLoanDocument) |
void |
deletePatronUserNote(String patronId,
String patronNoteTypeId) |
void |
deleteRequestRecord(OleDeliverRequestBo oleDeliverRequestBo) |
String |
generatePatronBillPayment(OleLoanDocument oleLoanDocument,
String feeTypeName,
BigDecimal fineAmount) |
protected Map<String,String> |
getAgendaContext(String agendaName)
This method returns agendaContext using agendaName.
|
BibliographicRecord |
getBibliographicRecord(String title,
String author) |
BibMarcRecord |
getBibMarcRecord(String title,
String author) |
OleBorrowerType |
getborrowerTypeName(String borrowerId)
This method returns BorrowerTypeName using borrowerId
|
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute.
|
CallNumber |
getCallNumber(OleLoanFastAdd oleLoanFastAdd) |
String |
getCircDesk() |
String |
getCircDeskId() |
OleDeliverRequestBo |
getCurrentQueue(String patronid,
String itemUuid) |
DataCarrierService |
getDataCarrierService() |
org.kuali.rice.core.api.datetime.DateTimeService |
getDateTimeService() |
OleCirculationDeskDetail |
getDefaultCirculationDesk(String principleId)
This method returns DefaultCirculationDesk using principleId
|
void |
getDefaultHoldingLocation(OleLoanDocument oleLoanDocument) |
DocstoreClientLocator |
getDocstoreClientLocator() |
DocstoreUtil |
getDocstoreUtil() |
org.kuali.rice.krms.api.engine.EngineResults |
getEngineResults(String agendaName,
HashMap<String,Object> termValues) |
OleHoldings |
getHoldingRecord(OleLoanFastAdd oleLoanFastAdd) |
String |
getItemCallNumber(CallNumber itemCallNumber,
CallNumber holdingCallNumber)
Retrieves Item call number.
|
String |
getItemCallNumber(Item oleItem,
String instanceUUID) |
ItemOlemlRecordProcessor |
getItemOlemlRecordProcessor() |
Item |
getItemPojo(String itemXml)
Converts item xml to item pojo.
|
Item |
getItemRecord(OleLoanFastAdd oleLoanFastAdd) |
String |
getItemStatus() |
HashMap<String,Integer> |
getItemTypeFromCurrentLoan(HashMap<String,Integer> itemTypeMap,
OleLoanDocument currentLoan) |
OleInstanceItemType |
getItemTypeIdByItemType(String itemTypeCode)
This method returns ItemTypeId using itemTypeName.
|
String |
getItemXML(String itemUUID)
Retrieves item xml using itemuuid.
|
OleLoanDocument |
getLoanDocument(String barcode,
String realPtrnBarcode,
boolean selfCheckOut,
boolean isProxyToRealPatron)
Retrieve information about patron name,borrorwer type and patron loaned items
|
OleLoanDocument |
getLoanDocumentsUsingItemIdAndPatronId(String itemId,
String patronId) |
Collection |
getLoanObjectFromDAOForRenewal(List<String> barcode,
String patronId) |
Collection |
getLoanObjectsFromDAO(List<OleLoanDocument> loanDocuments,
String patronId) |
List<String> |
getLoanUserList(List<String> loginUserList,
StringBuffer buffer) |
void |
getLocation(Item oleItem,
OleLoanDocument oleLoanDoc)
This method returns location details.
|
void |
getLocation(Item oleItem,
OleLoanDocument oleLoanDoc,
Item item)
This method returns location details.
|
void |
getLocationBySolr(SearchResultField searchResultField,
OleLoanDocument oleLoanDocument) |
String |
getLostDescription() |
String |
getLostPatronId() |
String |
getLostStatus() |
OleNoticeBo |
getNotice(OleLoanDocument oleLoanDocument) |
OleCirculationPolicyService |
getOleCirculationPolicyService()
Gets the oleCirculationPolicyService attribute.
|
OLEDeliverNoticeHelperService |
getOleDeliverNoticeHelperService() |
OleDeliverRequestDocumentHelperServiceImpl |
getOleDeliverRequestDocumentHelperService() |
String |
getOleFeeTypeCode(String typeCode) |
OleHoldings |
getOleHoldings(String instanceUUID)
Retrieves Holding Object for given instance UUID.
|
OleLoanDocumentDaoOjb |
getOleLoanDocumentDaoOjb() |
OleLoanDocument |
getOleLoanDocumentUsingItemBarcode(String itemBarcode) |
OleLoanDocument |
getOleLoanDocumentUsingItemUUID(String itemUuid) |
OlePatronDocument |
getOlePatronDocument(String patronId) |
OlePatronHelperService |
getOlePatronHelperService() |
String |
getParameter(String name) |
List<OleLoanDocument> |
getPatronLoanedItem(String patronId)
This method returns PatronLoanedItem using patronId
|
List<OleLoanDocument> |
getPatronLoanedItemBySolr(String patronId) |
String |
getPatronName(org.kuali.rice.kim.impl.identity.entity.EntityBo entityBo)
This method returns PatronName using entityBo
|
OleLoanDocument |
getPatronRenewalItem(String itemId)
This method returns PatronLoanedItem using itemId
|
List<OleDeliverRequestBo> |
getPatronRequestRecords(String patronId)
This method returns PatronRequestRecords using patronId
|
List<OleTemporaryCirculationHistory> |
getPatronTemporaryCirculationHistoryRecords(String patronId)
This method returns PatronTemporaryCirculationHistoryRecord using patronId
|
OleDeliverRequestBo |
getPrioritizedRequest(String itemUuid) |
protected Map<String,String> |
getSelectionContext(String contextName)
This method returns selectionContext using contextName.
|
String |
getUrl(String patronId)
This method will return url for view link in patron record.
|
boolean |
hasCirculationDesk(String principalId) |
void |
incrementNumberOfCirculations(OleLoanDocument oleLoanDocument) |
boolean |
isAuthorized(String principalId) |
boolean |
isClaimsReturnedItem(String itemBarcode,
OleLoanDocument oleLoanDocument) |
void |
isItemLoanedByDifferentPatron(OleLoanDocument oleLoanDocument) |
void |
isMissingPieceFlagActive(OleLoanDocument oleLoanDocument) |
boolean |
isValidCirculationDesk() |
boolean |
itemValidation(Item oleItem) |
OleLoanDocument |
overrideSaveLoanForRenewal(OleLoanDocument oleLoanDocument) |
String |
patronNameURL(String loginUser,
String patronId) |
void |
populateLocation(OleLoanDocument oleLoanDocument,
LocationLevel locationLevel)
Populate location and location levels.
|
void |
postLoan(Item oleItem)
This method invokes docStore to store item and returns itemRecordUpdateResponse.
|
OleLoanForm |
processLoan(OleLoanForm oleLoanForm,
OleLoanDocument oleLoanDocument) |
void |
removeCheckInNote(Item oleItem)
This method invokes docStore to remove check in note and store item.
|
OleLoanDocument |
retrieveByPatronAndItem(String patronId,
String itemBarcode) |
static void |
retrieveReferenceListOfObject(Object object,
List<String> attributeList) |
static void |
retrieveReferenceObject(Object object,
String attributeName) |
OleLoanDocument |
returnLoan(OleLoanDocument oleLoanDocument) |
OleLoanDocument |
returnLoan(String itemBarcode,
OleLoanDocument oleLoanDocument)
Return the loaned Items
|
void |
rollbackItemStatus(Item oleItem,
String itemStatus,
String itemBarcode) |
void |
saveLoan(OleLoanDocument oleLoanDocument)
persist the loan document and update item status to docstore.
|
void |
setBibInfo(OleLoanDocument oleLoanDocument) |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService) |
void |
setCircDeskId(String circDeskId) |
void |
setCircDeskLocationResolver(CircDeskLocationResolver circDeskLocationResolver) |
void |
setDataCarrierService(DataCarrierService dataCarrierService) |
void |
setDocstoreClientLocator(DocstoreClientLocator docstoreClientLocator) |
void |
setErrorFlagForItem(OleLoanDocument oleLoanDocument,
OleLoanForm oleLoanForm) |
void |
setErrorFlagForPatron(OleLoanDocument oleLoanDocument,
OleLoanForm oleLoanForm) |
void |
setItemOlemlRecordProcessor(ItemOlemlRecordProcessor itemOlemlRecordProcessor) |
void |
setItemStatus(String itemStatus) |
List<OleLoanDocument> |
setListValues(List<OleLoanDocument> loanList,
List<OleLoanDocument> existingLoanList,
boolean claimsFlag,
String claimsReturnNote,
boolean removeClaimsReturnFlag)
Compares the checked items from existing and current loan session and form a common list.
|
OleLoanDocument |
setLoan(OleLoanDocument oleLoanDocument)
This method sets Title,loan Status,loan approver,loan operator,borrowerLimit and Item Unavailable in Loan Document..
|
void |
setLostDescription(String lostDescription) |
void |
setLostPatronId(String lostPatronId) |
void |
setLostStatus(String lostStatus) |
void |
setOleCirculationPolicyService(OleCirculationPolicyService oleCirculationPolicyService) |
void |
setOleDeliverNoticeHelperService(OLEDeliverNoticeHelperService oleDeliverNoticeHelperService) |
void |
setOleDeliverRequestDocumentHelperService(OleDeliverRequestDocumentHelperServiceImpl oleDeliverRequestDocumentHelperService) |
void |
setOleLoanDocumentDaoOjb(OleLoanDocumentDaoOjb oleLoanDocumentDaoOjb) |
void |
setOlePatronHelperService(OlePatronHelperServiceImpl olePatronHelperService) |
List<OleLoanDocument> |
sortLoanDocumentByDueDate(List<OleLoanDocument> loanDocuments) |
Date |
tryParse(String[] formatStrings,
String dateString) |
void |
updateClaimsReturnedHistory(Item oleItem,
OleLoanDocument loanObject,
String patronId) |
void |
updateInTransitHistory(OleLoanDocument oleLoanDocument,
String routeToLocation) |
void |
updateItem(List<OleLoanDocument> loanList,
boolean claimsReturn,
boolean removeClaimsReturnFlag) |
void |
updateItemDamagedHistory(Item oleItem,
OleLoanDocument oleLoanDocument,
String patronId) |
void |
updateItemStatus(Item oleItem,
String itemStatus)
This method invokes docStore to store item and returns itemRecordUpdateResponse.
|
boolean |
updateLoan(List<OleLoanDocument> updateDueDate,
String patronId,
boolean claimsReturn,
boolean removeClaimsReturnFlag,
String borrowerCode)
Update loan due date in loan record.
|
void |
updateMissingPiecesItemInfo(OleLoanDocument oleLoanDocument) |
void |
updateReplacementFeeBill(OleLoanDocument oleLoanDocument)
This method is used to set the check-in date in the replacement fee bill generated throuigh batch job
|
OleItemAvailableStatus |
validateAndGetItemStatus(String itemStatusCode) |
void |
validateCalanderForCirculationDesk(String circulationDeskLocationId) |
public LoanProcessor()
public DataCarrierService getDataCarrierService()
public DocstoreUtil getDocstoreUtil()
public void setDataCarrierService(DataCarrierService dataCarrierService)
public DocstoreClientLocator getDocstoreClientLocator()
public ItemOlemlRecordProcessor getItemOlemlRecordProcessor()
public OleDeliverRequestDocumentHelperServiceImpl getOleDeliverRequestDocumentHelperService()
public OlePatronHelperService getOlePatronHelperService()
public void setOlePatronHelperService(OlePatronHelperServiceImpl olePatronHelperService)
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
public void setOleCirculationPolicyService(OleCirculationPolicyService oleCirculationPolicyService)
public void setOleDeliverRequestDocumentHelperService(OleDeliverRequestDocumentHelperServiceImpl oleDeliverRequestDocumentHelperService)
public void setDocstoreClientLocator(DocstoreClientLocator docstoreClientLocator)
public void setItemOlemlRecordProcessor(ItemOlemlRecordProcessor itemOlemlRecordProcessor)
public String getLostDescription()
public void setLostDescription(String lostDescription)
public String getLostStatus()
public void setLostStatus(String lostStatus)
public String getLostPatronId()
public void setLostPatronId(String lostPatronId)
public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public OleCirculationPolicyService getOleCirculationPolicyService()
public void setCircDeskLocationResolver(CircDeskLocationResolver circDeskLocationResolver)
public OleLoanDocument getLoanDocument(String barcode, String realPtrnBarcode, boolean selfCheckOut, boolean isProxyToRealPatron) throws Exception
barcode
- Exception
public OleBorrowerType getborrowerTypeName(String borrowerId)
borrowerId
- public String getPatronName(org.kuali.rice.kim.impl.identity.entity.EntityBo entityBo)
entityBo
- public List<OleLoanDocument> getPatronLoanedItem(String patronId) throws Exception
patronId
- Exception
public List<OleLoanDocument> sortLoanDocumentByDueDate(List<OleLoanDocument> loanDocuments)
public List<OleLoanDocument> getPatronLoanedItemBySolr(String patronId) throws Exception
Exception
public Item checkItemStatusForItemBarcode(String itemBarcode) throws Exception
Exception
public void rollbackItemStatus(Item oleItem, String itemStatus, String itemBarcode) throws Exception
Exception
public List<OleTemporaryCirculationHistory> getPatronTemporaryCirculationHistoryRecords(String patronId) throws Exception
patronId
- Exception
public List<OleDeliverRequestBo> getPatronRequestRecords(String patronId) throws Exception
patronId
- Exception
public String getItemCallNumber(Item oleItem, String instanceUUID) throws Exception
Exception
public String getItemCallNumber(CallNumber itemCallNumber, CallNumber holdingCallNumber) throws Exception
itemCallNumber,holdingCallNumber
- Exception
public String getItemXML(String itemUUID) throws Exception
itemUUID
- Exception
public Item getItemPojo(String itemXml) throws Exception
itemXml
- Exception
public void getDefaultHoldingLocation(OleLoanDocument oleLoanDocument) throws Exception
Exception
public OleLoanDocument addLoan(String patronBarcode, String itemBarcode, OleLoanDocument oleLoanDocument, String operatorId) throws Exception
patronBarcode
- itemBarcode
- oleLoanDocument
- Exception
public OleHoldings getOleHoldings(String instanceUUID) throws Exception
instanceUUID
- Exception
public org.kuali.rice.krms.api.engine.EngineResults getEngineResults(String agendaName, HashMap<String,Object> termValues) throws Exception
Exception
protected Map<String,String> getSelectionContext(String contextName) throws Exception
contextName
- Exception
protected Map<String,String> getAgendaContext(String agendaName) throws Exception
agendaName
- Exception
public OleInstanceItemType getItemTypeIdByItemType(String itemTypeCode) throws Exception
itemTypeCode
- Exception
public void getLocation(Item oleItem, OleLoanDocument oleLoanDoc) throws Exception
oleItem
- oleLoanDoc
- Exception
public void getLocation(Item oleItem, OleLoanDocument oleLoanDoc, Item item) throws Exception
oleItem
- oleLoanDoc
- Exception
public void populateLocation(OleLoanDocument oleLoanDocument, LocationLevel locationLevel) throws Exception
oleLoanDocument
- locationLevel
- Exception
public OleLoanDocument setLoan(OleLoanDocument oleLoanDocument) throws Exception
oleLoanDocument
- Exception
public void saveLoan(OleLoanDocument oleLoanDocument) throws Exception
oleLoanDocument
- Exception
public String convertDateToString(Date date, String format)
format
- date
- public String convertToString(Timestamp date)
public Collection getLoanObjectsFromDAO(List<OleLoanDocument> loanDocuments, String patronId)
public Collection getLoanObjectFromDAOForRenewal(List<String> barcode, String patronId)
public OleLoanDocument getLoanDocumentsUsingItemIdAndPatronId(String itemId, String patronId)
public boolean updateLoan(List<OleLoanDocument> updateDueDate, String patronId, boolean claimsReturn, boolean removeClaimsReturnFlag, String borrowerCode) throws Exception
updateDueDate
- Exception
public void updateItem(List<OleLoanDocument> loanList, boolean claimsReturn, boolean removeClaimsReturnFlag) throws Exception
Exception
public List<OleLoanDocument> setListValues(List<OleLoanDocument> loanList, List<OleLoanDocument> existingLoanList, boolean claimsFlag, String claimsReturnNote, boolean removeClaimsReturnFlag)
loanList
- existingLoanList
- claimsFlag
- claimsReturnNote
- public String buildItemContent(Item oleItem) throws Exception
oleItem
- Exception
public void postLoan(Item oleItem) throws Exception
oleItem
- Exception
public BibliographicRecord getBibliographicRecord(String title, String author)
public BibMarcRecord getBibMarcRecord(String title, String author)
public OleHoldings getHoldingRecord(OleLoanFastAdd oleLoanFastAdd)
public Item getItemRecord(OleLoanFastAdd oleLoanFastAdd)
public OleItemAvailableStatus validateAndGetItemStatus(String itemStatusCode)
public boolean canOverrideLoan(String principalId)
public boolean hasCirculationDesk(String principalId)
public String patronNameURL(String loginUser, String patronId)
public boolean checkOverRidePermission(String principalId, OleLoanForm oleLoanForm)
public boolean itemValidation(Item oleItem)
public void deletePatronUserNote(String patronId, String patronNoteTypeId) throws Exception
Exception
public OleLoanDocument returnLoan(String itemBarcode, OleLoanDocument oleLoanDocument) throws Exception
itemBarcode
- oleLoanDocument
- Exception
public OleDeliverRequestBo getPrioritizedRequest(String itemUuid)
public OleDeliverRequestBo getCurrentQueue(String patronid, String itemUuid) throws Exception
Exception
public String generatePatronBillPayment(OleLoanDocument oleLoanDocument, String feeTypeName, BigDecimal fineAmount)
public OleLoanDocument returnLoan(OleLoanDocument oleLoanDocument) throws Exception
Exception
public void incrementNumberOfCirculations(OleLoanDocument oleLoanDocument)
public void deleteRequestRecord(OleDeliverRequestBo oleDeliverRequestBo)
public void createCirculationHistoryAndTemporaryHistoryRecords(OleLoanDocument oleLoanDocument) throws Exception
Exception
public void updateItemStatus(Item oleItem, String itemStatus) throws Exception
oleItem
- itemStatus
- Exception
public void removeCheckInNote(Item oleItem) throws Exception
oleItem
- Exception
public String buildItemContentWithItemStatus(Item oleItem, String itemStatus) throws Exception
oleItem
- itemStatus
- Exception
public OleLoanDocument getOleLoanDocumentUsingItemUUID(String itemUuid)
public OleLoanDocument getOleLoanDocumentUsingItemBarcode(String itemBarcode)
public OlePatronDocument getOlePatronDocument(String patronId)
public OleLoanDocument getPatronRenewalItem(String itemId) throws Exception
itemId
- Exception
public void setBibInfo(OleLoanDocument oleLoanDocument) throws Exception
Exception
public String getUrl(String patronId)
public boolean checkPendingRequestforItem(String itemUUID)
public String getParameter(String name)
public OleLoanDocument overrideSaveLoanForRenewal(OleLoanDocument oleLoanDocument) throws Exception
Exception
public OleCirculationDeskDetail getDefaultCirculationDesk(String principleId)
principleId
- public boolean isValidCirculationDesk()
public boolean isAuthorized(String principalId)
public CallNumber getCallNumber(OleLoanFastAdd oleLoanFastAdd)
public boolean checkPermissionForRemoveNote(String principalId)
public OleNoticeBo getNotice(OleLoanDocument oleLoanDocument)
public String getCircDeskId()
public void setCircDeskId(String circDeskId)
public List<String> getLoanUserList(List<String> loginUserList, StringBuffer buffer)
public void setErrorFlagForItem(OleLoanDocument oleLoanDocument, OleLoanForm oleLoanForm)
public void setErrorFlagForPatron(OleLoanDocument oleLoanDocument, OleLoanForm oleLoanForm)
public String getCircDesk()
public void checkReplacementFineExist(OleLoanDocument oleLoanDocument)
public void checkOverdueExist(OleLoanDocument oleLoanDocument)
public String getOleFeeTypeCode(String typeCode)
public void isItemLoanedByDifferentPatron(OleLoanDocument oleLoanDocument)
public void checkItemDamagedStatus(OleLoanDocument oleLoanDocument)
public void isMissingPieceFlagActive(OleLoanDocument oleLoanDocument)
public boolean isClaimsReturnedItem(String itemBarcode, OleLoanDocument oleLoanDocument) throws Exception
Exception
public OleLoanForm processLoan(OleLoanForm oleLoanForm, OleLoanDocument oleLoanDocument) throws Exception
Exception
public void updateMissingPiecesItemInfo(OleLoanDocument oleLoanDocument) throws Exception
Exception
public HashMap<String,Integer> getItemTypeFromCurrentLoan(HashMap<String,Integer> itemTypeMap, OleLoanDocument currentLoan)
public boolean checkPatronBill(String patronId) throws Exception
Exception
public String getItemStatus()
public void setItemStatus(String itemStatus)
public void buildSearchParams(SearchParams searchParams)
public void getLocationBySolr(SearchResultField searchResultField, OleLoanDocument oleLoanDocument) throws Exception
Exception
public List<OleLoanDocument> buildSearchResultsFields(SearchResponse searchResponse, HashMap<String,Object> loanMap) throws Exception
Exception
public Date tryParse(String[] formatStrings, String dateString) throws ParseException
ParseException
public void updateReplacementFeeBill(OleLoanDocument oleLoanDocument)
oleLoanDocument
- public OleLoanDocumentDaoOjb getOleLoanDocumentDaoOjb()
public void setOleLoanDocumentDaoOjb(OleLoanDocumentDaoOjb oleLoanDocumentDaoOjb)
public void validateCalanderForCirculationDesk(String circulationDeskLocationId) throws Exception
Exception
public OleLoanDocument retrieveByPatronAndItem(String patronId, String itemBarcode) throws Exception
Exception
public OLEDeliverNoticeHelperService getOleDeliverNoticeHelperService()
public void setOleDeliverNoticeHelperService(OLEDeliverNoticeHelperService oleDeliverNoticeHelperService)
public void updateInTransitHistory(OleLoanDocument oleLoanDocument, String routeToLocation)
public org.kuali.rice.core.api.datetime.DateTimeService getDateTimeService()
public void updateClaimsReturnedHistory(Item oleItem, OleLoanDocument loanObject, String patronId)
public void updateItemDamagedHistory(Item oleItem, OleLoanDocument oleLoanDocument, String patronId)
public static void retrieveReferenceObject(Object object, String attributeName)
public static void retrieveReferenceListOfObject(Object object, List<String> attributeList)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.