Class

be.objectify.deadbolt.scala

DeadboltActions

Related Doc: package scala

Permalink

class DeadboltActions extends Results with BodyParsers

Controller-level authorisations for Scala controllers.

Annotations
@Singleton()
Linear Supertypes
BodyParsers, Results, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DeadboltActions
  2. BodyParsers
  3. Results
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DeadboltActions(analyzer: StaticConstraintAnalyzer, handlers: HandlerCache, ecProvider: ExecutionContextProvider, logic: ConstraintLogic)

    Permalink
    Annotations
    @Inject()

Type Members

  1. class Status extends Result

    Permalink
    Definition Classes
    Results

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val Accepted: Status

    Permalink
    Definition Classes
    Results
  5. val BadGateway: Status

    Permalink
    Definition Classes
    Results
  6. val BadRequest: Status

    Permalink
    Definition Classes
    Results
  7. def Composite[A](handler: DeadboltHandler = handlers(), constraint: Constraint[A])(bodyParser: BodyParser[A] = parse.anyContent)(block: (AuthenticatedRequest[A]) ⇒ Future[Result]): Action[A]

    Permalink

    Allows access if the composite constraint resolves to true..

    Allows access if the composite constraint resolves to true..

    handler

    the handler to use for constraint testing

    bodyParser

    a body parser

    returns

    the action to take

  8. val Conflict: Status

    Permalink
    Definition Classes
    Results
  9. val Created: Status

    Permalink
    Definition Classes
    Results
  10. def Dynamic[A](name: String, meta: Option[Any] = None, handler: DeadboltHandler = handlers())(bodyParser: BodyParser[A] = parse.anyContent)(block: (AuthenticatedRequest[A]) ⇒ Future[Result]): Action[A]

    Permalink

    Apply a dynamic constraint to a controller action.

    Apply a dynamic constraint to a controller action.

    name

    the name of the dynamic constraint

    meta

    additional information

    handler

    the handler to use for constraint testing

    bodyParser

    a body parser

    block

    the action functionality

    returns

    the action to take

  11. val EntityTooLarge: Status

    Permalink
    Definition Classes
    Results
  12. val ExpectationFailed: Status

    Permalink
    Definition Classes
    Results
  13. val FailedDependency: Status

    Permalink
    Definition Classes
    Results
  14. val Forbidden: Status

    Permalink
    Definition Classes
    Results
  15. def Found(url: String): Result

    Permalink
    Definition Classes
    Results
  16. val GatewayTimeout: Status

    Permalink
    Definition Classes
    Results
  17. val Gone: Status

    Permalink
    Definition Classes
    Results
  18. val HttpVersionNotSupported: Status

    Permalink
    Definition Classes
    Results
  19. val InsufficientStorage: Status

    Permalink
    Definition Classes
    Results
  20. val InternalServerError: Status

    Permalink
    Definition Classes
    Results
  21. val Locked: Status

    Permalink
    Definition Classes
    Results
  22. val MethodNotAllowed: Status

    Permalink
    Definition Classes
    Results
  23. def MovedPermanently(url: String): Result

    Permalink
    Definition Classes
    Results
  24. val MultiStatus: Status

    Permalink
    Definition Classes
    Results
  25. val NoContent: Result

    Permalink
    Definition Classes
    Results
  26. val NonAuthoritativeInformation: Status

    Permalink
    Definition Classes
    Results
  27. val NotAcceptable: Status

    Permalink
    Definition Classes
    Results
  28. val NotFound: Status

    Permalink
    Definition Classes
    Results
  29. val NotImplemented: Status

    Permalink
    Definition Classes
    Results
  30. val NotModified: Result

    Permalink
    Definition Classes
    Results
  31. val Ok: Status

    Permalink
    Definition Classes
    Results
  32. val PartialContent: Status

    Permalink
    Definition Classes
    Results
  33. def Pattern[A](value: String, patternType: PatternType = PatternType.EQUALITY, meta: Option[Any] = None, handler: DeadboltHandler = handlers(), invert: Boolean = false)(bodyParser: BodyParser[A] = parse.anyContent)(block: (AuthenticatedRequest[A]) ⇒ Future[Result]): Action[A]

    Permalink

    value

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

    patternType

    the type of the pattern

    handler

    the handler to use for constraint testing

    invert

    if true, invert the constraint, i.e. deny access if the pattern matches

    bodyParser

    a body parser

    block

    the action functionality

    returns

    the action to take

  34. val PaymentRequired: Status

    Permalink
    Definition Classes
    Results
  35. def PermanentRedirect(url: String): Result

    Permalink
    Definition Classes
    Results
  36. val PreconditionFailed: Status

    Permalink
    Definition Classes
    Results
  37. def Redirect(call: Call, status: Int): Result

    Permalink
    Definition Classes
    Results
  38. def Redirect(call: Call): Result

    Permalink
    Definition Classes
    Results
  39. def Redirect(url: String, queryString: Map[String, Seq[String]], status: Int): Result

    Permalink
    Definition Classes
    Results
  40. def Redirect(url: String, status: Int): Result

    Permalink
    Definition Classes
    Results
  41. val RequestTimeout: Status

    Permalink
    Definition Classes
    Results
  42. val ResetContent: Result

    Permalink
    Definition Classes
    Results
  43. def Restrict[A](roleGroups: RoleGroups, handler: DeadboltHandler = handlers())(bodyParser: BodyParser[A] = parse.anyContent)(block: (AuthenticatedRequest[A]) ⇒ Future[Result]): Action[A]

    Permalink

    Restrict access to an action to users that have all the specified roles within a given group.

    Restrict access to an action to users that have all the specified roles within a given group. Each group is checked in turn.

    roleGroups

    the constraints

    handler

    the handler to use for constraint testing

    bodyParser

    a body parser

    block

    the action functionality

  44. def Restrict[A](roleNames: RoleGroup, handler: DeadboltHandler)(bodyParser: BodyParser[A])(block: (AuthenticatedRequest[A]) ⇒ Future[Result]): Action[A]

    Permalink

    Restrict access to an action to users that have all the specified roles.

    Restrict access to an action to users that have all the specified roles.

    roleNames

    the constraints

    handler

    the handler to use for constraint testing

    bodyParser

    a body parser

  45. def SeeOther(url: String): Result

    Permalink
    Definition Classes
    Results
  46. val ServiceUnavailable: Status

    Permalink
    Definition Classes
    Results
  47. def Status(code: Int): Status

    Permalink
    Definition Classes
    Results
  48. def SubjectNotPresent[A](handler: DeadboltHandler = handlers())(bodyParser: BodyParser[A] = parse.anyContent)(block: (AuthenticatedRequest[A]) ⇒ Future[Result]): Action[A]

    Permalink

    Denies access to the action if there is a subject present.

    Denies access to the action if there is a subject present.

    handler

    the handler to use for constraint testing

    bodyParser

    a body parser

    returns

    the action to take

  49. def SubjectPresent[A](handler: DeadboltHandler = handlers())(bodyParser: BodyParser[A] = parse.anyContent)(block: (AuthenticatedRequest[A]) ⇒ Future[Result]): Action[A]

    Permalink

    Allows access to the action if there is a subject present.

    Allows access to the action if there is a subject present.

    handler

    the handler to use for constraint testing

    bodyParser

    a body parser

    block

    the action functionality

    returns

    the action to take

  50. def TemporaryRedirect(url: String): Result

    Permalink
    Definition Classes
    Results
  51. val TooManyRequests: Status

    Permalink
    Definition Classes
    Results
  52. val Unauthorized: Status

    Permalink
    Definition Classes
    Results
  53. val UnprocessableEntity: Status

    Permalink
    Definition Classes
    Results
  54. val UnsupportedMediaType: Status

    Permalink
    Definition Classes
    Results
  55. val UriTooLong: Status

    Permalink
    Definition Classes
    Results
  56. def WithAuthRequest[A](handler: DeadboltHandler = handlers())(bodyParser: BodyParser[A] = parse.anyContent)(block: (AuthenticatedRequest[A]) ⇒ Future[Result]): Action[A]

    Permalink
  57. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  58. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. val ec: ExecutionContext

    Permalink
  60. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  61. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  62. def execute[A](handler: DeadboltHandler, bodyParser: BodyParser[A], block: (AuthenticatedRequest[A]) ⇒ Future[Result]): Action[A]

    Permalink

    handler

    the handler to use for constraint testing

    bodyParser

    a body parser

    block

    the function to call if beforeAuthCheck does not return a result

    returns

    the action to take

  63. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  64. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  65. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  66. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  67. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  68. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  69. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  70. object parse

    Permalink
    Definition Classes
    BodyParsers
  71. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  72. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  73. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  74. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. val TooManyRequest: Status

    Permalink
    Definition Classes
    Results
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0) Use TooManyRequests instead

Inherited from BodyParsers

Inherited from Results

Inherited from AnyRef

Inherited from Any

Ungrouped