Class

com.mohiva.play.silhouette.api.actions

SecuredActionBuilder

Related Doc: package actions

Permalink

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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SecuredActionBuilder
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ActionBuilder
  7. ActionFunction
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

    requestHandler

    The request handler instance.

    parser

    The body parser.

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. def andThen[Q[_]](other: ActionFunction[[B]SecuredRequest[E, B], Q]): ActionBuilder[Q, P]

    Permalink
    Definition Classes
    ActionBuilder → ActionFunction
  5. def apply(authorization: Authorization[E.I, E.A]): SecuredActionBuilder[E, P]

    Permalink

    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]

    Permalink

    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]

    Permalink
    Definition Classes
    ActionBuilder
  8. final def apply(block: (SecuredRequest[E, P]) ⇒ Result): Action[P]

    Permalink
    Definition Classes
    ActionBuilder
  9. final def apply[A](bodyParser: BodyParser[A]): ActionBuilder[[B]SecuredRequest[E, B], A]

    Permalink
    Definition Classes
    ActionBuilder
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. final def async[A](bodyParser: BodyParser[A])(block: (SecuredRequest[E, A]) ⇒ Future[Result]): Action[A]

    Permalink
    Definition Classes
    ActionBuilder
  12. final def async(block: (SecuredRequest[E, P]) ⇒ Future[Result]): Action[P]

    Permalink
    Definition Classes
    ActionBuilder
  13. final def async(block: ⇒ Future[Result]): Action[AnyContent]

    Permalink
    Definition Classes
    ActionBuilder
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def compose[B](other: ActionBuilder[Request, B]): ActionBuilder[[B]SecuredRequest[E, B], B]

    Permalink
    Definition Classes
    ActionFunction
  16. def compose[Q[_]](other: ActionFunction[Q, Request]): ActionFunction[Q, [B]SecuredRequest[E, B]]

    Permalink
    Definition Classes
    ActionFunction
  17. def composeAction[A](action: Action[A]): Action[A]

    Permalink
    Attributes
    protected
    Definition Classes
    ActionBuilder
  18. def composeParser[A](bodyParser: BodyParser[A]): BodyParser[A]

    Permalink
    Attributes
    protected
    Definition Classes
    ActionBuilder
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def executionContext: ExecutionContext

    Permalink

    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. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def invokeBlock[B](request: Request[B], block: (SecuredRequest[E, B]) ⇒ Future[Result]): Future[Result]

    Permalink

    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
  24. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  28. val parser: BodyParser[P]

    Permalink

    The body parser.

    The body parser.

    Definition Classes
    SecuredActionBuilder → ActionBuilder
  29. val requestHandler: SecuredRequestHandlerBuilder[E]

    Permalink

    The request handler instance.

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. final def wait(): Unit

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

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

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

Inherited from Serializable

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