|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.ole.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 |
protected Map<String,String> |
getAgendaContext(String agendaName)
This method returns agendaContext using agendaName. |
String |
getborrowerTypeName(String borrowerId)
This method returns BorrowerTypeName using borrowerId |
org.kuali.rice.krms.api.engine.EngineResults |
getEngineResults(String agendaName,
HashMap<String,Object> termValues)
|
Map |
getItemDetails(String itemBarcode)
Retrieved Title name from docstore using itemid. |
OleLoanDocument |
getLoanDocument(String barcode)
Retrieve information about patron name,borrorwer type and patron loaned items |
OleLoanDocument |
getLocationLevel(OleLoanDocument oleLoanDoc,
LocationLevel locationLevel)
Based on Shelving location from item xml, value for location levels are retrieved. |
int |
getNoOfItemsLoaned(String olePatronId)
This method returns number of items loaned for a particular patron id. |
OleCirculationPolicyService |
getOleCirculationPolicyService()
Gets the oleCirculationPolicyService attribute. |
OleLoanDocument |
getOleLocationLevel(OleLoanDocument oleLoanDocument,
LocationLevel locationLevel)
|
List<OleLoanDocument> |
getPatronLoanedItem(String patronId)
This method returns PatronLoanedItem using patronId |
protected Map<String,String> |
getSelectionContext(String contextName)
This method returns selectionContext using contextName. |
void |
postLoan(Item oleItem)
This method invokes docStore to store item and returns itemRecordUpdateResponse. |
void |
saveLoan(OleLoanDocument oleLoanDocument)
persist the loan document and update item status to 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 OleCirculationPolicyService getOleCirculationPolicyService()
public OleLoanDocument getLoanDocument(String barcode)
throws Exception
barcode -
Exceptionpublic String getborrowerTypeName(String borrowerId)
borrowerId -
public List<OleLoanDocument> getPatronLoanedItem(String patronId)
throws Exception
patronId -
Exception
public Map getItemDetails(String itemBarcode)
throws Exception
itemBarcode -
Exception
public OleLoanDocument addLoan(String patronBarcode,
String itemBarcode,
OleLoanDocument oleLoanDocument)
throws Exception
patronBarcode - itemBarcode - oleLoanDocument -
Exceptionpublic int getNoOfItemsLoaned(String olePatronId)
olePatronId -
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 OleLoanDocument getOleLocationLevel(OleLoanDocument oleLoanDocument,
LocationLevel locationLevel)
throws Exception
Exception
public OleLoanDocument getLocationLevel(OleLoanDocument oleLoanDoc,
LocationLevel locationLevel)
throws Exception
oleLoanDoc - locationLevel -
Exception
public void saveLoan(OleLoanDocument oleLoanDocument)
throws Exception
oleLoanDocument -
Exception
public String buildItemContent(Item oleItem)
throws Exception
oleItem -
Exception
public void postLoan(Item oleItem)
throws Exception
oleItem -
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||