Trait

skinny.controller

SkinnyResourceActions

Related Doc: package controller

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def createForm: MapValidator

    Permalink

    Input form for creation

    Input form for creation

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

    Permalink

    Strong parameter definitions for creation form

    Strong parameter definitions for creation form

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

    Permalink

    SkinnyModel for this resource.

    SkinnyModel for this resource.

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  4. abstract def resourceName: String

    Permalink

    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

    Permalink

    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

    Permalink

    Input form for modification

    Input form for modification

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

    Permalink

    Strong parameter definitions for modification form

    Strong parameter definitions for modification form

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions

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. def countResources(): Long

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  7. def createParams: Params

    Permalink

    Params for creation.

    Params for creation.

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

    Permalink

    Creates new resource.

    Creates new resource.

    POST /{resources}

    format

    format

    returns

    created response if success

    Definition Classes
    SkinnyResourceActionsSkinnyApiResourceActions
  9. def debugLoggingParameters(form: MapValidator, id: Option[Id] = None): Unit

    Permalink

    Outputs debug logging for passed parameters.

    Outputs debug logging for passed parameters.

    form

    input form

    id

    id if exists

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  10. def debugLoggingPermittedParameters(parameters: PermittedStrongParameters, id: Option[Id] = None): Unit

    Permalink

    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
  11. def destroyResource(id: Id)(implicit format: Format = Format.HTML): Any

    Permalink

    Destroys the specified resource.

    Destroys the specified resource.

    DELETE /{resources}/{id}

    id

    id

    format

    format

    returns

    result

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

    Permalink

    Executes resource creation.

    Executes resource creation.

    parameters

    permitted parameters

    returns

    generated resource id

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  13. def doDestroy(id: Id): Int

    Permalink

    Executes deletion of the specified single resource.

    Executes deletion of the specified single resource.

    id

    id

    returns

    count

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  14. def doUpdate(id: Id, parameters: PermittedStrongParameters): Int

    Permalink

    Executes modification for the specified resource.

    Executes modification for the specified resource.

    id

    id

    parameters

    permitted parameters

    returns

    count

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  15. def editResource(id: Id)(implicit format: Format = Format.HTML): Any

    Permalink

    Shows input form for modification.

    Shows input form for modification.

    GET /{resources}/{id}/edit

    id

    id

    format

    format

    returns

    input form

  16. def enablePagination: Boolean

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. def idName: String

    Permalink

    Id field name.

    Id field name.

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  26. def idParamName: String

    Permalink

    Id parameter name.

    Id parameter name.

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

    Permalink
    Definition Classes
    Any
  28. def itemName: String

    Permalink

    Item variable name in view templates.

    Item variable name in view templates.

    Attributes
    protected
  29. def itemsName: String

    Permalink

    Items variable name in view templates.

    Items variable name in view templates.

    Attributes
    protected
  30. def messageResourceName: String

    Permalink

    Resource name in messages.conf

    Resource name in messages.conf

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  31. final def ne(arg0: AnyRef): Boolean

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

    Permalink

    Shows input form for creation.

    Shows input form for creation.

    GET /{resources}/new

    format

    format

    returns

    input form

  33. final def normalizedResourcesBasePath: String

    Permalink

    Normalized base path.

    Normalized base path. This method should not be overridden.

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

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

    Permalink
    Definition Classes
    AnyRef
  36. def pageNoParamName: String

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  37. def pageSize: Int

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  38. def pageSizeParamName: String

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  39. def resourcesBasePath: String

    Permalink

    Base path.

    Base path.

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  40. def resourcesBasePathPrefix: String

    Permalink

    Base path prefix.

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

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

    Permalink

    Set notice flash message for successful completion of creation.

    Set notice flash message for successful completion of creation.

    Attributes
    protected
  42. def setDestroyCompletionFlash(): FlashMap

    Permalink

    Set notice flash message for successful completion of deletion.

    Set notice flash message for successful completion of deletion.

    Attributes
    protected
  43. def setUpdateCompletionFlash(): FlashMap

    Permalink

    Set notice flash message for successful completion of modification.

    Set notice flash message for successful completion of modification.

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

    Permalink

    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
  45. def showResources()(implicit format: Format = Format.HTML): Any

    Permalink

    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
  46. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  48. def totalPagesAttributeName: String

    Permalink
    Attributes
    protected
  49. def updateParams: Params

    Permalink

    Params for modification.

    Params for modification.

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  50. def updateResource(id: Id)(implicit format: Format = Format.HTML): Any

    Permalink

    Updates the specified single resource.

    Updates the specified single resource.

    PUT /{resources}/{id}

    id

    id

    format

    format

    returns

    result

    Definition Classes
    SkinnyResourceActionsSkinnyApiResourceActions
  51. def useRelativePathForResourcesBasePath: Boolean

    Permalink

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

    Permalink

    Creates validator with prefix(resourceName).

    Creates validator with prefix(resourceName).

    params

    params

    validations

    validations

    locale

    current locale

    returns

    validator

    Definition Classes
    SkinnyResourceActionsSkinnyApiResourceActions
  53. def viewsDirectoryPath: String

    Permalink

    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
  54. final def wait(): Unit

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

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

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

    Permalink

    Each resource item element name in the XML response.

    Each resource item element name in the XML response.

    Attributes
    protected
    Definition Classes
    SkinnyApiResourceActions
  58. def xmlRootName: String

    Permalink

    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