Package io.goobi.viewer.managedbeans
Class UserDataBean
java.lang.Object
io.goobi.viewer.managedbeans.UserDataBean
- All Implemented Interfaces:
Serializable
UserDataBean class.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteSearchAction(Search search) Deletes the given persistent user search.longgetAnnotationCount.getAnnotations.getBookmarkListsForUser(User user, int numEntries) getBookmarkListsForUser.longGetter for the fieldcommentCount.getLatestActivity(User user, int numEntries) getLatestActivity.getLatestComments(User user, int numEntries) getLatestComments.Getter for the fieldlazyModelAnnotations.Getter for the fieldlazyModelComments.longgetNumAnnotations(User user) getNumAnnotations.longgetNumBookmarkLists(User user) getNumBookmarkLists.longgetNumComments(User user) getNumComments.getNumRecordsWithComments.longgetNumSearches(User user) getNumSearches.getSearches(User user, Integer numEntries) Returns saved searches for the logged in user.voidinit()Initialize all campaigns as lazily loaded listvoidsetBreadcrumbBean(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- aUserobjectnumEntries- aIntegerobject- Returns:
- a
Listobject. - Throws:
DAOException- if any.
-
getAnnotations
getAnnotations.
- Returns:
- List of annotations for the logged in user
- Throws:
DAOException
-
deleteSearchAction
Deletes the given persistent user search.- Parameters:
search- aSearchobject.- Returns:
- a
Stringobject. - Throws:
DAOException- if any.
-
getLazyModelAnnotations
Getter for the field
lazyModelAnnotations.- Returns:
- the lazyModelAnnotations
-
getLazyModelComments
Getter for the field
lazyModelComments.- Returns:
- a
TableDataProviderobject
-
getNumBookmarkLists
getNumBookmarkLists.
- Parameters:
user- aUserobject- Returns:
- a long
- Throws:
DAOException- if any.
-
getNumSearches
getNumSearches.
- Parameters:
user- aUserobject- Returns:
- a long
- Throws:
DAOException- if any.
-
getNumComments
getNumComments.
- Parameters:
user- aUserobject- Returns:
- Number of comments in the DB for the given user
- Throws:
DAOException
-
getNumAnnotations
getNumAnnotations.
- Parameters:
user- aUserobject- Returns:
- a long
- Throws:
DAOException- if any.
-
getNumRecordsWithComments
getNumRecordsWithComments.
- Parameters:
user- aUserobject- Returns:
- a
Longobject - Throws:
DAOException- if any.
-
getAnnotationCount
getAnnotationCount.
- Returns:
- a long
- Throws:
DAOException- if any.
-
getCommentCount
Getter for the field
commentCount.- Returns:
- a long
- Throws:
DAOException- if any.
-
getLatestComments
getLatestComments.
- Parameters:
user- aUserobjectnumEntries- a int- Returns:
- List of comments for the given user
- Throws:
DAOException
-
getBookmarkListsForUser
getBookmarkListsForUser.
- Parameters:
user- aUserobjectnumEntries- a int- Returns:
- a
Listobject - Throws:
DAOException- if any.
-
getLatestActivity
getLatestActivity.
- Parameters:
user- aUserobjectnumEntries- a int- Returns:
- a
Listobject - Throws:
DAOException- if any.
-