net.liftweb.mapper.CRUDify

trait CRUDify

trait CRUDify[KeyType, CrudType <: KeyedMapper[KeyType, CrudType]]

 extends ScalaObject


This trait automatically adds CRUD (Create, read, update and delete) operations to an existing MetaMapper object. Various methods can be overridden to customize which operations are available to a user and how things are displayed. For example, you can disable deletion of entities by overriding deleteMenuLoc to Empty. Note: Compilation will fail if you try to mix this into a Mapper instead of the associated MetaMapper. You have been warned.


Source: CRUDify.scala(38)

Direct Known Subclasses

LongCRUDify,

 Fields

CreateItem.. lazy val CreateItem String
DeleteItem.. lazy val DeleteItem String
EditItem.. lazy val EditItem String
ListItems.. lazy val ListItems String
Prefix.. lazy val Prefix List[String]
ViewItem.. lazy val ViewItem String
_createTemplate.. def _createTemplate Elem
_deleteTemplate.. def _deleteTemplate Elem
_editTemplate.. def _editTemplate Elem
_showAllTemplate.. def _showAllTemplate Elem
_viewTemplate.. def _viewTemplate Elem
calcCreateItem.. def calcCreateItem String
calcDeleteItem.. def calcDeleteItem String
calcEditItem.. def calcEditItem String
calcListItems.. def calcListItems String
calcPrefix.. def calcPrefix List[String]
calcViewItem.. def calcViewItem String
createButton.. def createButton String
createClass.. def createClass String
createId.. def createId String
createMenuLoc.. def createMenuLoc
The menu item for creating items (make this "Empty" to disable)
Box[Menu]
createMenuLocParams.. def createMenuLocParams
Override to include new Params for the create menu
List[LocParam]
createMenuName.. def createMenuName String
createPath.. lazy val createPath List[String]
createPathString.. lazy val createPathString String
deleteButton.. def deleteButton String
deleteClass.. def deleteClass String
deleteId.. def deleteId String
deleteMenuLoc.. def deleteMenuLoc
The menu item for deleting an item (make this "Empty" to disable)
Box[Menu]
deleteMenuLocParams.. def deleteMenuLocParams
Override to include new Params for the delete menu
List[LocParam[CrudType]]
deleteMenuName.. def deleteMenuName String
deletePath.. lazy val deletePath List[String]
deletePathString.. lazy val deletePathString String
displayHtml.. def displayHtml NodeSeq
displayName.. def displayName String
editButton.. def editButton String
editClass.. def editClass String
editErrorClass.. def editErrorClass String
editId.. def editId String
editMenuLoc.. def editMenuLoc
The menu item for editing an item (make this "Empty" to disable)
Box[Menu]
editMenuLocParams.. def editMenuLocParams
Override to include new Params for the edit menu
List[LocParam[CrudType]]
editMenuName.. def editMenuName String
editPath.. lazy val editPath List[String]
editPathString.. lazy val editPathString String
fieldsForList.. def fieldsForList
The fields displayed on the list page [details]
By default all the displayed fields, but this list can be shortened.
List[MappedField[Any, CrudType]]
findForListParams.. def findForListParams List[QueryParam[CrudType]]
listPath.. lazy val listPath List[String]
listPathString.. lazy val listPathString String
locSnippets.. lazy val locSnippets DispatchLocSnippets
menus.. def menus List[Menu]
nextWord.. def nextWord String
previousWord.. def previousWord String
referer.. def referer String
showAllClass.. def showAllClass String
showAllId.. def showAllId String
showAllMenuLoc.. def showAllMenuLoc
The menu item for listing items (make this "Empty" to disable)
Box[Menu]
showAllMenuLocParams.. def showAllMenuLocParams
Override to include new Params for the show all menu
List[LocParam]
showAllMenuName.. def showAllMenuName String
viewClass.. def viewClass String
viewId.. def viewId String
viewMenuLoc.. def viewMenuLoc
The menu item for viewing an item (make this "Empty" to disable)
Box[Menu]
viewMenuLocParams.. def viewMenuLocParams
Override to include new Params for the view menu
List[LocParam[CrudType]]
viewMenuName.. def viewMenuName String
viewPath.. lazy val viewPath List[String]
viewPathString.. lazy val viewPathString String

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
createTemplate.. def createTemplate NodeSeq
crudDoForm.. def crudDoForm(item : CrudType, noticeMsg : String)(in : NodeSeq) NodeSeq
deleteTemplate.. def deleteTemplate NodeSeq
editTemplate.. def editTemplate NodeSeq
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
findForList.. def findForList(start : Long, count : Int) List[CrudType]
findForParam.. def findForParam(in : String) Box[CrudType]
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
obscurePrimaryKey.. def obscurePrimaryKey(in : String) String
obscurePrimaryKey.. def obscurePrimaryKey(in : CrudType) String
pageWrapper.. def pageWrapper(body : NodeSeq) NodeSeq
showAllTemplate.. def showAllTemplate NodeSeq
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
viewTemplate.. def viewTemplate NodeSeq
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.