Uses of Class
io.goobi.viewer.model.security.user.User
Package
Description
-
Uses of User in io.goobi.viewer.api.rest.model
ModifierConstructorDescriptionUserJsonFacade
(User user) UserJsonFacade
(User user, javax.servlet.http.HttpServletRequest request) -
Uses of User in io.goobi.viewer.api.rest.resourcebuilders
Modifier and TypeMethodDescriptionboolean
isInGroup. -
Uses of User in io.goobi.viewer.api.rest.v1.annotations
-
Uses of User in io.goobi.viewer.api.rest.v2.annotations
-
Uses of User in io.goobi.viewer.dao
Modifier and TypeMethodDescriptionIDAO.getUser
(long id) getUser.IDAO.getUserByEmail
(String email) getUserByEmail.IDAO.getUserByNickname
(String nickname) getUserByNickname.IDAO.getUserByOpenId
(String identifier) getUserByOpenId.Modifier and TypeMethodDescriptionIDAO.getAllUsers
(boolean refresh) getAllUsers.IDAO.getUsers
(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getUsers.IDAO.getUsersByPropertyValue
(String propertyName, String propertyValue) Modifier and TypeMethodDescriptionboolean
addUser.int
IDAO.changeCampaignStatisticContributors
(User fromUser, User toUser) ReplacedfromUser
withtoUser
in the lists of annotators and reviewers an all campaign statistics.int
IDAO.changeCommentsOwner
(User fromUser, User toUser) Changes ownership of all comments fromfromUser
totoUser
.int
IDAO.deleteCampaignStatisticsForUser
(User user) Deletes given user from the lists of annotators and reviewers an all campaign statistics.int
IDAO.deleteComments
(String pi, User owner) boolean
IDAO.deleteUser
(User user) deleteUser.IDAO.getBookmarkList
(String name, User user) getBookmarkList.long
IDAO.getBookmarkListCount
(User user) Get number of bookmark lists owned by the given userIDAO.getBookmarkLists
(User user) getBookmarkLists.long
getCommentCount.IDAO.getCommentsOfUser
(User user, int maxResults, String sortField, boolean descending) Get Comments created by a specific userIDAO.getNumRecordsWithComments
(User user) long
IDAO.getSearchCount
(User owner, Map<String, String> filters) getSearchCount.IDAO.getSearches
(User owner) getSearches.IDAO.getSearches
(User owner, int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getSearches.IDAO.getUserGroups
(User owner) getUserGroups.long
IDAO.getUserRoleCount
(UserGroup userGroup, User user, Role role) getUserRoleCount.IDAO.getUserRoles
(UserGroup userGroup, User user, Role role) getUserRoles.boolean
IDAO.updateUser
(User user) updateUser. -
Uses of User in io.goobi.viewer.dao.impl
Modifier and TypeMethodDescriptionJPADAO.getUser
(long id) getUser.JPADAO.getUserByEmail
(String email) getUserByEmail.JPADAO.getUserByNickname
(String nickname) JPADAO.getUserByOpenId
(String identifier) getUserByOpenId.Modifier and TypeMethodDescriptionJPADAO.getAllUsers
(boolean refresh) getAllUsers.JPADAO.getUsers
(int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getUsers.JPADAO.getUsersByPropertyValue
(String propertyName, String propertyValue) Modifier and TypeMethodDescriptionboolean
addUser.int
JPADAO.changeCampaignStatisticContributors
(User fromUser, User toUser) int
JPADAO.changeCommentsOwner
(User fromUser, User toUser) Changes ownership of all comments fromfromUser
totoUser
.int
JPADAO.deleteCampaignStatisticsForUser
(User user) int
JPADAO.deleteComments
(String pi, User owner) boolean
JPADAO.deleteUser
(User user) deleteUser.JPADAO.getBookmarkList
(String name, User user) getBookmarkList.long
JPADAO.getBookmarkListCount
(User user) Get number of bookmark lists owned by the given userJPADAO.getBookmarkLists
(User user) getBookmarkLists.long
getCommentCount.JPADAO.getCommentsOfUser
(User user, int maxResults, String sortField, boolean descending) Get Comments created by a specific userJPADAO.getNumRecordsWithComments
(User user) long
JPADAO.getSearchCount
(User owner, Map<String, String> filters) getSearchCount.JPADAO.getSearches
(User owner) getSearches.JPADAO.getSearches
(User owner, int first, int pageSize, String sortField, boolean descending, Map<String, String> filters) getSearches.JPADAO.getUserGroups
(User owner) getUserGroups.long
JPADAO.getUserRoleCount
(UserGroup userGroup, User user, Role role) JPADAO.getUserRoles
(UserGroup userGroup, User user, Role role) getUserRoles.boolean
JPADAO.updateUser
(User user) updateUser. -
Uses of User in io.goobi.viewer.faces.converters
Modifier and TypeMethodDescriptionfinal User
UserConverter.getAsObject
(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value) Modifier and TypeMethodDescriptionfinal String
UserConverter.getAsString
(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, User object) -
Uses of User in io.goobi.viewer.faces.validators
Modifier and TypeMethodDescriptionstatic String
RelatedPIValidator.validatePi
(String pi, User user) validatePi. -
Uses of User in io.goobi.viewer.managedbeans
Modifier and TypeMethodDescriptionUserGroupBean.getCurrentMember()
Getter for the fieldcurrentMember
.AdminBean.getCurrentUser()
Getter for the fieldcurrentUser
.UserBean.getUser()
Getter for the fielduser
.Modifier and TypeMethodDescriptionAdminBean.getAllUsers()
Returns all users in the DB.UserBean.getAllUsers()
Returns a list of all existing users (minus the superusers and the current user).AdminBean.getAllUsersExcept
(Set<User> usersToExclude) getAllUsersExcept.AdminBean.getLazyModelUsers()
Getter for the fieldlazyModelUsers
.AdminBean.getPageUsers()
getPageUsers.Modifier and TypeMethodDescriptionAdminBean.deleteUserAction
(User user, boolean deleteContributions) Deletes the given User and optionally their contributions.CrowdsourcingBean.getAllowedCampaigns
(User user) Returns the list of campaigns that are visible to the given user.CmsBean.getAllowedCategories
(User user) Returns a filtered category list for the given user, unless the user is a superuser.CmsBean.getAllowedSubthemeDiscriminatorValues
(User user) Returns a filtered subtheme discriminator value list for the given user, unless the user is a superuser.CmsBean.getAllowedTemplates
(User user) Returns a filtered page template list for the given user, unless the user is a superuser.BookmarkBean.getBookmarkListsForUser
(User user) getBookmarkListsForUser.UserDataBean.getBookmarkListsForUser
(User user, int numEntries) getBookmarkListsForUser.static List<BookmarkList>
BookmarkBean.getBookmarkListsSharedWithUser
(User user) getBookmarkListsSharedWithUser.AdminCommentBean.getCommentGroupsForUser
(User user) getCommentGroupsForUser.CommentBean.getComments
(int startIndex, int numItems, String filter, User user, String sortField, boolean descending) getComments.UserDataBean.getLatestActivity
(User user, int numEntries) getLatestActivity.UserDataBean.getLatestComments
(User user, int numEntries) getLatestComments.long
UserDataBean.getNumAnnotations
(User user) getNumAnnotations.long
UserDataBean.getNumBookmarkLists
(User user) getNumBookmarkLists.long
UserDataBean.getNumComments
(User user) getNumComments.UserDataBean.getNumRecordsWithComments
(User user) getNumRecordsWithComments.long
UserDataBean.getNumSearches
(User user) getNumSearches.UserDataBean.getSearches
(User user, Integer numEntries) Returns saved searches for the logged in user.static boolean
Check if the given user is allowed access to the given campaign from a rights management standpoint alone.boolean
CmsBean.isSubthemeRequired
(User user) isSubthemeRequired.boolean
CrowdsourcingBean.isUserOwnsAnyCampaigns
(User user) Deprecated.AdminBean.resetUserAction
(User user, String returnPage) resetUserAction.boolean
AdminBean.saveUserAction
(User user) Saves the given use.AdminBean.saveUserAction
(User user, String returnPage) saveUserAction.void
UserGroupBean.setCurrentMember
(User currentMember) Setter for the fieldcurrentMember
.void
AdminBean.setCurrentUser
(User currentUser) Setter for the fieldcurrentUser
.void
Setter for the fielduser
.AdminBean.toggleSuspendUserAction
(User user) toggleSuspendUserAction.Modifier and TypeMethodDescriptionAdminBean.getAllUsersExcept
(Set<User> usersToExclude) getAllUsersExcept. -
Uses of User in io.goobi.viewer.managedbeans.utils
Modifier and TypeMethodDescriptionstatic User
BeanUtils.getUserFromRequest
(javax.servlet.http.HttpServletRequest request) getUserFromRequest. -
Uses of User in io.goobi.viewer.model.annotation
Modifier and TypeMethodDescriptionPersistentAnnotation.getCreator()
getCreator.PersistentAnnotation.getReviewer()
getReviewer.Modifier and TypeMethodDescriptionboolean
Checks whether the user with the given ID is allowed to edit this comment (i.e. the annotation belongs to this (proper) user.void
PersistentAnnotation.setCreator
(User creator) setCreator.void
PersistentAnnotation.setReviewer
(User reviewer) setReviewer. -
Uses of User in io.goobi.viewer.model.annotation.comments
Modifier and TypeMethodDescriptionstatic String
CommentManager.checkAndCleanScripts
(String text, User editor, String pi, Integer page) void
CommentManager.createComment
(String text, User creator, String pi, Integer pageOrder, String license, PublicationStatus publicationStatus) void
CommentManager.editComment
(Comment comment, String text, User editor, PublicationStatus publicationStatus) static boolean
CommentManager.isUserHasAccessToCommentGroups
(User user) Checks whether the given user has access to any comment groups, whether via being admin or owner or member of any linked user group.boolean
Checks whether the user with the given ID is allowed to edit this comment (i.e. the annotation belongs to this (proper) user.void
Setter for the fieldowner
.ModifierConstructorDescriptionComment
(String pi, int page, User owner, String text, String accessCondition, PublicationStatus publicationStatus) CommentLegacy
(String pi, int page, User owner, String text, CommentLegacy parent) Constructor for Comment. -
Uses of User in io.goobi.viewer.model.bookmark
Modifier and TypeMethodDescriptionvoid
SessionStoreBookmarkManager.addSessionBookmarkListToUser
(User user, javax.servlet.http.HttpServletRequest request) Assigns the current session bookmark list (if any) to the given user and saves the bookmark list to the database The bookmark list gets a newly generated name provided bySessionStoreBookmarkManager.generateNewBookmarkListName(List)
static List<BookmarkList>
BookmarkTools.getBookmarkListsSharedWithUser
(User user) getBookmarkListsSharedWithUser.boolean
isMayEdit.boolean
isMayView.boolean
void
Setter for the fieldowner
. -
Uses of User in io.goobi.viewer.model.cms.pages.content
-
Uses of User in io.goobi.viewer.model.crowdsourcing
Modifier and TypeMethodDescriptionDisplayUserGeneratedContent.getUpdatedBy()
Getter for the fieldupdatedBy
.Modifier and TypeMethodDescriptionstatic boolean
CrowdsourcingTools.isUserOwnsAnyCampaigns
(User user) void
DisplayUserGeneratedContent.setUpdatedBy
(User updatedBy) Setter for the fieldupdatedBy
. -
Uses of User in io.goobi.viewer.model.crowdsourcing.campaigns
Modifier and TypeMethodDescriptionCampaignRecordPageStatistic.getAnnotators()
Getter for the fieldannotators
.CampaignRecordStatistic.getAnnotators()
Getter for the fieldannotators
.CampaignRecordPageStatistic.getReviewers()
Getter for the fieldreviewers
.CampaignRecordStatistic.getReviewers()
Getter for the fieldreviewers
.Modifier and TypeMethodDescriptionvoid
CampaignRecordPageStatistic.addAnnotater
(User user) addAnnotater.void
CampaignRecordStatistic.addAnnotater
(User user) addAnnotater.void
CampaignRecordPageStatistic.addReviewer
(User user) addReviewer.void
CampaignRecordStatistic.addReviewer
(User user) addReviewer.Campaign.getNextTarget
(CrowdsourcingStatus status, String currentPi, User user) Get the targetIdentifier to a random PI from the Solr query result list.Campaign.getRandomizedTarget
(CrowdsourcingStatus status, String piToIgnore, User user) Get the targetIdentifier to a random PI from the Solr query result list.boolean
Campaign.hasRecordsToAnnotate
(User user) check if the given user is eligible to annotate any recordsboolean
Campaign.hasRecordsToReview
(User user) check if the given user is eligible to review any recordsboolean
Campaign.isEligibleToEdit
(String pi, CrowdsourcingStatus status, User user) Check if the given user may annotate/review (depending on status) a specific pi within this campaignboolean
Campaign.isUserAllowedAction
(User user, CrowdsourcingStatus status) Checks whether the given user may annotate or review records based on the given status.boolean
Campaign.isUserMayEdit
(User user) boolean
Campaign.mayAnnotate
(User user, String pi) check if the user is allowed to annotate the given pi for this campaignboolean
check if the user is allowed to review the given pi for this campaignModifier and TypeMethodDescriptionvoid
CampaignRecordPageStatistic.setAnnotators
(List<User> annotators) Setter for the fieldannotators
.void
CampaignRecordStatistic.setAnnotators
(List<User> annotators) Setter for the fieldannotators
.void
Campaign.setRecordPageStatus
(String pi, int page, CrowdsourcingStatus status, Optional<User> user) void
Campaign.setRecordStatus
(String pi, CrowdsourcingStatus status, Optional<User> user) Updates record status in the campaign statistics.void
CampaignRecordPageStatistic.setReviewers
(List<User> reviewers) Setter for the fieldreviewers
.void
CampaignRecordStatistic.setReviewers
(List<User> reviewers) Setter for the fieldreviewers
. -
Uses of User in io.goobi.viewer.model.maps
-
Uses of User in io.goobi.viewer.model.search
Modifier and TypeMethodDescriptionstatic String
SearchHelper.getPersonalFilterQuerySuffix
(List<LicenseType> licenseTypes, User user, String ipAddress, Optional<ClientApplication> client, String privilege) Constructs a personal search query filter suffix for the given user and IP address.void
Setter for the fieldowner
. -
Uses of User in io.goobi.viewer.model.security
Modifier and TypeMethodDescriptionstatic AccessPermission
AccessConditionUtils.checkAccessPermission
(List<LicenseType> allLicenseTypes, Set<String> requiredAccessConditions, String privilegeName, User user, String remoteAddress, Optional<ClientApplication> client, String query) Base method for checking access permissions of various types.void
Setter for the fielduser
.Modifier and TypeMethodDescriptionAccessConditionUtils.getApplyingLicenses
(Optional<User> user, String ipAddress, LicenseType type, IDAO dao) List all licenses ("rights") that the given user and ipAddress is entitled to, either because they are directly given to the user, a group the user belongs to or to the given ipAddress, whether or not the given user exists -
Uses of User in io.goobi.viewer.model.security.authentication
ModifierConstructorDescriptionLoginResult
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Optional<User> user, boolean loginRefused) Constructor for LoginResult.LoginResult
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Optional<User> user, boolean loginRefused, long delay) Constructor for LoginResult. -
Uses of User in io.goobi.viewer.model.security.user
Modifier and TypeMethodDescriptionAuthentication check for regular (i.e. non-OpenID) accounts.static User
UserTools.checkAndCreateAnonymousUser()
User.getCopy()
Getter for the fieldcopy
.UserGroup.getOwner()
Getter for the fieldowner
.UserRole.getUser()
Getter for the fielduser
.Modifier and TypeMethodDescriptionUserGroup.getMembers()
getMembers.UserGroup.getMembersAndOwner()
Modifier and TypeMethodDescriptionboolean
Adds membership relation between the given user and role and persists immediately.static boolean
UserTools.anonymizeUserPublicContributions
(User user) Moves all public content from the given user to an anonymous user.boolean
UserGroup.changeMemberRole
(User user, Role role) changeMemberRole.int
static int
UserTools.deleteBookmarkListsForUser
(User owner) static int
UserTools.deleteSearchesForUser
(User owner) static boolean
UserTools.deleteUser
(User user) Deletes given user from the database and removes any database rows that reference this user (only those that are of use to this user - public content such as comments must be deleted separetely).static int
UserTools.deleteUserGroupOwnedByUser
(User owner) static void
UserTools.deleteUserPublicContributions
(User user) Deletes all public content created by this the given user.boolean
UserGroup.removeMember
(User user) remove User from Groupvoid
Setter for the fieldcopy
.void
Setter for the fieldowner
.void
Setter for the fielduser
. -
Uses of User in io.goobi.viewer.model.security.user.icon
-
Uses of User in io.goobi.viewer.model.viewer
Modifier and TypeMethodDescriptionViewManager.getCurrentUser()
Retrieves the current User from the session, if exists. -
Uses of User in io.goobi.viewer.modules
Modifier and TypeMethodDescriptionint
IModule.deleteUserContributions
(User user) Removes content created by the given user.int
IModule.moveUserContributions
(User fromUser, User toUser) Moves all content created by the given user to a different user.