public class LentItem extends AccountItem
Constructor and Description |
---|
LentItem() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBarcode() |
org.joda.time.LocalDate |
getDeadline() |
java.lang.String |
getDownloadData() |
java.lang.String |
getHomeBranch() |
java.lang.String |
getLendingBranch() |
java.lang.String |
getProlongData() |
boolean |
isEbook() |
boolean |
isRenewable() |
void |
set(java.lang.String key,
java.lang.String value)
Set property using the following keys: LentItem: barcode, returndate, homebranch,
lendingbranch, prolongurl, renewable, download
ReservedItem: availability, expirationdate, branch, cancelurl, bookingurl
Both: title, author, format, id, status
|
void |
setBarcode(java.lang.String barcode)
Set barcode/unique identifier of a lent item.
|
void |
setDeadline(org.joda.time.LocalDate deadline)
Set return date for a lent item.
|
void |
setDeadline(java.lang.String deadline)
Set return date for a lent item in ISO-8601 format (yyyy-MM-dd).
|
void |
setDownloadData(java.lang.String downloadData)
Set internal identifier which will be supplied to your
.apis.EbookServiceApi#downloadItem(Account,
String) implementation for download. |
void |
setEbook(boolean ebook)
Set whether this item is an eBook.
|
void |
setHomeBranch(java.lang.String homeBranch)
Set library branch the item belongs to.
|
void |
setLendingBranch(java.lang.String lendingBranch)
Set library branch the item was lent from.
|
void |
setProlongData(java.lang.String prolongData)
Set internal identifier which will be supplied to your
.apis.OpacApi#prolong(String,
Account, int, String) implementation for prolonging. |
void |
setRenewable(boolean renewable)
Set whether this item is renewable.
|
getAccount, getAuthor, getDbId, getFormat, getId, getStatus, getTitle, setAccount, setAuthor, setDbId, setFormat, setId, setStatus, setTitle
public java.lang.String getBarcode()
public void setBarcode(java.lang.String barcode)
public org.joda.time.LocalDate getDeadline()
public void setDeadline(java.lang.String deadline)
public void setDeadline(org.joda.time.LocalDate deadline)
public java.lang.String getHomeBranch()
public void setHomeBranch(java.lang.String homeBranch)
public java.lang.String getLendingBranch()
public void setLendingBranch(java.lang.String lendingBranch)
public java.lang.String getProlongData()
OpacApi.prolong(String, Account, int, String)
implementation
for prolonging. Button for prolonging will only be displayed if this is set.public void setProlongData(java.lang.String prolongData)
.apis.OpacApi#prolong(String,
Account, int, String)
implementation for prolonging. Button for prolonging will only be
displayed if this is set.public boolean isRenewable()
public void setRenewable(boolean renewable)
public java.lang.String getDownloadData()
EbookServiceApi.downloadItem(Account, String)
implementation
for download. Button for download will only be displayed if this is set.public void setDownloadData(java.lang.String downloadData)
.apis.EbookServiceApi#downloadItem(Account,
String)
implementation for download. Button for download will only be displayed if this is
set.public boolean isEbook()
public void setEbook(boolean ebook)
public void set(java.lang.String key, java.lang.String value)
AccountItem
set
in class AccountItem
key
- one of the keys mentioned abovevalue
- the value to set. Dates must be in ISO-8601 format (yyyy-MM-dd) and booleans as
"Y"/"N".