ViewSupport

be.objectify.deadbolt.scala.ViewSupport
@Singleton
class ViewSupport(config: Configuration, listenerProvider: TemplateFailureListenerProvider, logic: ConstraintLogic)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def dynamic[A](name: String, meta: Option[Any], deadboltHandler: DeadboltHandler, timeoutInMillis: Long, request: AuthenticatedRequest[A]): Boolean

Used for dynamic tags in the template.

Used for dynamic tags in the template.

Value parameters

meta

meta information on the resource

name

the name of the resource

Attributes

Returns

true if the view can be accessed, otherwise false

def pattern[A](value: String, patternType: PatternType, meta: Option[Any], invert: Boolean, deadboltHandler: DeadboltHandler, timeoutInMillis: Long, request: AuthenticatedRequest[A]): Boolean

Value parameters

deadboltHandler

the handler to use for this request

meta

meta information on the resource

patternType

the type of pattern

request

the request

value

the value of the pattern, e.g. the regex

Attributes

def restrict[A](roles: RoleGroups, deadboltHandler: DeadboltHandler, timeoutInMillis: Long, request: AuthenticatedRequest[A]): Boolean

Used for restrict tags in the template.

Used for restrict tags in the template.

Value parameters

deadboltHandler

application hook

roles

a List of String arrays. Within an array, the roles are ANDed. The arrays in the list are OR'd, so the first positive hit will allow access.

Attributes

Returns

true if the view can be accessed, otherwise false

def subjectNotPresent[A](deadboltHandler: DeadboltHandler, timeoutInMillis: Long, request: AuthenticatedRequest[A]): Boolean

Returns true if DeadboltHandler.getSubject results in None

Returns true if DeadboltHandler.getSubject results in None

Value parameters

deadboltHandler

application hook

Attributes

Returns

true if the view can be accessed, otherwise false

def subjectPresent[A](deadboltHandler: DeadboltHandler, timeoutInMillis: Long, request: AuthenticatedRequest[A]): Boolean

Returns true if DeadboltHandler.getSubject results in Some

Returns true if DeadboltHandler.getSubject results in Some

Value parameters

deadboltHandler

application hook

Attributes

Returns

true if the view can be accessed, otherwise false

Concrete fields

val defaultTimeout: () => Long
val logger: Logger
val timeout: Long