Packages

c

play.silhouette.api.actions

SecuredActionBuilder

final case class SecuredActionBuilder[E <: Env, P](requestHandler: SecuredRequestHandlerBuilder[E], parser: BodyParser[P]) extends ActionBuilder[[B]SecuredRequest[E, B], P] with Product with Serializable

Action builder implementation to provide the foundation for secured actions.

E

The type of the environment.

P

The type of the request body.

requestHandler

The request handler instance.

parser

The body parser.

Linear Supertypes
Serializable, Product, Equals, ActionBuilder[[B]SecuredRequest[E, B], P], ActionFunction[Request, [B]SecuredRequest[E, B]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SecuredActionBuilder
  2. Serializable
  3. Product
  4. Equals
  5. ActionBuilder
  6. ActionFunction
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SecuredActionBuilder(requestHandler: SecuredRequestHandlerBuilder[E], parser: BodyParser[P])

    requestHandler

    The request handler instance.

    parser

    The body parser.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[Q[_]](other: ActionFunction[[B]SecuredRequest[E, B], Q]): ActionBuilder[Q, P]
    Definition Classes
    ActionBuilder → ActionFunction
  5. def apply(authorization: Authorization[E.I, E.A]): SecuredActionBuilder[E, P]

    Creates a secured action builder with an authorization in place.

    Creates a secured action builder with an authorization in place.

    authorization

    An authorization object that checks if the user is authorized to invoke the action.

    returns

    A secured action builder.

  6. def apply(errorHandler: SecuredErrorHandler): SecuredActionBuilder[E, P]

    Creates a secured action builder with a new error handler in place.

    Creates a secured action builder with a new error handler in place.

    errorHandler

    An error handler instance.

    returns

    A secured action builder.

  7. final def apply(block: => Result): Action[AnyContent]
    Definition Classes
    ActionBuilder
  8. final def apply(block: (SecuredRequest[E, P]) => Result): Action[P]
    Definition Classes
    ActionBuilder
  9. final def apply[A](bodyParser: BodyParser[A]): ActionBuilder[[B]SecuredRequest[E, B], A]
    Definition Classes
    ActionBuilder
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. final def async[A](bodyParser: BodyParser[A])(block: (SecuredRequest[E, A]) => Future[Result]): Action[A]
    Definition Classes
    ActionBuilder
  12. final def async(block: (SecuredRequest[E, P]) => Future[Result]): Action[P]
    Definition Classes
    ActionBuilder
  13. final def async(block: => Future[Result]): Action[AnyContent]
    Definition Classes
    ActionBuilder
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  15. def compose[B](other: ActionBuilder[Request, B]): ActionBuilder[[B]SecuredRequest[E, B], B]
    Definition Classes
    ActionFunction
  16. def compose[Q[_]](other: ActionFunction[Q, Request]): ActionFunction[Q, [B]SecuredRequest[E, B]]
    Definition Classes
    ActionFunction
  17. def composeAction[A](action: Action[A]): Action[A]
    Attributes
    protected
    Definition Classes
    ActionBuilder
  18. def composeParser[A](bodyParser: BodyParser[A]): BodyParser[A]
    Attributes
    protected
    Definition Classes
    ActionBuilder
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def executionContext: ExecutionContext

    Get the execution context to run the request in.

    Get the execution context to run the request in.

    returns

    The execution context.

    Attributes
    protected
    Definition Classes
    SecuredActionBuilder → ActionFunction
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  22. def invokeBlock[B](request: Request[B], block: (SecuredRequest[E, B]) => Future[Result]): Future[Result]

    Invokes the block.

    Invokes the block.

    B

    The type of the request body.

    request

    The current request.

    block

    The block of code to invoke.

    returns

    A handler result.

    Definition Classes
    SecuredActionBuilder → ActionFunction
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  27. val parser: BodyParser[P]
    Definition Classes
    SecuredActionBuilder → ActionBuilder
  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. val requestHandler: SecuredRequestHandlerBuilder[E]
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ActionBuilder[[B]SecuredRequest[E, B], P]

Inherited from ActionFunction[Request, [B]SecuredRequest[E, B]]

Inherited from AnyRef

Inherited from Any

Ungrouped