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
-
Method Summary
Modifier and TypeMethodDescriptiondeleteSearchAction
(Search search) Deletes the given persistent user search.long
getAnnotationCount.getAnnotations.getBookmarkListsForUser
(User user, int numEntries) getBookmarkListsForUser.long
Getter for the fieldcommentCount
.getLatestActivity
(User user, int numEntries) getLatestActivity.getLatestComments
(User user, int numEntries) getLatestComments.Getter for the fieldlazyModelAnnotations
.Getter for the fieldlazyModelComments
.long
getNumAnnotations
(User user) getNumAnnotations.long
getNumBookmarkLists
(User user) getNumBookmarkLists.long
getNumComments
(User user) getNumComments.getNumRecordsWithComments.long
getNumSearches
(User user) getNumSearches.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
- aUser
objectnumEntries
- aInteger
object- Returns:
- a
List
object. - 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
- aSearch
object.- Returns:
- a
String
object. - Throws:
DAOException
- if any.
-
getLazyModelAnnotations
Getter for the field
lazyModelAnnotations
.- Returns:
- the lazyModelAnnotations
-
getLazyModelComments
Getter for the field
lazyModelComments
.- Returns:
- a
TableDataProvider
object
-
getNumBookmarkLists
getNumBookmarkLists.
- Parameters:
user
- aUser
object- Returns:
- a long
- Throws:
DAOException
- if any.
-
getNumSearches
getNumSearches.
- Parameters:
user
- aUser
object- Returns:
- a long
- Throws:
DAOException
- if any.
-
getNumComments
getNumComments.
- Parameters:
user
- aUser
object- Returns:
- Number of comments in the DB for the given user
- Throws:
DAOException
-
getNumAnnotations
getNumAnnotations.
- Parameters:
user
- aUser
object- Returns:
- a long
- Throws:
DAOException
- if any.
-
getNumRecordsWithComments
getNumRecordsWithComments.
- Parameters:
user
- aUser
object- Returns:
- a
Long
object - 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
- aUser
objectnumEntries
- a int- Returns:
- List of comments for the given user
- Throws:
DAOException
-
getBookmarkListsForUser
getBookmarkListsForUser.
- Parameters:
user
- aUser
objectnumEntries
- a int- Returns:
- a
List
object - Throws:
DAOException
- if any.
-
getLatestActivity
getLatestActivity.
- Parameters:
user
- aUser
objectnumEntries
- a int- Returns:
- a
List
object - Throws:
DAOException
- if any.
-