Trait

cloud.artik.cloudconnector.api_v1

Context

Related Doc: package api_v1

Permalink

trait Context extends AnyRef

Data provide from Context are read-only

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Context
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def clientId: String

    Permalink

    client Secret declared in CloudConnector's configuration.

  2. abstract def clientSecret: String

    Permalink

    client Secret declared in CloudConnector's configuration.

  3. abstract def cloudId: String

    Permalink

    id of the CloudConnector/DeviceType.

  4. abstract def debug(obj: AnyRef): Unit

    Permalink

    log obj.

    log obj. in debug level (or print)

  5. abstract def findExtSubDeviceId(info: DeviceInfo): List[String]

    Permalink

    Find the list of external id of sub-devices

    Find the list of external id of sub-devices

    info

    the DeviceInfo of the parent device

    returns

    the list of external id (as String)

  6. abstract def findExtSubDeviceTypeIdByExtSubDeviceId(info: DeviceInfo, extSubDeviceId: String): Option[String]

    Permalink

    Find ExtDtid of the sub device

    Find ExtDtid of the sub device

    info

    the DeviceInfo of the parent device

    extSubDeviceId

    the external id of the sub-device

    returns

    the ExtDtid of the sub-device or None if not found or not set

  7. abstract def findLatestUserData(info: DeviceInfo): Option[String]

    Permalink

    Find the latest value of user data.

    Find the latest value of user data. It's a costly call (vs using DeviceInfo.userData that includes the value when notification or action was received), use with care.

    info

    the DeviceInfo of the parent device

    returns

    the user data of the device or None if not found or not set

  8. abstract def findUserDataByExtSubDeviceId(info: DeviceInfo, extSubDeviceId: String): Option[String]

    Permalink

    Find user data of the sub device

    Find user data of the sub device

    info

    the DeviceInfo of the parent device

    extSubDeviceId

    the external id of the sub-device

    returns

    the user data of the sub-device or None if not found or not set

  9. abstract def now(): Long

    Permalink

    epoch in millis

  10. abstract def parameters: Map[String, String]

    Permalink

    Read-only Map to access Custom Parameters provided in CloudConnector's configuration.

    Read-only Map to access Custom Parameters provided in CloudConnector's configuration.

    // in groovy
    ctx.parameters()["key"] == "value"
  11. abstract def requestDefTools: RequestDefTools

    Permalink
  12. abstract def scope: List[String]

    Permalink

    read-only list of scopes declared in CloudConnector's configuration.

Concrete 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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Deprecated Value Members

  1. final def findExtDid(info: DeviceInfo): List[String]

    Permalink
    Annotations
    @deprecated
    Deprecated

    replaced by findExtSubDeviceId

  2. final def findExtDtidByExtDid(info: DeviceInfo, extSubDeviceId: String): Option[String]

    Permalink
    Annotations
    @deprecated
    Deprecated

    replaced by findExtSubDeviceTypeIdByExtSubDeviceId

  3. final def findUserDataByExtDid(info: DeviceInfo, extSubDeviceId: String): Option[String]

    Permalink
    Annotations
    @deprecated
    Deprecated

    replaced by findUserDataByExtSubDeviceId

Inherited from AnyRef

Inherited from Any

Ungrouped