Trait

net.liftweb.squerylrecord

CRUDify

Related Doc: package squerylrecord

Permalink

trait CRUDify[K, T <: Record[T] with KeyedEntity[K]] extends Crudify

Self Type
CRUDify[K, T] with MetaRecord[T]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CRUDify
  2. Crudify
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. trait CrudBridge extends AnyRef

    Permalink

    This trait represents a Bridge between TheCrudType and the Crudify trait.

    This trait represents a Bridge between TheCrudType and the Crudify trait. It's not necessary to mix this trait into TheCrudType, but instead provide a mechanism for promoting a TheCrudType to CrudBridge

    Attributes
    protected
    Definition Classes
    Crudify
  2. trait FieldPointerBridge extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    Crudify
  3. type FieldPointerType = Field[_, (CRUDify.this)#TheCrudType]

    Permalink

    A generic representation of a field.

    A generic representation of a field. For example, this represents the abstract "name" field and is used along with an instance of TheCrudType to compute the BaseField that is the "name" field on the specific instance of TheCrudType

    Definition Classes
    CRUDifyCrudify
  4. class SquerylBridge extends (CRUDify.this)#CrudBridge

    Permalink
    Attributes
    protected
  5. class SquerylFieldBridge extends (CRUDify.this)#FieldPointerBridge

    Permalink
    Attributes
    protected
  6. type TheCrudType = T

    Permalink

    The type of records we're manipulating

    The type of records we're manipulating

    Definition Classes
    CRUDifyCrudify

Abstract Value Members

  1. abstract def idFromString(in: String): K

    Permalink
  2. abstract def table: Table[(CRUDify.this)#TheCrudType]

    Permalink

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. lazy val CreateItem: String

    Permalink
    Definition Classes
    Crudify
  5. lazy val DeleteItem: String

    Permalink
    Definition Classes
    Crudify
  6. lazy val EditItem: String

    Permalink
    Definition Classes
    Crudify
  7. lazy val ListItems: String

    Permalink
    Definition Classes
    Crudify
  8. lazy val Prefix: List[String]

    Permalink
    Definition Classes
    Crudify
  9. lazy val ViewItem: String

    Permalink
    Definition Classes
    Crudify
  10. def _createTemplate: Elem

    Permalink

    The core template for creating.

    The core template for creating. Does not include any page wrapping.

    Definition Classes
    Crudify
  11. def _deleteTemplate: Elem

    Permalink

    The core template for deleting.

    The core template for deleting. Does not include any page wrapping.

    Definition Classes
    Crudify
  12. def _editTemplate: Elem

    Permalink

    The core template for editing.

    The core template for editing. Does not include any page wrapping.

    Attributes
    protected
    Definition Classes
    Crudify
  13. def _showAllTemplate: Elem

    Permalink

    The core template for showing record.

    The core template for showing record. Does not include any page wrapping

    Definition Classes
    Crudify
  14. def _viewTemplate: Elem

    Permalink

    The core template for viewing.

    The core template for viewing. Does not include any page wrapping.

    Definition Classes
    Crudify
  15. def addlMenuLocParams: List[AnyLocParam]

    Permalink

    If there are any Loc.LocParams that need to be added to every menu (e.g., a guard for access control of the Crudify screens)

    If there are any Loc.LocParams that need to be added to every menu (e.g., a guard for access control of the Crudify screens)

    Attributes
    protected
    Definition Classes
    Crudify
  16. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  17. def buildBridge(in: (CRUDify.this)#TheCrudType): (CRUDify.this)#SquerylBridge

    Permalink

    This method will instantiate a bridge from TheCrudType so that the appropriate logical operations can be performed on TheCrudType

    This method will instantiate a bridge from TheCrudType so that the appropriate logical operations can be performed on TheCrudType

    Definition Classes
    CRUDifyCrudify
  18. def buildFieldBridge(from: (CRUDify.this)#FieldPointerType): (CRUDify.this)#FieldPointerBridge

    Permalink

    Based on a FieldPointer, build a FieldPointerBridge

    Based on a FieldPointer, build a FieldPointerBridge

    Definition Classes
    CRUDifyCrudify
  19. def calcCreateItem: String

    Permalink
    Definition Classes
    Crudify
  20. def calcDeleteItem: String

    Permalink
    Definition Classes
    Crudify
  21. def calcEditItem: String

    Permalink
    Definition Classes
    Crudify
  22. def calcListItems: String

    Permalink
    Definition Classes
    Crudify
  23. def calcPrefix: List[String]

    Permalink

    What's the prefix for this CRUD.

    What's the prefix for this CRUD. Typically the table name.

    Definition Classes
    CRUDifyCrudify
  24. def calcViewItem: String

    Permalink
    Definition Classes
    Crudify
  25. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def computeFieldFromPointer(instance: (CRUDify.this)#TheCrudType, pointer: (CRUDify.this)#FieldPointerType): Box[(CRUDify.this)#FieldPointerType]

    Permalink

    Given an instance of TheCrudType and FieldPointerType, convert that to an actual instance of a BaseField on the instance of TheCrudType

    Given an instance of TheCrudType and FieldPointerType, convert that to an actual instance of a BaseField on the instance of TheCrudType

    Definition Classes
    CRUDifyCrudify
  27. def create: T

    Permalink

    Vend a new instance of TheCrudType

    Vend a new instance of TheCrudType

    Definition Classes
    CRUDifyCrudify
  28. def createButton: String

    Permalink
    Definition Classes
    Crudify
  29. def createClass: String

    Permalink
    Definition Classes
    Crudify
  30. def createId: String

    Permalink
    Definition Classes
    Crudify
  31. def createMenuLoc: Box[Menu]

    Permalink

    The menu item for creating items (make this "Empty" to disable)

    The menu item for creating items (make this "Empty" to disable)

    Definition Classes
    Crudify
  32. def createMenuLocParams: List[AnyLocParam]

    Permalink

    Override to include new Params for the create menu

    Override to include new Params for the create menu

    Definition Classes
    Crudify
  33. def createMenuName: String

    Permalink
    Definition Classes
    Crudify
  34. lazy val createPath: List[String]

    Permalink
    Definition Classes
    Crudify
  35. lazy val createPathString: String

    Permalink
    Definition Classes
    Crudify
  36. def createTemplate(): NodeSeq

    Permalink

    This is the template that's used to render the page after the optional wrapping of the template in the page wrapper.

    This is the template that's used to render the page after the optional wrapping of the template in the page wrapper.

    Definition Classes
    Crudify
  37. def crudAllNext(first: Long, list: List[(CRUDify.this)#TheCrudType]): (NodeSeq) ⇒ NodeSeq

    Permalink

    Override this method to change how the next link is generated

    Override this method to change how the next link is generated

    Attributes
    protected
    Definition Classes
    Crudify
  38. def crudAllPrev(first: Long): (NodeSeq) ⇒ NodeSeq

    Permalink

    Override this method to change how the previous link is generated

    Override this method to change how the previous link is generated

    Attributes
    protected
    Definition Classes
    Crudify
  39. def crudDoForm(item: (CRUDify.this)#TheCrudType, noticeMsg: String)(in: NodeSeq): NodeSeq

    Permalink
    Definition Classes
    Crudify
  40. def crudyDelete(item: (CRUDify.this)#TheCrudType): (NodeSeq) ⇒ NodeSeq

    Permalink

    Override this method to change how the delete screen is built

    Override this method to change how the delete screen is built

    Attributes
    protected
    Definition Classes
    Crudify
  41. def deleteButton: String

    Permalink
    Definition Classes
    Crudify
  42. def deleteClass: String

    Permalink
    Definition Classes
    Crudify
  43. def deleteId: String

    Permalink
    Definition Classes
    Crudify
  44. def deleteMenuLoc: Box[Menu]

    Permalink

    The menu item for deleting an item (make this "Empty" to disable)

    The menu item for deleting an item (make this "Empty" to disable)

    Definition Classes
    Crudify
  45. def deleteMenuLocParams: List[LocParam[(CRUDify.this)#TheCrudType]]

    Permalink

    Override to include new Params for the delete menu

    Override to include new Params for the delete menu

    Definition Classes
    Crudify
  46. def deleteMenuName: String

    Permalink
    Definition Classes
    Crudify
  47. lazy val deletePath: List[String]

    Permalink
    Definition Classes
    Crudify
  48. lazy val deletePathString: String

    Permalink
    Definition Classes
    Crudify
  49. def deleteTemplate(): NodeSeq

    Permalink

    This is the template that's used to render the page after the optional wrapping of the template in the page wrapper

    This is the template that's used to render the page after the optional wrapping of the template in the page wrapper

    Definition Classes
    Crudify
  50. def displayHtml: NodeSeq

    Permalink
    Definition Classes
    Crudify
  51. def displayName: String

    Permalink
    Definition Classes
    Crudify
  52. def displayRecord(entry: (CRUDify.this)#TheCrudType): (NodeSeq) ⇒ NodeSeq

    Permalink

    Customize the display of records for view menu loc

    Customize the display of records for view menu loc

    Attributes
    protected
    Definition Classes
    Crudify
  53. def doCrudAll: (NodeSeq) ⇒ NodeSeq

    Permalink

    Override this method if you want to change the behavior of displaying records via the crud.all snippet

    Override this method if you want to change the behavior of displaying records via the crud.all snippet

    Attributes
    protected
    Definition Classes
    Crudify
  54. def doCrudAllHeaderItems: (NodeSeq) ⇒ NodeSeq

    Permalink

    Override this method to customize how header items are treated

    Override this method to customize how header items are treated

    Attributes
    protected
    Definition Classes
    Crudify
  55. def doCrudAllRowItem(c: (CRUDify.this)#TheCrudType): (NodeSeq) ⇒ NodeSeq

    Permalink

    Override this method to customize how a crudAll line is generated

    Override this method to customize how a crudAll line is generated

    Attributes
    protected
    Definition Classes
    Crudify
  56. def doCrudAllRows(list: List[(CRUDify.this)#TheCrudType]): (NodeSeq) ⇒ NodeSeq

    Permalink

    Override this method to determine how all the rows on a crud page are displayed

    Override this method to determine how all the rows on a crud page are displayed

    Attributes
    protected
    Definition Classes
    Crudify
  57. def doDeleteFields(item: (CRUDify.this)#TheCrudType): (NodeSeq) ⇒ NodeSeq

    Permalink

    Override this method to change how fields are displayed for delete

    Override this method to change how fields are displayed for delete

    Attributes
    protected
    Definition Classes
    Crudify
  58. def doDeleteSubmit(item: (CRUDify.this)#TheCrudType, from: String)(): Nothing

    Permalink

    Override this method to change the behavior of deleting an item

    Override this method to change the behavior of deleting an item

    Attributes
    protected
    Definition Classes
    Crudify
  59. def doDisplayRecordRow(entry: (CRUDify.this)#TheCrudType): (NodeSeq) ⇒ NodeSeq

    Permalink

    Customize the display of a row for displayRecord

    Customize the display of a row for displayRecord

    Attributes
    protected
    Definition Classes
    Crudify
  60. def editButton: String

    Permalink
    Definition Classes
    Crudify
  61. def editClass: String

    Permalink
    Definition Classes
    Crudify
  62. def editErrorClass: String

    Permalink
    Definition Classes
    Crudify
  63. def editId: String

    Permalink
    Definition Classes
    Crudify
  64. def editMenuLoc: Box[Menu]

    Permalink

    The menu item for editing an item (make this "Empty" to disable)

    The menu item for editing an item (make this "Empty" to disable)

    Definition Classes
    Crudify
  65. def editMenuLocParams: List[LocParam[(CRUDify.this)#TheCrudType]]

    Permalink

    Override to include new Params for the edit menu

    Override to include new Params for the edit menu

    Definition Classes
    Crudify
  66. def editMenuName: String

    Permalink

    The String displayed for menu editing

    The String displayed for menu editing

    Definition Classes
    Crudify
  67. lazy val editPath: List[String]

    Permalink
    Definition Classes
    Crudify
  68. lazy val editPathString: String

    Permalink
    Definition Classes
    Crudify
  69. def editTemplate(): NodeSeq

    Permalink

    This is the template that's used to render the page after the optional wrapping of the template in the page wrapper

    This is the template that's used to render the page after the optional wrapping of the template in the page wrapper

    Definition Classes
    Crudify
  70. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  72. def fieldsForDisplay: List[(CRUDify.this)#FieldPointerType]

    Permalink

    When displaying a record, what fields do we display

    When displaying a record, what fields do we display

    Definition Classes
    CRUDifyCrudify
  73. def fieldsForEditing: List[(CRUDify.this)#FieldPointerType]

    Permalink

    The list of fields to present on a form form editing

    The list of fields to present on a form form editing

    Definition Classes
    Crudify
  74. def fieldsForList: List[(CRUDify.this)#FieldPointerType]

    Permalink

    The fields displayed on the list page.

    The fields displayed on the list page. By default all the displayed fields, but this list can be shortened.

    Definition Classes
    Crudify
  75. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  76. def findForList(start: Long, count: Int): List[(CRUDify.this)#TheCrudType]

    Permalink

    Given a range, find the records.

    Given a range, find the records. Your implementation of this method should enforce ordering (e.g., on primary key).

    Definition Classes
    CRUDifyCrudify
  77. def findForParam(in: String): Box[(CRUDify.this)#TheCrudType]

    Permalink

    Given a String that represents the primary key, find an instance of TheCrudType

    Given a String that represents the primary key, find an instance of TheCrudType

    Definition Classes
    CRUDifyCrudify
  78. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  80. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  81. lazy val listPath: List[String]

    Permalink
    Definition Classes
    Crudify
  82. lazy val listPathString: String

    Permalink
    Definition Classes
    Crudify
  83. lazy val locSnippets: DispatchLocSnippets { val dispatch: PartialFunction[String,scala.xml.NodeSeq => scala.xml.NodeSeq] }

    Permalink
    Definition Classes
    Crudify
  84. def menus: List[Menu]

    Permalink
    Definition Classes
    Crudify
  85. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  86. def nextWord: String

    Permalink
    Definition Classes
    Crudify
  87. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  89. def obscurePrimaryKey(in: String): String

    Permalink

    This method can be used to obscure the primary key.

    This method can be used to obscure the primary key. This is more secure because end users will not have access to the primary key. This method actually does the obfuscation. You can use Mapper's KeyObfuscator class to implement a nice implementation of this method for session-by-session obfuscation.

    By default, there's no obfuscation. Note that if you obfuscate the primary key, you need to update the findForParam method to accept the obfuscated keys (and translate them back.)

    Definition Classes
    Crudify
  90. def obscurePrimaryKey(in: (CRUDify.this)#TheCrudType): String

    Permalink

    This method can be used to obscure the primary key.

    This method can be used to obscure the primary key. This is more secure because end users will not have access to the primary key.

    Definition Classes
    Crudify
  91. def pageWrapper(body: NodeSeq): NodeSeq

    Permalink
    Definition Classes
    Crudify
  92. def previousWord: String

    Permalink
    Definition Classes
    Crudify
  93. def referer: String

    Permalink
    Definition Classes
    Crudify
  94. def rowsPerPage: Int

    Permalink

    This method defines how many rows are displayed per page.

    This method defines how many rows are displayed per page. By default, it's hard coded at 20, but you can make it session specific or change the default by overriding this method.

    Attributes
    protected
    Definition Classes
    Crudify
  95. def showAllClass: String

    Permalink
    Definition Classes
    Crudify
  96. def showAllId: String

    Permalink
    Definition Classes
    Crudify
  97. def showAllMenuLoc: Box[Menu]

    Permalink

    The menu item for listing items (make this "Empty" to disable)

    The menu item for listing items (make this "Empty" to disable)

    Definition Classes
    Crudify
  98. def showAllMenuLocParams: List[AnyLocParam]

    Permalink

    Override to include new Params for the show all menu

    Override to include new Params for the show all menu

    Definition Classes
    Crudify
  99. def showAllMenuName: String

    Permalink
    Definition Classes
    Crudify
  100. def showAllTemplate(): NodeSeq

    Permalink

    This is the template that's used to render the page after the optional wrapping of the template in the page wrapper

    This is the template that's used to render the page after the optional wrapping of the template in the page wrapper

    Definition Classes
    Crudify
  101. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  103. def viewClass: String

    Permalink
    Definition Classes
    Crudify
  104. def viewId: String

    Permalink
    Definition Classes
    Crudify
  105. def viewMenuLoc: Box[Menu]

    Permalink

    The menu item for viewing an item (make this "Empty" to disable)

    The menu item for viewing an item (make this "Empty" to disable)

    Definition Classes
    Crudify
  106. def viewMenuLocParams: List[LocParam[(CRUDify.this)#TheCrudType]]

    Permalink

    Override to include new Params for the view menu

    Override to include new Params for the view menu

    Definition Classes
    Crudify
  107. def viewMenuName: String

    Permalink
    Definition Classes
    Crudify
  108. lazy val viewPath: List[String]

    Permalink
    Definition Classes
    Crudify
  109. lazy val viewPathString: String

    Permalink
    Definition Classes
    Crudify
  110. def viewTemplate(): NodeSeq

    Permalink

    This is the template that's used to render the page after the optional wrapping of the template in the page wrapper

    This is the template that's used to render the page after the optional wrapping of the template in the page wrapper

    Definition Classes
    Crudify
  111. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  114. def wrapNameInRequired(fieldName: NodeSeq, required: Boolean): NodeSeq

    Permalink

    As the field names are being displayed for editing, this method is called with the XHTML that will be displayed as the field name and a flag indicating whether the field is required.

    As the field names are being displayed for editing, this method is called with the XHTML that will be displayed as the field name and a flag indicating whether the field is required. You can wrap the fieldName in a span with a css class indicating that the field is required or otherwise do something to update the field name indicating to the user that the field is required. By default the method wraps the fieldName in a span with the class attribute set to "required_field".

    Definition Classes
    Crudify

Inherited from Crudify

Inherited from AnyRef

Inherited from Any

Ungrouped