Packages

c

org.coursera.naptime.resources

CourierCollectionResource

abstract class CourierCollectionResource[K, M <: ScalaRecordTemplate] extends NestedCourierCollectionResource[RootResource, K, M]

If the resource is a courier model, extending from CourierCollectionResource removes some boilerplate.

If you have a nested resource, check out NestedCourierCollectionResource.

K

The key type of the resource.

M

The "value" type of the resource.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CourierCollectionResource
  2. NestedCourierCollectionResource
  3. CollectionResource
  4. Resource
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CourierCollectionResource()(implicit kf: KeyFormat[K], classTag: ClassTag[M], application: Application)

    kf

    The KeyFormat for the key type in the resource.

    classTag

    The concrete class tag for the value type in the resource.

Type Members

  1. type AncestorKeys = RootResource.PathKey

    The (Hlist-like) collection of ancestor keys has this type.

    The (Hlist-like) collection of ancestor keys has this type.

    Definition Classes
    CollectionResource
  2. type KeyType = K
    Definition Classes
    CollectionResource
  3. abstract type OptPathKey <: :::[Option[KeyType], RootResource.PathKey]
    Definition Classes
    CollectionResource
  4. abstract type PathKey <: :::[KeyType, RootResource.PathKey]

    The (HList-like) collection of all keys that identifies a single element of this collection.

    The (HList-like) collection of all keys that identifies a single element of this collection.

    Definition Classes
    CollectionResourceResource
  5. abstract type PathParser <: PathKeyParser[PathKey]
    Definition Classes
    Resource

Abstract Value Members

  1. abstract def resourceName: String
    Definition Classes
    Resource

Concrete 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 lazy val BaseFields: ResourceFields[M]
    Attributes
    protected[this]
    Definition Classes
    NestedCourierCollectionResource
  5. implicit def Fields: ResourceFields[M]
  6. def Nap[RACType, ResponseType]: RestActionBuilder[RACType, Unit, AnyContent, K, M, ResponseType]

    Helper to easily construct Naptime actions.

    Helper to easily construct Naptime actions.

    Typically, all actions in a naptime resource will all use the same auth parser and policy, or will want to use the same error handling function for all requests. These resources should do something similar to the following:

    class MyResource extends TopLevelCollectionResource[MyKeyType, MyValueType] {
      def Rest[RACType, ResponseType] =
        Nap[RACType, ResponseType].auth(myAuthPolicy).catching(errorFn)
    
    ...
    }
    Definition Classes
    CollectionResource
  7. def OkIfPresent(key: K, maybeElement: Option[M]): RestResponse[Keyed[K, M]]
    Definition Classes
    CollectionResource
  8. def OkIfPresent[T](a: Option[T]): RestResponse[T]
    Definition Classes
    CollectionResource
  9. implicit val application: Application
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. implicit val executionContext: ExecutionContext
    Attributes
    protected
    Definition Classes
    CollectionResource
  15. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. implicit final val keyFormat: KeyFormat[K]
  20. implicit val materializer: Materializer
    Attributes
    protected
    Definition Classes
    CollectionResource
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. implicit val paginationConfiguration: PaginationConfiguration

    Provide a default pagination configuration for the resource that users can override and configure as needed.

    Provide a default pagination configuration for the resource that users can override and configure as needed.

    Definition Classes
    CollectionResource
  25. final val parentResource: RootResource
  26. implicit final lazy val resourceFormat: OFormat[M]
  27. def resourceVersion: Int
    Definition Classes
    Resource
  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from CollectionResource[RootResource, K, M]

Inherited from Resource[M]

Inherited from AnyRef

Inherited from Any

Ungrouped