Trait

org.coursera.naptime.resources

CollectionResource

Related Doc: package resources

Permalink

trait CollectionResource[ParentResource <: Resource[_], K, M] extends Resource[M]

Defines methods that collection resources can implement

Linear Supertypes
Resource[M], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CollectionResource
  2. Resource
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type AncestorKeys = ParentResource.PathKey

    Permalink

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

  2. type KeyType = K

    Permalink
  3. abstract type OptPathKey <: :::[Option[KeyType], ParentResource.PathKey]

    Permalink
  4. abstract type PathKey <: :::[KeyType, ParentResource.PathKey]

    Permalink

    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]

    Permalink
    Definition Classes
    Resource

Abstract Value Members

  1. abstract def keyFormat: KeyFormat[KeyType]

    Permalink
  2. abstract val parentResource: ParentResource

    Permalink

    A references to the parent resource (used to construct the path key parser).

    A references to the parent resource (used to construct the path key parser).

    Must be implemented in the resources that this trait is mixed into, typically with a val param.

    class MyNestedResource @Inject() (
        val parentResource: MyParentResource)
      extends CollectionResource[KeyType, ElemType]
      with NestedCollection[MyParentResource, KeyType] {
      // ...
    }
    Attributes
    protected[this]
  3. implicit abstract def resourceFormat: OFormat[M]

    Permalink
    Definition Classes
    Resource
  4. abstract def resourceName: String

    Permalink
    Definition Classes
    Resource

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. implicit val paginationConfiguration: PaginationConfiguration

    Permalink

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

  16. def resourceVersion: Int

    Permalink
    Definition Classes
    Resource
  17. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from Resource[M]

Inherited from AnyRef

Inherited from Any

Ungrouped