Uses of Class
io.goobi.viewer.model.security.user.User
Packages that use User
Package
Description
-
Uses of User in io.goobi.viewer.api.rest.model
Constructors in io.goobi.viewer.api.rest.model with parameters of type UserModifierConstructorDescriptionUserJsonFacade
(User user) UserJsonFacade
(User user, jakarta.servlet.http.HttpServletRequest request) -
Uses of User in io.goobi.viewer.api.rest.resourcebuilders
Methods in io.goobi.viewer.api.rest.resourcebuilders with parameters of type UserModifier and TypeMethodDescriptionboolean
isInGroup.Constructors in io.goobi.viewer.api.rest.resourcebuilders with parameters of type User -
Uses of User in io.goobi.viewer.api.rest.v1.annotations
Methods in io.goobi.viewer.api.rest.v1.annotations that return User -
Uses of User in io.goobi.viewer.api.rest.v2.annotations
Methods in io.goobi.viewer.api.rest.v2.annotations that return User -
Uses of User in io.goobi.viewer.dao
Methods in io.goobi.viewer.dao that return UserModifier and TypeMethodDescriptionIDAO.getUser
(long id) getUser.IDAO.getUserByEmail
(String email) getUserByEmail.IDAO.getUserByNickname
(String nickname) getUserByNickname.IDAO.getUserByOpenId
(String identifier) getUserByOpenId.Methods in io.goobi.viewer.dao that return types with arguments of type UserModifier 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) Methods in io.goobi.viewer.dao with parameters of type UserModifier 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
Methods in io.goobi.viewer.dao.impl that return UserModifier and TypeMethodDescriptionJPADAO.getUser
(long id) getUser.JPADAO.getUserByEmail
(String email) getUserByEmail.JPADAO.getUserByNickname
(String nickname) JPADAO.getUserByOpenId
(String identifier) getUserByOpenId.Methods in io.goobi.viewer.dao.impl that return types with arguments of type UserModifier 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) Methods in io.goobi.viewer.dao.impl with parameters of type UserModifier 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
Methods in io.goobi.viewer.faces.converters that return UserModifier and TypeMethodDescriptionfinal User
UserConverter.getAsObject
(jakarta.faces.context.FacesContext context, jakarta.faces.component.UIComponent component, String value) Methods in io.goobi.viewer.faces.converters with parameters of type UserModifier and TypeMethodDescriptionfinal String
UserConverter.getAsString
(jakarta.faces.context.FacesContext context, jakarta.faces.component.UIComponent component, User object) -
Uses of User in io.goobi.viewer.faces.validators
Methods in io.goobi.viewer.faces.validators with parameters of type UserModifier and TypeMethodDescriptionstatic String
RelatedPIValidator.validatePi
(String pi, User user) validatePi. -
Uses of User in io.goobi.viewer.managedbeans
Methods in io.goobi.viewer.managedbeans that return UserModifier and TypeMethodDescriptionUserGroupBean.getCurrentMember()
Getter for the fieldcurrentMember
.AdminBean.getCurrentUser()
Getter for the fieldcurrentUser
.UserBean.getUser()
Getter for the fielduser
.Methods in io.goobi.viewer.managedbeans that return types with arguments of type UserModifier 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.Methods in io.goobi.viewer.managedbeans with parameters of type UserModifier 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
Saves the given use.AdminBean.saveUserAction
(User user, boolean forceCheckCurrentPassword, 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.Method parameters in io.goobi.viewer.managedbeans with type arguments of type UserModifier and TypeMethodDescriptionAdminBean.getAllUsersExcept
(Set<User> usersToExclude) getAllUsersExcept. -
Uses of User in io.goobi.viewer.managedbeans.utils
Methods in io.goobi.viewer.managedbeans.utils that return UserModifier and TypeMethodDescriptionstatic User
BeanUtils.getUserFromRequest
(jakarta.servlet.http.HttpServletRequest request) getUserFromRequest. -
Uses of User in io.goobi.viewer.model.annotation
Methods in io.goobi.viewer.model.annotation that return UserModifier and TypeMethodDescriptionPersistentAnnotation.getCreator()
getCreator.PersistentAnnotation.getReviewer()
getReviewer.Methods in io.goobi.viewer.model.annotation that return types with arguments of type UserMethods in io.goobi.viewer.model.annotation with parameters of type UserModifier 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
Methods in io.goobi.viewer.model.annotation.comments that return UserMethods in io.goobi.viewer.model.annotation.comments with parameters of type UserModifier 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
.Constructors in io.goobi.viewer.model.annotation.comments with parameters of type UserModifierConstructorDescriptionComment
(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
Methods in io.goobi.viewer.model.bookmark that return UserMethods in io.goobi.viewer.model.bookmark with parameters of type UserModifier and TypeMethodDescriptionvoid
SessionStoreBookmarkManager.addSessionBookmarkListToUser
(User user, jakarta.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
Methods in io.goobi.viewer.model.cms.pages.content with parameters of type User -
Uses of User in io.goobi.viewer.model.crowdsourcing
Methods in io.goobi.viewer.model.crowdsourcing that return UserModifier and TypeMethodDescriptionDisplayUserGeneratedContent.getUpdatedBy()
Getter for the fieldupdatedBy
.Methods in io.goobi.viewer.model.crowdsourcing with parameters of type UserModifier 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
Methods in io.goobi.viewer.model.crowdsourcing.campaigns that return types with arguments of type UserModifier 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
.Methods in io.goobi.viewer.model.crowdsourcing.campaigns with parameters of type UserModifier 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 campaignMethod parameters in io.goobi.viewer.model.crowdsourcing.campaigns with type arguments of type UserModifier 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
Methods in io.goobi.viewer.model.maps that return UserMethods in io.goobi.viewer.model.maps with parameters of type User -
Uses of User in io.goobi.viewer.model.search
Methods in io.goobi.viewer.model.search that return UserMethods in io.goobi.viewer.model.search with parameters of type UserModifier 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
Methods in io.goobi.viewer.model.security that return UserMethods in io.goobi.viewer.model.security with parameters of type UserModifier 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
.Method parameters in io.goobi.viewer.model.security with type arguments of type UserModifier 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
Methods in io.goobi.viewer.model.security.authentication that return UserMethods in io.goobi.viewer.model.security.authentication that return types with arguments of type UserConstructor parameters in io.goobi.viewer.model.security.authentication with type arguments of type UserModifierConstructorDescriptionLoginResult
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Optional<User> user, boolean loginRefused) Constructor for LoginResult.LoginResult
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Optional<User> user, boolean loginRefused, long delay) Constructor for LoginResult. -
Uses of User in io.goobi.viewer.model.security.user
Methods in io.goobi.viewer.model.security.user that return UserModifier 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
.Methods in io.goobi.viewer.model.security.user that return types with arguments of type UserModifier and TypeMethodDescriptionUserGroup.getMembers()
getMembers.UserGroup.getMembersAndOwner()
Methods in io.goobi.viewer.model.security.user with parameters of type UserModifier 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
.Constructors in io.goobi.viewer.model.security.user with parameters of type User -
Uses of User in io.goobi.viewer.model.security.user.icon
Methods in io.goobi.viewer.model.security.user.icon with parameters of type UserConstructors in io.goobi.viewer.model.security.user.icon with parameters of type User -
Uses of User in io.goobi.viewer.model.viewer
Methods in io.goobi.viewer.model.viewer that return UserModifier and TypeMethodDescriptionViewManager.getCurrentUser()
Retrieves the current User from the session, if exists. -
Uses of User in io.goobi.viewer.modules
Methods in io.goobi.viewer.modules with parameters of type UserModifier 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.