Class PermissionCheck


  • public class PermissionCheck
    extends Object
    Author:
    Roman Smirnov
    • Field Detail

      • permission

        protected Permission permission
        the permission to check for
      • perms

        protected int perms
      • resource

        protected Resource resource
        the type of the resource to check permissions for
      • resourceType

        protected int resourceType
      • resourceId

        protected String resourceId
        the id of the resource to check permission for
      • resourceIdQueryParam

        protected String resourceIdQueryParam
        query parameter for resource Id. Is injected as RAW parameter into the query
      • authorizationNotFoundReturnValue

        protected Long authorizationNotFoundReturnValue
    • Constructor Detail

      • PermissionCheck

        public PermissionCheck()
    • Method Detail

      • getPermission

        public Permission getPermission()
      • setPermission

        public void setPermission​(Permission permission)
      • getPerms

        public int getPerms()
      • getResource

        public Resource getResource()
      • setResource

        public void setResource​(Resource resource)
      • getResourceType

        public int getResourceType()
      • getResourceId

        public String getResourceId()
      • setResourceId

        public void setResourceId​(String resourceId)
      • getResourceIdQueryParam

        public String getResourceIdQueryParam()
      • setResourceIdQueryParam

        public void setResourceIdQueryParam​(String resourceIdQueryParam)
      • getAuthorizationNotFoundReturnValue

        public Long getAuthorizationNotFoundReturnValue()
      • setAuthorizationNotFoundReturnValue

        public void setAuthorizationNotFoundReturnValue​(Long authorizationNotFoundReturnValue)