final case class AuthContext(userId: String, user: AbstractUser = AbstractUser.Anonymous, perms: List[String] = Nil, correlationId: Option[String] = None, headers: Map[String, String] = Map.empty, info: JsonObject = JsonObject.empty) extends Product with Serializable

This object allows to manage an AuthContext inside the call in Elasticsearch. It can be used to monitor rest calls, API integration patterns, better logging.

userId

the id of the user

perms

the permission of the user

correlationId

the correlationID of the call

headers

some headers useful to pass information

info

extra json ino to export for logs

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AuthContext
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AuthContext(userId: String, user: AbstractUser = AbstractUser.Anonymous, perms: List[String] = Nil, correlationId: Option[String] = None, headers: Map[String, String] = Map.empty, info: JsonObject = JsonObject.empty)

    userId

    the id of the user

    perms

    the permission of the user

    correlationId

    the correlationID of the call

    headers

    some headers useful to pass information

    info

    extra json ino to export for logs

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. val correlationId: Option[String]
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def getMapInfo: Map[String, String]
  11. def getProperty[T](name: String, default: T)(implicit decoder: Decoder[T]): Either[FrameworkException, T]
  12. def getProperty[T](name: String)(implicit decoder: Decoder[T]): Either[FrameworkException, T]

    Get a property object from an user

    Get a property object from an user

    T

    Type of the property

    name

    name of the property

    decoder

    decoder of the property type

    returns

    a Property or an Exception

  13. val headers: Map[String, String]
  14. val info: JsonObject
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. val perms: List[String]
  20. def setProperty[T](name: String, property: T)(implicit encoder: Encoder[T]): AuthContext

    Add a new property object to an user

    Add a new property object to an user

    T

    Type of the property

    name

    name of the property

    property

    a property object to add

    encoder

    encoder of the property type

    returns

    the user

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def systemNoSQLContext(index: String): AuthContext
  23. def systemNoSQLContext(): AuthContext
  24. val user: AbstractUser
  25. val userId: String
  26. def userNoSQLContext(index: String)(implicit user: AbstractUser): AuthContext
  27. def userNoSQLContext(implicit user: AbstractUser): AuthContext
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped