public class DetailledItem extends java.lang.Object implements CoverHolder
Constructor and Description |
---|
DetailledItem() |
Modifier and Type | Method and Description |
---|---|
void |
addCopy(Copy copy)
Add a copy.
|
void |
addDetail(Detail detail)
Add a detail
|
void |
addVolume(Volume child)
Add a child item.
|
java.lang.String |
getBooking_info() |
java.lang.String |
getCollectionId()
Get the ID of the item which is a collection containing this item as a
child item
|
java.util.List<Copy> |
getCopies()
List of copies of this item available
|
java.lang.String |
getCover()
Get cover image URL
|
byte[] |
getCoverBitmap()
Get cover image bitmap
|
java.util.List<Detail> |
getDetails()
Set details (like author, summary, …).
|
java.lang.String |
getId()
Get unique media identifier
|
SearchResult.MediaType |
getMediaType() |
java.lang.String |
getReservation_info()
Get extra information stored to be returned to your
OpacApi.reservation(DetailledItem, Account, int, String)
implementation. |
java.lang.String |
getTitle()
Get media title
|
java.util.List<Volume> |
getVolumes()
List of child items (e.g. volumes of a series) available
|
java.util.Map<java.lang.String,java.lang.String> |
getVolumesearch()
Can return a
OpacApi.search(List) query
List for a volume search based on this item. |
boolean |
isBookable() |
boolean |
isReservable()
Returns whether it is possible to order this item through the app
|
void |
setBookable(boolean bookable) |
void |
setBooking_info(java.lang.String booking_info) |
void |
setCollectionId(java.lang.String collectionid)
Sets the ID of the item which is a collection containing this item as a
child item
|
void |
setCopies(java.util.List<Copy> copies)
Set list of copies of this item available
|
void |
setCover(java.lang.String cover)
Set cover image URL
|
void |
setCoverBitmap(byte[] coverBitmap)
Set cover image bitmap
|
void |
setId(java.lang.String id)
Set unique media identifier
|
void |
setMediaType(SearchResult.MediaType mediaType) |
void |
setReservable(boolean reservable)
Specifies whether it is possible to order this item through the app
|
void |
setReservation_info(java.lang.String reservation_info)
Set extra information stored to be returned to your
OpacApi.reservation(DetailledItem, Account, int, String)
implementation. |
void |
setTitle(java.lang.String title)
Set media title
|
void |
setVolumesearch(java.util.Map<java.lang.String,java.lang.String> volumesearch)
Sets a search query which is passed back to your
OpacApi.search(List)
implementation for a volume search based on this item- |
java.lang.String |
toString()
Returns all data stored in this object, serialized as a human-readable
string.
|
public java.lang.String getId()
public void setId(java.lang.String id)
id
- media IDpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
public byte[] getCoverBitmap()
getCoverBitmap
in interface CoverHolder
public void setCoverBitmap(byte[] coverBitmap)
setCoverBitmap
in interface CoverHolder
public java.lang.String getCover()
getCover
in interface CoverHolder
public void setCover(java.lang.String cover)
setCover
in interface CoverHolder
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<Detail> getDetails()
Detail
public java.util.List<Copy> getCopies()
addCopy(Copy)
public void setCopies(java.util.List<Copy> copies)
copies
- List of copiesaddCopy(Copy)
public java.util.List<Volume> getVolumes()
addVolume(Volume)
public void addCopy(Copy copy)
copy
- An object representing a copyDetail
public void addVolume(Volume child)
public java.util.Map<java.lang.String,java.lang.String> getVolumesearch()
OpacApi.search(List)
query
List
for a volume search based on this item.null
if not applicableDetail
public void setVolumesearch(java.util.Map<java.lang.String,java.lang.String> volumesearch)
OpacApi.search(List)
implementation for a volume search based on this item-volumesearch
- Search querypublic boolean isReservable()
true
if possible, false
otherwise.public void setReservable(boolean reservable)
public java.lang.String getReservation_info()
OpacApi.reservation(DetailledItem, Account, int, String)
implementation.public void setReservation_info(java.lang.String reservation_info)
OpacApi.reservation(DetailledItem, Account, int, String)
implementation.reservation_info
- Some custom information.public boolean isBookable()
public void setBookable(boolean bookable)
bookable
- Some custom information.public java.lang.String getBooking_info()
public void setBooking_info(java.lang.String booking_info)
booking_info
- Some custom information.public java.lang.String getCollectionId()
public void setCollectionId(java.lang.String collectionid)
collectionid
- the collectionid to setpublic SearchResult.MediaType getMediaType()
public void setMediaType(SearchResult.MediaType mediaType)
mediaType
- the media type to set