DynamicResourceHandler
be.objectify.deadbolt.scala.DynamicResourceHandler
trait DynamicResourceHandler
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
def checkPermission[A](permissionValue: String, meta: Option[Any], deadboltHandler: DeadboltHandler, request: AuthenticatedRequest[A]): Future[Boolean]
Invoked when a pattern constraint with a be.objectify.deadbolt.scala.models.PatternType.CUSTOM type is used.
Invoked when a pattern constraint with a be.objectify.deadbolt.scala.models.PatternType.CUSTOM type is used.
Value parameters
- deadboltHandler
-
the current { @link DeadboltHandler}
- meta
-
additional information on the resource
- permissionValue
-
the permission value
- request
-
the current request
Attributes
- Returns
-
true if access based on the permission is allowed, otherwise false
def isAllowed[A](name: String, meta: Option[Any], deadboltHandler: DeadboltHandler, request: AuthenticatedRequest[A]): Future[Boolean]
Check the access of the named resource.
Check the access of the named resource.
Value parameters
- deadboltHandler
-
the current { @link DeadboltHandler}
- meta
-
additional information on the resource
- name
-
the resource name
- request
-
the current request
Attributes
- Returns
-
true if access to the resource is allowed, otherwise false
In this article