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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addGroupShare
(UserGroup group) add user group to list and saveboolean
add bookshelf to list and saveint
Descending order by dateUpdated.boolean
void
Generates 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
.int
getNumItems.getOwner()
Getter for the fieldowner
.getOwnerName.getPublicString.Getter for the fieldshareKey
.boolean
hasDescription.int
hashCode()
boolean
boolean
isIsPublic.boolean
isMayEdit.boolean
isMayView.boolean
long
boolean
removeGroupShare
(UserGroup group) remove user group from list and saveboolean
removeItem
(Bookmark item) remove bookshelf from list and savevoid
Removes the share key.void
setDateUpdated
(LocalDateTime dateUpdated) void
setDescription
(String description) Setter for the fielddescription
.void
setGroupShares
(List<UserGroup> groupShares) Setter for the fieldgroupShares
.void
Setter for the fieldid
.void
setIsPublic
(boolean isPublic) Setter for the fieldisPublic
.void
Setter for the fielditems
.void
Setter for the fieldname
.void
Setter for the fieldowner
.void
setShareKey
(String shareKey) Setter for the fieldshareKey
.static void
sortBookmarkLists
(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:
compareTo
in interfaceComparable<BookmarkList>
-
addItem
add bookshelf to list and save- Parameters:
item
- aBookmark
object.- Returns:
- boolean if list changed
-
removeItem
remove bookshelf from list and save- Parameters:
item
- aBookmark
object.- 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
String
object.
-
isMayView
isMayView.
- Parameters:
user
- aUser
object.- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
isMayEdit
isMayEdit.
- Parameters:
user
- aUser
object.- 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
String
object.
-
getMiradorJsonObject
public String getMiradorJsonObject(String applicationRoot, String restApiUrl) throws ViewerConfigurationException, IndexUnreachableException, PresentationException getMiradorJsonObject.
- Parameters:
applicationRoot
- aString
object.restApiUrl
-- Returns:
- a
String
object. - Throws:
ViewerConfigurationException
- if any.IndexUnreachableException
- if any.PresentationException
- if any.
-
getLegacyManifestUrl
- Parameters:
pi
-- Returns:
- Generated URL
-
getFilterQuery
getFilterQuery.
- Returns:
- a
String
object.
-
getIIIFCollectionURI
getIIIFCollectionURI.
- Returns:
- a
String
object.
-
getEscapedName
- Returns:
- the URL encoded name
-
isOwnedBy
-
numItemsWithoutImages
public long numItemsWithoutImages() -
sortBookmarkLists
- Parameters:
bookmarkLists
-
-