Class PermissionCheck


  • public class PermissionCheck
    extends java.lang.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 java.lang.String resourceId
        the id of the resource to check permission for
      • resourceIdQueryParam

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

        protected java.lang.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 java.lang.String getResourceId()
      • setResourceId

        public void setResourceId​(java.lang.String resourceId)
      • getResourceIdQueryParam

        public java.lang.String getResourceIdQueryParam()
      • setResourceIdQueryParam

        public void setResourceIdQueryParam​(java.lang.String resourceIdQueryParam)
      • getAuthorizationNotFoundReturnValue

        public java.lang.Long getAuthorizationNotFoundReturnValue()
      • setAuthorizationNotFoundReturnValue

        public void setAuthorizationNotFoundReturnValue​(java.lang.Long authorizationNotFoundReturnValue)