Class UserDataBean

java.lang.Object
io.goobi.viewer.managedbeans.UserDataBean
All Implemented Interfaces:
Serializable

@Named @ViewScoped public class UserDataBean extends Object implements Serializable

UserDataBean class.

See Also:
  • Constructor Details

    • UserDataBean

      public UserDataBean()
  • Method Details

    • setBreadcrumbBean

      public void setBreadcrumbBean(UserBean userBean)
      Required setter for ManagedProperty injection
      Parameters:
      userBean - the userBean to set
    • init

      @PostConstruct public void init() throws DAOException
      Initialize all campaigns as lazily loaded list
      Throws:
      DAOException
    • getSearches

      public List<Search> getSearches(User user, Integer numEntries) throws DAOException
      Returns saved searches for the logged in user.
      Parameters:
      user - a User object
      numEntries - a Integer object
      Returns:
      a List object.
      Throws:
      DAOException - if any.
    • getAnnotations

      public List<CrowdsourcingAnnotation> getAnnotations() throws DAOException

      getAnnotations.

      Returns:
      List of annotations for the logged in user
      Throws:
      DAOException
    • deleteSearchAction

      public String deleteSearchAction(Search search) throws DAOException
      Deletes the given persistent user search.
      Parameters:
      search - a Search object.
      Returns:
      a String object.
      Throws:
      DAOException - if any.
    • getLazyModelAnnotations

      public TableDataProvider<PersistentAnnotation> getLazyModelAnnotations()

      Getter for the field lazyModelAnnotations.

      Returns:
      the lazyModelAnnotations
    • getLazyModelComments

      public TableDataProvider<PersistentAnnotation> getLazyModelComments()

      Getter for the field lazyModelComments.

      Returns:
      a TableDataProvider object
    • getNumBookmarkLists

      public long getNumBookmarkLists(User user) throws DAOException

      getNumBookmarkLists.

      Parameters:
      user - a User object
      Returns:
      a long
      Throws:
      DAOException - if any.
    • getNumSearches

      public long getNumSearches(User user) throws DAOException

      getNumSearches.

      Parameters:
      user - a User object
      Returns:
      a long
      Throws:
      DAOException - if any.
    • getNumComments

      public long getNumComments(User user) throws DAOException

      getNumComments.

      Parameters:
      user - a User object
      Returns:
      Number of comments in the DB for the given user
      Throws:
      DAOException
    • getNumAnnotations

      public long getNumAnnotations(User user) throws DAOException

      getNumAnnotations.

      Parameters:
      user - a User object
      Returns:
      a long
      Throws:
      DAOException - if any.
    • getNumRecordsWithComments

      public Long getNumRecordsWithComments(User user) throws DAOException

      getNumRecordsWithComments.

      Parameters:
      user - a User object
      Returns:
      a Long object
      Throws:
      DAOException - if any.
    • getAnnotationCount

      public long getAnnotationCount() throws DAOException

      getAnnotationCount.

      Returns:
      a long
      Throws:
      DAOException - if any.
    • getCommentCount

      public long getCommentCount() throws DAOException

      Getter for the field commentCount.

      Returns:
      a long
      Throws:
      DAOException - if any.
    • getLatestComments

      public List<Comment> getLatestComments(User user, int numEntries) throws DAOException

      getLatestComments.

      Parameters:
      user - a User object
      numEntries - a int
      Returns:
      List of comments for the given user
      Throws:
      DAOException
    • getBookmarkListsForUser

      public List<BookmarkList> getBookmarkListsForUser(User user, int numEntries) throws DAOException

      getBookmarkListsForUser.

      Parameters:
      user - a User object
      numEntries - a int
      Returns:
      a List object
      Throws:
      DAOException - if any.
    • getLatestActivity

      public List<UserActivity> getLatestActivity(User user, int numEntries) throws DAOException

      getLatestActivity.

      Parameters:
      user - a User object
      numEntries - a int
      Returns:
      a List object
      Throws:
      DAOException - if any.