skinny.controller

SkinnyResourceActions

trait SkinnyResourceActions[Id] extends SkinnyApiResourceActions[Id]

Actions for Skinny resource.

Self Type
SkinnyResourceActions[Id] with SkinnyControllerBase with SkinnyWebPageControllerFeatures
Linear Supertypes
SkinnyApiResourceActions[Id], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SkinnyResourceActions
  2. SkinnyApiResourceActions
  3. AnyRef
  4. 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
    Definition Classes
    SkinnyApiResourceActions
  2. abstract def createFormStrongParameters: Seq[(String, ParamType)]

    Strong parameter definitions for creation form

    Strong parameter definitions for creation form

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

    SkinnyModel for this resource.

    SkinnyModel for this resource.

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  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
    Definition Classes
    SkinnyResourceActionsSkinnyApiResourceActions
  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
    Definition Classes
    SkinnyResourceActionsSkinnyApiResourceActions
  6. abstract def updateForm: MapValidator

    Input form for modification

    Input form for modification

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

    Strong parameter definitions for modification form

    Strong parameter definitions for modification form

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions

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
    Definition Classes
    SkinnyApiResourceActions
  9. def createParams: Params

    Params for creation.

    Params for creation.

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

    Creates new resource.

    Creates new resource.

    POST /{resources}

    format

    format

    returns

    created response if success

    Definition Classes
    SkinnyResourceActionsSkinnyApiResourceActions
  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
    Definition Classes
    SkinnyApiResourceActions
  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
    Definition Classes
    SkinnyApiResourceActions
  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

    Definition Classes
    SkinnyResourceActionsSkinnyApiResourceActions
  14. def doCreateAndReturnId(parameters: PermittedStrongParameters): Id

    Executes resource creation.

    Executes resource creation.

    parameters

    permitted parameters

    returns

    generated resource id

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  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
    Definition Classes
    SkinnyApiResourceActions
  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
    Definition Classes
    SkinnyApiResourceActions
  17. def editResource(id: Id)(implicit format: Format = Format.HTML): Any

    Shows input form for modification.

    Shows input form for modification.

    GET /{resources}/{id}/edit

    id

    id

    format

    format

    returns

    input form

  18. def enablePagination: Boolean

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  19. final def eq(arg0: AnyRef): Boolean

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

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

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

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  23. def findResources(): List[_]

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  24. def findResources(pageSize: Int, pageNo: Int): List[_]

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  25. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  27. def idName: String

    Id field name.

    Id field name.

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  28. def idParamName: String

    Id parameter name.

    Id parameter name.

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def itemName: String

    Item variable name in view templates.

    Item variable name in view templates.

    Attributes
    protected
  31. def itemsName: String

    Items variable name in view templates.

    Items variable name in view templates.

    Attributes
    protected
  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. def newResource()(implicit format: Format = Format.HTML): Any

    Shows input form for creation.

    Shows input form for creation.

    GET /{resources}/new

    format

    format

    returns

    input form

  34. final def normalizedResourcesBasePath: String

    Normalized base path.

    Normalized base path. This method should not be overridden.

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  35. final def notify(): Unit

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

    Definition Classes
    AnyRef
  37. def pageNoParamName: String

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  38. def pageSize: Int

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  39. def pageSizeParamName: String

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  40. def resourcesBasePath: String

    Base path.

    Base path.

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  41. def resourcesBasePathPrefix: String

    Base path prefix.

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

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  42. def setCreateCompletionFlash(): Unit

    Set notice flash message for successful completion of creation.

    Set notice flash message for successful completion of creation.

    Attributes
    protected
  43. def setDestroyCompletionFlash(): FlashMap

    Set notice flash message for successful completion of deletion.

    Set notice flash message for successful completion of deletion.

    Attributes
    protected
  44. def setUpdateCompletionFlash(): FlashMap

    Set notice flash message for successful completion of modification.

    Set notice flash message for successful completion of modification.

    Attributes
    protected
  45. 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

    Definition Classes
    SkinnyResourceActionsSkinnyApiResourceActions
  46. 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

    Definition Classes
    SkinnyResourceActionsSkinnyApiResourceActions
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  48. def toString(): String

    Definition Classes
    AnyRef → Any
  49. def totalPagesAttributeName: String

    Attributes
    protected
  50. def updateParams: Params

    Params for modification.

    Params for modification.

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  51. 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

    Definition Classes
    SkinnyResourceActionsSkinnyApiResourceActions
  52. 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
    Definition Classes
    SkinnyApiResourceActions
  53. def validation(params: Params, validations: NewValidation*)(implicit locale: Locale = currentLocale.orNull[Locale]): MapValidator

    Creates validator with prefix(resourceName).

    Creates validator with prefix(resourceName).

    params

    params

    validations

    validations

    locale

    current locale

    returns

    validator

    Definition Classes
    SkinnyResourceActionsSkinnyApiResourceActions
  54. def viewsDirectoryPath: String

    Directory path which contains view templates under src/main/webapp/WEB-INF/views.

    Directory path which contains view templates under src/main/webapp/WEB-INF/views.

    Attributes
    protected
  55. final def wait(): Unit

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

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

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

    Each resource item element name in the XML response.

    Each resource item element name in the XML response.

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  59. def xmlRootName: String

    Root element name in the XML response.

    Root element name in the XML response.

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions

Inherited from SkinnyApiResourceActions[Id]

Inherited from AnyRef

Inherited from Any

Ungrouped