public class ReservedItem extends AccountItem
Constructor and Description |
---|
ReservedItem() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBookingData() |
java.lang.String |
getBranch() |
java.lang.String |
getCancelData() |
org.joda.time.LocalDate |
getExpirationDate() |
org.joda.time.LocalDate |
getReadyDate() |
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 |
setBookingData(java.lang.String bookingData)
Set internal identifier which will be supplied to your
.apis.EbookServiceApi#booking(DetailledItem,
Account, int, String) implementation when the user wants to book the order. |
void |
setBranch(java.lang.String branch)
Set library branch an item is ordered to.
|
void |
setCancelData(java.lang.String cancelData)
Set internal identifier which will be supplied to your
.apis.OpacApi#cancel(String,
Account, int, String) implementation when the user wants to cancel the order. |
void |
setExpirationDate(org.joda.time.LocalDate expirationDate)
Set date of expiration.
|
void |
setExpirationDate(java.lang.String expirationDate)
Set date of expiration in ISO-8601 format (yyyy-MM-dd).
|
void |
setReadyDate(org.joda.time.LocalDate readyDate)
Set expected date for an ordered item to arrive.
|
void |
setReadyDate(java.lang.String readyDate)
Set expected date for an ordered item to arrive in ISO-8601 format (yyyy-MM-dd).
|
getAccount, getAuthor, getDbId, getFormat, getId, getStatus, getTitle, setAccount, setAuthor, setDbId, setFormat, setId, setStatus, setTitle
public org.joda.time.LocalDate getReadyDate()
public void setReadyDate(java.lang.String readyDate)
public void setReadyDate(org.joda.time.LocalDate readyDate)
public org.joda.time.LocalDate getExpirationDate()
public void setExpirationDate(java.lang.String expirationDate)
public void setExpirationDate(org.joda.time.LocalDate expirationDate)
public java.lang.String getBranch()
public void setBranch(java.lang.String branch)
public java.lang.String getCancelData()
OpacApi.cancel(String, Account, int, String)
implementation
when the user wants to cancel the order. Cancel button won't be displayed if this is not
set.public void setCancelData(java.lang.String cancelData)
.apis.OpacApi#cancel(String,
Account, int, String)
implementation when the user wants to cancel the order. Cancel button
won't be displayed if this is not set.public java.lang.String getBookingData()
EbookServiceApi.booking(DetailledItem, Account, int, String)
implementation when the user wants to book the order. Booking button won't be displayed if
this is not set.public void setBookingData(java.lang.String bookingData)
.apis.EbookServiceApi#booking(DetailledItem,
Account, int, String)
implementation when the user wants to book the order. Booking button
won't be displayed if this is not set.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".