skinny.controller

SkinnyApiResourceActions

trait SkinnyApiResourceActions[Id] extends AnyRef

Actions for Skinny API resource.

Self Type
SkinnyApiResourceActions[Id] with SkinnyControllerCommonBase
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SkinnyApiResourceActions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def createForm: MapValidator

    Input form for creation

    Input form for creation

    Attributes
    protected
  2. abstract def createFormStrongParameters: Seq[(String, ParamType)]

    Strong parameter definitions for creation form

    Strong parameter definitions for creation form

    Attributes
    protected
  3. abstract def model: SkinnyModel[Id, _]

    SkinnyModel for this resource.

    SkinnyModel for this resource.

    Attributes
    protected
  4. abstract def resourceName: String

    Resource name in the singular.

    Resource name in the singular. This name will be used for path and validator's prefix.

    Attributes
    protected
  5. abstract def resourcesName: String

    Resource name in the plural.

    Resource name in the plural. This name will be used for path and directory name to locale template files.

    Attributes
    protected
  6. abstract def updateForm: MapValidator

    Input form for modification

    Input form for modification

    Attributes
    protected
  7. abstract def updateFormStrongParameters: Seq[(String, ParamType)]

    Strong parameter definitions for modification form

    Strong parameter definitions for modification form

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def countResources(): Long

    Attributes
    protected
  9. def createParams: Params

    Params for creation.

    Params for creation.

    Attributes
    protected
  10. def createResource()(implicit format: Format = Format.HTML): Any

    Creates new resource.

    Creates new resource.

    POST /{resources}

    format

    format

    returns

    created response if success

  11. def debugLoggingParameters(form: MapValidator, id: Option[Id] = None): Unit

    Outputs debug logging for passed parameters.

    Outputs debug logging for passed parameters.

    form

    input form

    id

    id if exists

    Attributes
    protected
  12. def debugLoggingPermittedParameters(parameters: PermittedStrongParameters, id: Option[Id] = None): Unit

    Outputs debug logging for permitted parameters.

    Outputs debug logging for permitted parameters.

    parameters

    permitted strong parameters

    id

    id if exists

    Attributes
    protected
  13. def destroyResource(id: Id)(implicit format: Format = Format.HTML): Any

    Destroys the specified resource.

    Destroys the specified resource.

    DELETE /{resources}/{id}

    id

    id

    format

    format

    returns

    result

  14. def doCreateAndReturnId(parameters: PermittedStrongParameters): Id

    Executes resource creation.

    Executes resource creation.

    parameters

    permitted parameters

    returns

    generated resource id

    Attributes
    protected
  15. def doDestroy(id: Id): Int

    Executes deletion of the specified single resource.

    Executes deletion of the specified single resource.

    id

    id

    returns

    count

    Attributes
    protected
  16. def doUpdate(id: Id, parameters: PermittedStrongParameters): Int

    Executes modification for the specified resource.

    Executes modification for the specified resource.

    id

    id

    parameters

    permitted parameters

    returns

    count

    Attributes
    protected
  17. def enablePagination: Boolean

    Attributes
    protected
  18. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def findResource(id: Id): Option[_]

    Attributes
    protected
  22. def findResources(): List[_]

    Attributes
    protected
  23. def findResources(pageSize: Int, pageNo: Int): List[_]

    Attributes
    protected
  24. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  26. def idName: String

    Id field name.

    Id field name.

    Attributes
    protected
  27. def idParamName: String

    Id parameter name.

    Id parameter name.

    Attributes
    protected
  28. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  30. final def normalizedResourcesBasePath: String

    Normalized base path.

    Normalized base path. This method should not be overridden.

    Attributes
    protected
  31. final def notify(): Unit

    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  33. def pageNoParamName: String

    Attributes
    protected
  34. def pageSize: Int

    Attributes
    protected
  35. def pageSizeParamName: String

    Attributes
    protected
  36. def resourcesBasePath: String

    Base path.

    Base path.

    Attributes
    protected
  37. def resourcesBasePathPrefix: String

    Base path prefix.

    Base path prefix. (e.g. /admin/{resourcesName} )

    Attributes
    protected
  38. def showResource(id: Id)(implicit format: Format = Format.HTML): Any

    Show single resource.

    Show single resource.

    GET /{resources}/{id} GET /{resources}/{id}.xml GET /{resources}/{id}.json

    id

    id

    format

    format

    returns

    single resource

  39. def showResources()(implicit format: Format = Format.HTML): Any

    Shows a list of resource.

    Shows a list of resource.

    GET /{resources}/ GET /{resources}/?page=1&size=10 GET /{resources} GET /{resources}.xml GET /{resources}.json

    format

    format

    returns

    list of resource

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

    Definition Classes
    AnyRef
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. def updateParams: Params

    Params for modification.

    Params for modification.

    Attributes
    protected
  43. def updateResource(id: Id)(implicit format: Format = Format.HTML): Any

    Updates the specified single resource.

    Updates the specified single resource.

    PUT /{resources}/{id}

    id

    id

    format

    format

    returns

    result

  44. def useRelativePathForResourcesBasePath: Boolean

    Use relative path if true.

    Use relative path if true. This is set as false by default.

    If you set this as true, routing will become simpler but /{resources}.xml or /{resources}.json don't work.

    Attributes
    protected
  45. def validation(params: Params, validations: NewValidation*)(implicit locale: Locale = ...): MapValidator

    Creates validator with prefix(resourceName).

    Creates validator with prefix(resourceName).

    params

    params

    validations

    validations

    locale

    current locale

    returns

    validator

  46. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def xmlItemName: String

    Each resource item element name in the XML response.

    Each resource item element name in the XML response.

    Attributes
    protected
  50. def xmlRootName: String

    Root element name in the XML response.

    Root element name in the XML response.

    Attributes
    protected

Inherited from AnyRef

Inherited from Any

Ungrouped