Package io.goobi.viewer.model.bookmark
Class BookmarkList
java.lang.Object
io.goobi.viewer.model.bookmark.BookmarkList
- All Implemented Interfaces:
Serializable,Comparable<BookmarkList>
BookmarkList class.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddGroupShare(UserGroup group) add user group to list and savebooleanadd bookshelf to list and saveintDescending order by dateUpdated.booleanvoidGenerates a persistent share key for public sharing via link.Returns a Solr query that would retrieve the Solr documents representing the items listed on this bookshelf.Getter for the fielddescription.getFilterQuery.Getter for the fieldgroupShares.getId()Getter for the fieldid.getIIIFCollectionURI.getItems()Getter for the fielditems.getMiradorJsonObject(String applicationRoot, String restApiUrl) getMiradorJsonObject.getName()Getter for the fieldname.intgetNumItems.getOwner()Getter for the fieldowner.getOwnerName.getPublicString.Getter for the fieldshareKey.booleanhasDescription.inthashCode()booleanbooleanisIsPublic.booleanisMayEdit.booleanisMayView.booleanlongbooleanremoveGroupShare(UserGroup group) remove user group from list and savebooleanremoveItem(Bookmark item) remove bookshelf from list and savevoidRemoves the share key.voidsetDateUpdated(LocalDateTime dateUpdated) voidsetDescription(String description) Setter for the fielddescription.voidsetGroupShares(List<UserGroup> groupShares) Setter for the fieldgroupShares.voidSetter for the fieldid.voidsetIsPublic(boolean isPublic) Setter for the fieldisPublic.voidSetter for the fielditems.voidSetter for the fieldname.voidSetter for the fieldowner.voidsetShareKey(String shareKey) Setter for the fieldshareKey.static voidsortBookmarkLists(List<BookmarkList> bookmarkLists)
-
Field Details
-
MIRADOR_LIB_PATH
- See Also:
-
-
Constructor Details
-
BookmarkList
public BookmarkList()
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
compareTo
Descending order by dateUpdated.- Specified by:
compareToin interfaceComparable<BookmarkList>
-
addItem
add bookshelf to list and save- Parameters:
item- aBookmarkobject.- Returns:
- boolean if list changed
-
removeItem
remove bookshelf from list and save- Parameters:
item- aBookmarkobject.- Returns:
- boolean if list changed
-
generateSolrQueryForItems
Returns a Solr query that would retrieve the Solr documents representing the items listed on this bookshelf.- Returns:
- a
Stringobject.
-
isMayView
isMayView.
- Parameters:
user- aUserobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
isMayEdit
isMayEdit.
- Parameters:
user- aUserobject.- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
getId
Getter for the field
id.- Returns:
- the id
-
setId
Setter for the field
id.- Parameters:
id- the id to set
-
getName
Getter for the field
name.- Returns:
- the name
-
setName
Setter for the field
name.- Parameters:
name- the name to set
-
getDescription
Getter for the field
description.- Returns:
- the description
-
setDescription
Setter for the field
description.- Parameters:
description- the description to set
-
hasDescription
public boolean hasDescription()hasDescription.
- Returns:
- a boolean.
-
getOwner
Getter for the field
owner.- Returns:
- the owner
-
setOwner
Setter for the field
owner.- Parameters:
owner- the owner to set
-
isIsPublic
public boolean isIsPublic()isIsPublic.
- Returns:
- the isPublic
-
getPublicString
getPublicString.
- Returns:
- the isPublic Value as a String
surrounded with ()
-
setIsPublic
public void setIsPublic(boolean isPublic) Setter for the field
isPublic.- Parameters:
isPublic- the isPublic to set
-
getDateUpdated
- Returns:
- the dateUpdated
-
setDateUpdated
- Parameters:
dateUpdated- the dateUpdated to set
-
getNumItems
public int getNumItems()getNumItems.
- Returns:
- Number of items
-
getItems
Getter for the field
items.- Returns:
- the items
-
setItems
Setter for the field
items.- Parameters:
items- the items to set
-
getOwnerName
getOwnerName.
- Returns:
- a
Stringobject.
-
getMiradorJsonObject
public String getMiradorJsonObject(String applicationRoot, String restApiUrl) throws ViewerConfigurationException, IndexUnreachableException, PresentationException getMiradorJsonObject.
- Parameters:
applicationRoot- aStringobject.restApiUrl-- Returns:
- a
Stringobject. - Throws:
ViewerConfigurationException- if any.IndexUnreachableException- if any.PresentationException- if any.
-
getLegacyManifestUrl
- Parameters:
pi-- Returns:
- Generated URL
-
getFilterQuery
getFilterQuery.
- Returns:
- a
Stringobject.
-
getIIIFCollectionURI
getIIIFCollectionURI.
- Returns:
- a
Stringobject.
-
getEscapedName
- Returns:
- the URL encoded name
-
isOwnedBy
-
numItemsWithoutImages
public long numItemsWithoutImages() -
sortBookmarkLists
- Parameters:
bookmarkLists-
-