Uses of Class
io.goobi.viewer.model.security.AccessPermission
Package
Description
-
Uses of AccessPermission in io.goobi.viewer.model.security
Modifier and TypeMethodDescriptionstatic AccessPermission
AccessConditionUtils.checkAccess
(javax.servlet.http.HttpServletRequest request, String action, String pi, String contentFileName, boolean isThumbnail) checkAccess.static 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.static AccessPermission
AccessConditionUtils.checkAccessPermission
(Set<String> requiredAccessConditions, String privilegeName, String query, javax.servlet.http.HttpServletRequest request) checkAccessPermission.static AccessPermission
AccessConditionUtils.checkAccessPermissionByIdentifierAndFileNameWithSessionMap
(javax.servlet.http.HttpServletRequest request, String pi, String contentFileName, String privilegeType) Checks access permission of the given privilege type for the given image and puts the permission status into the corresponding session map.static AccessPermission
AccessConditionUtils.checkAccessPermissionByIdentifierAndFilePathWithSessionMap
(javax.servlet.http.HttpServletRequest request, String filePath, String privilegeType) checkAccessPermissionByIdentifierAndFilePathWithSessionMap.static AccessPermission
AccessConditionUtils.checkAccessPermissionByIdentifierAndLogId
(String identifier, String logId, String privilegeName, javax.servlet.http.HttpServletRequest request) Checks whether the current users has the given access permissions to the element with the given identifier and LOGID.static AccessPermission
AccessConditionUtils.checkAccessPermissionByImageUrn
(String imageUrn, String privilegeName, javax.servlet.http.HttpServletRequest request) Checks whether the client may access an image (by image URN).static AccessPermission
AccessConditionUtils.checkAccessPermissionBySolrDoc
(org.apache.solr.common.SolrDocument doc, String originalQuery, String privilegeName, javax.servlet.http.HttpServletRequest request) static AccessPermission
AccessConditionUtils.checkAccessPermissionForImage
(javax.servlet.http.HttpServletRequest request, String pi, String contentFileName) Checks access permission for the given image and puts the permission status into the corresponding session map.static AccessPermission
AccessConditionUtils.checkAccessPermissionForPagePdf
(javax.servlet.http.HttpServletRequest request, PhysicalElement page) Checks access permission for the given image and puts the permission status into the corresponding session map.static AccessPermission
AccessConditionUtils.checkAccessPermissionForThumbnail
(javax.servlet.http.HttpServletRequest request, String pi, String contentFileName) Checks access permission for the given thumbnail and puts the permission status into the corresponding session map.static AccessPermission
AccessConditionUtils.checkContentFileAccessPermission
(String identifier, javax.servlet.http.HttpServletRequest request) Checks if the record with the given identifier should allow access to the given requeststatic AccessPermission
AccessPermission.denied()
static AccessPermission
AccessPermission.granted()
ILicensee.hasLicense
(String licenseName, String privilegeName, String pi) Checks whether the licensee has a license with the given name.AccessPermission.setGranted
(boolean granted) AccessPermission.setRedirect
(boolean redirect) AccessPermission.setRedirectUrl
(String redirectUrl) AccessPermission.setTicketRequired
(boolean ticketRequired) Modifier and TypeMethodDescriptionstatic Map<String,
AccessPermission> AccessConditionUtils.checkAccessPermissionByIdentiferForAllLogids
(String identifier, String privilegeName, javax.servlet.http.HttpServletRequest request) Checks whether the current users has the given access permissions each element of the record with the given identifier. -
Uses of AccessPermission in io.goobi.viewer.model.security.clients
Modifier and TypeMethodDescriptionClientApplication.canSatisfyAllAccessConditions
(Set<String> requiredAccessConditions, String privilegeName, String pi) Check if this client has the privilege of the given privilegeName via itsClientApplication.licenses
ClientApplication.hasLicense
(String licenseName, String privilegeName, String pi) Checks whether the licensee has a license with the given name. -
Uses of AccessPermission in io.goobi.viewer.model.security.user
Modifier and TypeMethodDescriptionIpRange.canSatisfyAllAccessConditions
(Set<String> requiredAccessConditions, List<LicenseType> relevantLicenseTypes, String privilegeName, String pi) canSatisfyAllAccessConditions.User.canSatisfyAllAccessConditions
(Set<String> requiredAccessConditions, String privilegeName, String pi) Checks whether the user can satisfy at least one of the given access conditions with a license that contains the given privilege name.static AccessPermission
AbstractLicensee.getAccessPermissionFromMap
(Map<String, AccessPermission> permissionMap) AbstractLicensee.hasLicense
(String licenseName, String privilegeName, String pi) Checks whether the licensee has a license with the given name.Modifier and TypeMethodDescriptionstatic AccessPermission
AbstractLicensee.getAccessPermissionFromMap
(Map<String, AccessPermission> permissionMap) -
Uses of AccessPermission in io.goobi.viewer.model.viewer.record.views
Modifier and TypeMethodDescriptionRecordPropertyCache.getPermissionForPage
(PhysicalElement page, String privilege, javax.servlet.http.HttpServletRequest request) RecordPropertyCache.getPermissionForRecord
(ViewManager viewManager, String privilege, javax.servlet.http.HttpServletRequest request)