|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.ole.deliver.loan.LoanProcessor
public class LoanProcessor
The Loan Processor class acts between the controller and the service layers in delegating the appropriate service to the functions called from the controller.
Constructor Summary | |
---|---|
LoanProcessor()
|
Method Summary | |
---|---|
OleLoanDocument |
addLoan(String patronBarcode,
String itemBarcode,
OleLoanDocument oleLoanDocument)
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 |
boolean |
checkOverRidePermission(String principalId)
|
boolean |
checkPendingRequestforItem(String itemBarcode)
|
void |
createCirculationHistoryAndTemporaryHistoryRecords(OleLoanDocument oleLoanDocument)
|
LocationLevel |
createLocationLevel(String locationName,
LocationLevel locationLevel)
|
void |
deletePatronUserNote(String patronId,
String patronNoteTypeId)
|
void |
deleteRequestRecord(OleDeliverRequestBo oleDeliverRequestBo)
|
void |
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 |
getborrowerTypeName(String borrowerId)
This method returns BorrowerTypeName using borrowerId |
org.kuali.rice.krms.api.engine.EngineResults |
getEngineResults(String agendaName,
HashMap<String,Object> termValues)
|
OleHoldings |
getHoldingRecord(Item item)
|
String |
getItemCallNumber(CallNumber callNumber)
Retrieves Item call number. |
Map |
getItemDetails(String itemBarcode)
Retrieved Title name from docstore using itemid. |
Item |
getItemPojo(String itemXml)
Converts item xml to item pojo. |
Item |
getItemRecord(OleLoanFastAdd oleLoanFastAdd)
|
String |
getItemTypeFromItem(ItemType itemType)
|
String |
getItemValidationLocation(LocationLevel oleLocationLevel)
|
String |
getItemXML(String itemUUID)
Retrieves item xml using itemuuid. |
OleLoanDocument |
getLoanDocument(String barcode,
String realPtrnBarcode,
boolean selfCheckOut)
Retrieve information about patron name,borrorwer type and patron loaned items |
OleLocation |
getLocationByLocationId(String locationId)
This method returns Location using locationId. |
OleCirculationDesk |
getOleCirculationDesk(String id)
|
OleCirculationPolicyService |
getOleCirculationPolicyService()
Gets the oleCirculationPolicyService attribute. |
OleDeliverRequestDocumentHelperServiceImpl |
getOleDeliverRequestDocumentHelperService()
|
OleLoanDocument |
getOleLoanDocumentUsingItemBarcode(String itemBarcode)
|
void |
getOleLocationLevel(OleLoanDocument oleLoanDocument,
LocationLevel locationLevel)
Populate location levels. |
String |
getParameter(String name)
|
List<OleLoanDocument> |
getPatronLoanedItem(String patronId)
This method returns PatronLoanedItem using patronId |
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 |
protected Map<String,String> |
getSelectionContext(String contextName)
This method returns selectionContext using contextName. |
String |
getShelvingLocation(LocationLevel oleLocationLevel)
|
String |
getUrl(String patronId)
This method will return url for view link in patron record. |
boolean |
itemValidation(Item oleItem)
|
OleLoanDocument |
overrideSaveLoanForRenewal(OleLoanDocument oleLoanDocument)
|
void |
postLoan(Item oleItem)
This method invokes docStore to store item and returns itemRecordUpdateResponse. |
OleLoanDocument |
returnLoan(OleLoanDocument oleLoanDocument)
|
OleLoanDocument |
returnLoan(String itemBarcode,
OleLoanDocument oleLoanDocument)
Return the loaned Items |
void |
saveLoan(OleLoanDocument oleLoanDocument)
persist the loan document and update item status to docstore. |
void |
setBibInfo(OleLoanDocument oleLoanDocument)
|
List<OleLoanDocument> |
setListValues(List<OleLoanDocument> loanList,
List<OleLoanDocument> existingLoanList,
boolean claimsFlag,
String claimsReturnNote)
Compares the checked items from existing and current loan session and form a common list. |
void |
updateClaimsReturnedInLoanDocument(OleLoanDocument oleLoanDocument,
boolean claimsReturned)
|
void |
updateItemStatus(Item oleItem,
String itemStatus)
This method invokes docStore to store item and returns itemRecordUpdateResponse. |
void |
updateItemStatusWithMissingItem(OleLoanDocument oleLoanDocument)
|
void |
updateLoan(List<OleLoanDocument> updateDueDate)
Update loan due date in loan record. |
boolean |
validateFastAddItem(String barcode)
Check item barcode exist in docstore. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoanProcessor()
Method Detail |
---|
public OleDeliverRequestDocumentHelperServiceImpl getOleDeliverRequestDocumentHelperService()
public OleCirculationPolicyService getOleCirculationPolicyService()
public OleLoanDocument getLoanDocument(String barcode, String realPtrnBarcode, boolean selfCheckOut) throws Exception
barcode
-
Exception
public String getborrowerTypeName(String borrowerId)
borrowerId
-
public List<OleLoanDocument> getPatronLoanedItem(String patronId) throws Exception
patronId
-
Exception
public String getItemTypeFromItem(ItemType itemType)
public List<OleTemporaryCirculationHistory> getPatronTemporaryCirculationHistoryRecords(String patronId) throws Exception
patronId
-
Exception
public List<OleDeliverRequestBo> getPatronRequestRecords(String patronId) throws Exception
patronId
-
Exception
public Map getItemDetails(String itemBarcode) throws Exception
itemBarcode
-
Exception
public String getShelvingLocation(LocationLevel oleLocationLevel)
public String getItemCallNumber(CallNumber callNumber) throws Exception
callNumber
-
Exception
public String getItemXML(String itemUUID) throws Exception
itemUUID
-
Exception
public Item getItemPojo(String itemXml) throws Exception
itemXml
-
Exception
public OleLoanDocument addLoan(String patronBarcode, String itemBarcode, OleLoanDocument oleLoanDocument) throws Exception
patronBarcode
- itemBarcode
- oleLoanDocument
-
Exception
public boolean validateFastAddItem(String barcode) throws Exception
barcode
-
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 OleLocation getLocationByLocationId(String locationId) throws Exception
locationId
-
Exception
public void getOleLocationLevel(OleLoanDocument oleLoanDocument, LocationLevel locationLevel) throws Exception
oleLoanDocument
- locationLevel
-
Exception
public void saveLoan(OleLoanDocument oleLoanDocument) throws Exception
oleLoanDocument
-
Exception
public void updateLoan(List<OleLoanDocument> updateDueDate) throws Exception
updateDueDate
-
Exception
public List<OleLoanDocument> setListValues(List<OleLoanDocument> loanList, List<OleLoanDocument> existingLoanList, boolean claimsFlag, String claimsReturnNote)
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)
public LocationLevel createLocationLevel(String locationName, LocationLevel locationLevel)
public OleHoldings getHoldingRecord(Item item)
public Item getItemRecord(OleLoanFastAdd oleLoanFastAdd)
public boolean checkOverRidePermission(String principalId)
public boolean itemValidation(Item oleItem)
public String getItemValidationLocation(LocationLevel oleLocationLevel)
public void deletePatronUserNote(String patronId, String patronNoteTypeId) throws Exception
Exception
public OleLoanDocument returnLoan(String itemBarcode, OleLoanDocument oleLoanDocument) throws Exception
itemBarcode
- oleLoanDocument
-
Exception
public OleCirculationDesk getOleCirculationDesk(String id)
public void generatePatronBillPayment(OleLoanDocument oleLoanDocument, String feeTypeName, BigDecimal fineAmount)
public OleLoanDocument returnLoan(OleLoanDocument oleLoanDocument) throws Exception
Exception
public void deleteRequestRecord(OleDeliverRequestBo oleDeliverRequestBo)
public void createCirculationHistoryAndTemporaryHistoryRecords(OleLoanDocument oleLoanDocument)
public void updateItemStatus(Item oleItem, String itemStatus) throws Exception
oleItem
- itemStatus
-
Exception
public String buildItemContentWithItemStatus(Item oleItem, String itemStatus) throws Exception
oleItem
- itemStatus
-
Exception
public OleLoanDocument getOleLoanDocumentUsingItemBarcode(String itemBarcode)
public void updateItemStatusWithMissingItem(OleLoanDocument oleLoanDocument) throws Exception
Exception
public OleLoanDocument getPatronRenewalItem(String itemId) throws Exception
itemId
-
Exception
public void setBibInfo(OleLoanDocument oleLoanDocument) throws Exception
Exception
public void updateClaimsReturnedInLoanDocument(OleLoanDocument oleLoanDocument, boolean claimsReturned)
public String getUrl(String patronId)
public boolean checkPendingRequestforItem(String itemBarcode)
public String getParameter(String name)
public OleLoanDocument overrideSaveLoanForRenewal(OleLoanDocument oleLoanDocument) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |