Package io.goobi.viewer.managedbeans
Class UserDataBean
java.lang.Object
io.goobi.viewer.managedbeans.UserDataBean
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeleteSearchAction
(Search search) Deletes the given persistent user search.long
getBookmarkListsForUser
(User user, int numEntries) long
getLatestActivity
(User user, int numEntries) getLatestComments
(User user, int numEntries) Getter for the fieldlazyModelAnnotations
.long
getNumAnnotations
(User user) long
getNumBookmarkLists
(User user) long
getNumComments
(User user) long
getNumSearches
(User user) getSearches
(User user, Integer numEntries) Returns saved searches for the logged in user.void
init()
Initialize all campaigns as lazily loaded listvoid
setBreadcrumbBean
(UserBean userBean) Required setter for ManagedProperty injection
-
Constructor Details
-
UserDataBean
public UserDataBean()
-
-
Method Details
-
setBreadcrumbBean
Required setter for ManagedProperty injection- Parameters:
userBean
- the userBean to set
-
init
Initialize all campaigns as lazily loaded list- Throws:
DAOException
-
getSearches
Returns saved searches for the logged in user.- Parameters:
user
-numEntries
-- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getAnnotations
- Returns:
- List of annotations for the logged in user
- Throws:
DAOException
-
deleteSearchAction
Deletes the given persistent user search.- Parameters:
search
- aSearch
object.- Returns:
- a
String
object. - Throws:
DAOException
- if any.
-
getLazyModelAnnotations
Getter for the field
lazyModelAnnotations
.- Returns:
- the lazyModelAnnotations
-
getLazyModelComments
-
getNumBookmarkLists
- Throws:
DAOException
-
getNumSearches
- Throws:
DAOException
-
getNumComments
- Parameters:
user
-- Returns:
- Number of comments in the DB for the given user
- Throws:
DAOException
-
getNumAnnotations
- Throws:
DAOException
-
getNumRecordsWithComments
- Throws:
DAOException
-
getAnnotationCount
- Throws:
DAOException
-
getCommentCount
- Throws:
DAOException
-
getLatestComments
- Parameters:
user
-numEntries
-- Returns:
- List of comments for the given user
- Throws:
DAOException
-
getBookmarkListsForUser
- Throws:
DAOException
-
getLatestActivity
- Throws:
DAOException
-