| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
trait MetaMegaProtoUser[ModelType <: MegaProtoUser[ModelType]]
extends
KeyedMetaMapper[Long, ModelType]
| ItemList.. |
lazy val ItemList
|
List[MenuItem] | |
| _dbTableNameLC.. |
final def _dbTableNameLC
The table name, to lower case
[details]
.. ensures that it works on all DBs
|
String | MetaMapper |
| addSnippetSetup.. |
def addSnippetSetup
Default setup behavior for the add snippet
[details]
Creates a new mapped object.
|
A | KeyedMetaMapper |
| allFields.. |
def allFields
|
Seq[BaseField] | Mapper |
| asHtml.. |
def asHtml
|
NodeSeq | Mapper |
| asJs.. |
def asJs
Convert the model to a JavaScript object
|
JsExp | Mapper |
| asValid.. |
def asValid
Returns the instance in a Full Box if the instance is valid, otherwise
returns a Failure with the validation errors
|
Box[A] | Mapper |
| autologinFunc.. |
var autologinFunc
This function is given a chance to log in a user
programmatically when needed
|
Box[() => Unit] | |
| basePath.. |
val basePath
|
List[String] | |
| bccEmail.. |
def bccEmail
|
Box[String] | |
| changePassword.. |
def changePassword
|
NodeSeq | |
| changePasswordMenuLoc.. |
def changePasswordMenuLoc
The menu item for changing password (make this "Empty" to disable)
|
Box[Menu] | |
| changePasswordMenuLocParams.. |
protected def changePasswordMenuLocParams
The LocParams for the menu item for changing password
[details]
Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
|
List[LocParam[Unit]] | |
| changePasswordPath.. |
lazy val changePasswordPath
|
List[String] | |
| changePasswordSuffix.. |
def changePasswordSuffix
|
String | |
| changePasswordXhtml.. |
def changePasswordXhtml
|
Elem | |
| columnNamesForInsert.. |
val columnNamesForInsert
|
String | MetaMapper |
| columnQueriesForInsert.. |
val columnQueriesForInsert
|
String | MetaMapper |
| connectionIdentifier.. |
def connectionIdentifier
|
ConnectionIdentifier | Mapper |
| count.. |
def count
|
Long | MetaMapper |
| countryField.. |
def countryField
|
Box[MappedCountry[A]] | Mapper |
| create.. |
def create
|
A | MetaMapper |
| createInstance.. |
def createInstance
|
A | MetaMapper |
| createUserMenuLoc.. |
def createUserMenuLoc
The menu item for creating the user/sign up (make this "Empty" to disable)
|
Box[Menu] | |
| createUserMenuLocParams.. |
protected def createUserMenuLocParams
The LocParams for the menu item for creating the user/sign up
[details]
Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
|
List[LocParam[Unit]] | |
| crudSnippets.. |
def crudSnippets
Defines the default CRUD snippets
[details]
Override if you want to change
the names of the snippets. Defaults are "add", "edit", and "view".
(No, there's no D in CRUD.)
|
PartialFunction | KeyedMetaMapper |
| crudSnippets_?.. |
def crudSnippets_?
Override this definition in your model to enable CRUD snippets
for that model
[details]
Set to false by default.
Remember to override editSnippetSetup and viewSnippetSetup as well,
as the defaults are broken.
|
Boolean | KeyedMetaMapper |
| currentUser.. |
def currentUser
|
Box[ModelType] | |
| currentUserId.. |
def currentUserId
|
Box[String] | |
| dbCalculateConnectionIdentifier.. |
def dbCalculateConnectionIdentifier
|
PartialFunction[A, ConnectionIdentifier] | Mapper |
| dbDefaultConnectionIdentifier.. |
def dbDefaultConnectionIdentifier
|
ConnectionIdentifier | MetaMapper |
| dbIndexes.. |
def dbIndexes
|
List[BaseIndex[A]] | MetaMapper |
| dbName.. |
override def dbName
The name of the mapped object
|
String | MetaMapper |
| dbSelectDBConnectionForFind.. |
def dbSelectDBConnectionForFind
|
PartialFunction[Type, ConnectionIdentifier] | KeyedMetaMapper |
| dbTableName.. |
def dbTableName
The name of the database table
[details]
Override this method if you
want to change the table to something other than the name of the Mapper class
|
String | MetaMapper |
| db_can_delete_?.. |
def db_can_delete_?
Can this model object be deleted?
|
Boolean | Mapper |
| delete_!.. |
def delete_!
Delete the model from the RDBMS
|
Boolean | Mapper |
| dirty_?.. |
def dirty_?
|
Boolean | Mapper |
| displayFieldAsLineElement.. |
var displayFieldAsLineElement
This function converts an element into the appropriate
XHTML format for displaying across a line
formatted block
[details]
The default is <td> for use
in XHTML tables. If you change this function, the change
will be used for this MetaMapper unless you override the
doHtmlLine method.
|
(NodeSeq) => NodeSeq | MetaMapper |
| displayNameToHeaderElement.. |
var displayNameToHeaderElement
This function converts a header name into the appropriate
XHTML format for displaying across the headers of a
formatted block
[details]
The default is <th> for use
in XHTML tables. If you change this function, the change
will be used for this MetaMapper unless you override the
htmlHeades method
|
(String) => NodeSeq | MetaMapper |
| edit.. |
def edit
|
NodeSeq | |
| editFunc.. |
object editFunc
|
|
|
| editPath.. |
lazy val editPath
|
List[String] | |
| editSnippetSetup.. |
def editSnippetSetup
Default setup behavior for the edit snippet
[details]
BROKEN! MUST OVERRIDE IF
USING CRUD SNIPPETS!
|
A | KeyedMetaMapper |
| editSuffix.. |
def editSuffix
|
String | |
| editUserMenuLoc.. |
def editUserMenuLoc
The menu item for editing the user (make this "Empty" to disable)
|
Box[Menu] | |
| editUserMenuLocParams.. |
protected def editUserMenuLocParams
The LocParams for the menu item for editing the user
[details]
Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
|
List[LocParam[Unit]] | |
| elemName.. |
val elemName
|
String | MetaMapper |
| emailFrom.. |
def emailFrom
|
String | |
| fieldMatcher.. |
lazy val fieldMatcher
|
PartialFunction[(A, String), MappedField[Any, A]] | MetaMapper |
| fieldOrder.. |
override def fieldOrder
|
List[BaseOwnedMappedField[ModelType]] | |
| fieldPF.. |
def fieldPF
|
PartialFunction | Mapper |
| formFields.. |
def formFields
Get the fields (in order) for displaying a form
|
List[MappedField[Any, A]] | Mapper |
| formatFormElement.. |
var formatFormElement
This function converts a name and form for a given field in the
model to XHTML for presentation in the browser
[details]
By
default, a table row ( <tr> ) is presented, but
you can change the function to display something else.
|
(NodeSeq, NodeSeq) => NodeSeq | MetaMapper |
| getSingleton.. |
abstract def getSingleton
|
KeyedMetaMapper[KeyType, OwnerType] | KeyedMapper |
| homePage.. |
def homePage
|
String | |
| htmlHeaders.. |
def htmlHeaders
|
NodeSeq | MetaMapper |
| htmlLine.. |
def htmlLine
|
NodeSeq | Mapper |
| localeField.. |
def localeField
If there's a field in this record that defines the locale, return it
|
Box[MappedLocale[A]] | Mapper |
| loggedIn_?.. |
def loggedIn_?
|
Boolean | |
| login.. |
def login
|
NodeSeq | |
| loginFirst.. |
def loginFirst
|
If | |
| loginMenuLoc.. |
def loginMenuLoc
The menu item for login (make this "Empty" to disable)
|
Box[Menu] | |
| loginMenuLocParams.. |
protected def loginMenuLocParams
The LocParams for the menu item for login
[details]
Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
|
List[LocParam[Unit]] | |
| loginPageURL.. |
def loginPageURL
Return the URL of the "login" page
|
String | |
| loginPath.. |
lazy val loginPath
|
List[String] | |
| loginRedirect.. |
object loginRedirect
|
|
|
| loginSuffix.. |
def loginSuffix
|
String | |
| loginXhtml.. |
def loginXhtml
|
Elem | |
| logout.. |
def logout
|
Nothing | |
| logoutMenuLoc.. |
def logoutMenuLoc
The menu item for logout (make this "Empty" to disable)
|
Box[Menu] | |
| logoutMenuLocParams.. |
protected def logoutMenuLocParams
The LocParams for the menu item for logout
[details]
Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
|
List[LocParam[Unit]] | |
| logoutPath.. |
lazy val logoutPath
|
List[String] | |
| logoutSuffix.. |
def logoutSuffix
|
String | |
| lostPassword.. |
def lostPassword
|
NodeSeq | |
| lostPasswordMenuLoc.. |
def lostPasswordMenuLoc
The menu item for lost password (make this "Empty" to disable)
|
Box[Menu] | |
| lostPasswordMenuLocParams.. |
protected def lostPasswordMenuLocParams
The LocParams for the menu item for lost password
[details]
Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
|
List[LocParam[Unit]] | |
| lostPasswordPath.. |
lazy val lostPasswordPath
|
List[String] | |
| lostPasswordSuffix.. |
def lostPasswordSuffix
|
String | |
| lostPasswordXhtml.. |
def lostPasswordXhtml
|
Elem | |
| mappedFields.. |
lazy val mappedFields
|
Seq[BaseMappedField] | MetaMapper |
| mappedFieldsForModel.. |
lazy val mappedFieldsForModel
|
List[MappedField[Any, A]] | MetaMapper |
| menus.. |
def menus
An alias for the sitemap property
|
List[Menu] | |
| notLoggedIn_?.. |
def notLoggedIn_?
|
Boolean | |
| objFromIndexedParam.. |
def objFromIndexedParam
Lame attempt at automatically getting an object from the HTTP parameters
[details]
BROKEN! DO NOT USE! Only here so that existing sub-classes KeyedMetaMapper
don't have to implement new methods when I commit the CRUD snippets code.
|
Box[A] | KeyedMetaMapper |
| onLogIn.. |
var onLogIn
|
List[(ModelType) => Unit] | |
| onLogOut.. |
var onLogOut
|
List[(Box[ModelType]) => Unit] | |
| passwordResetEmailSubject.. |
def passwordResetEmailSubject
|
String | |
| passwordResetPath.. |
lazy val passwordResetPath
|
List[String] | |
| passwordResetSuffix.. |
def passwordResetSuffix
|
String | |
| passwordResetXhtml.. |
def passwordResetXhtml
|
Elem | |
| primaryKeyField.. |
abstract def primaryKeyField
|
MappedField[KeyType, OwnerType] with IndexedField[KeyType] |
KeyedMapper |
| reload.. |
def reload
|
OwnerType | KeyedMapper |
| resetPasswordMenuLoc.. |
def resetPasswordMenuLoc
The menu item for resetting the password (make this "Empty" to disable)
|
Box[Menu] | |
| resetPasswordMenuLocParams.. |
protected def resetPasswordMenuLocParams
The LocParams for the menu item for resetting the password
[details]
Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
|
List[LocParam[Unit]] | |
| rootClass.. |
protected val rootClass
|
Class[Any] | MetaMapper |
| safe_?.. |
final def safe_?
|
Boolean | Mapper |
| saved_?.. |
def saved_?
|
Boolean | Mapper |
| screenWrap.. |
def screenWrap
If the
|
Box[Node] | |
| signUpPath.. |
lazy val signUpPath
|
List[String] | |
| signUpSuffix.. |
def signUpSuffix
|
String | |
| signup.. |
def signup
|
NodeSeq | |
| signupFields.. |
def signupFields
|
List[BaseOwnedMappedField[ModelType]] | |
| signupFunc.. |
protected object signupFunc
|
|
|
| signupMailSubject.. |
def signupMailSubject
|
String | |
| sitemap.. |
lazy val sitemap
|
List[Menu] | |
| skipEmailValidation.. |
def skipEmailValidation
|
Boolean | |
| snarfLastItem.. |
protected def snarfLastItem
|
String | |
| superUser_?.. |
def superUser_?
|
Boolean | |
| testLogginIn.. |
lazy val testLogginIn
|
If | |
| testSuperUser.. |
lazy val testSuperUser
|
If | |
| timeZoneField.. |
def timeZoneField
|
Box[MappedTimeZone[A]] | Mapper |
| toHtml.. |
def toHtml
Present the model as a HTML using the same formatting as toForm
[details]
|
NodeSeq | Mapper |
| toXml.. |
def toXml
|
Elem | Mapper |
| userMenu.. |
def userMenu
|
List[Node] | |
| validate.. |
def validate
|
List[FieldError] | Mapper |
| validateUserMenuLoc.. |
def validateUserMenuLoc
The menu item for validating a user (make this "Empty" to disable)
|
Box[Menu] | |
| validateUserMenuLocParams.. |
protected def validateUserMenuLocParams
The LocParams for the menu item for validating a user
[details]
Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
|
List[LocParam[Unit]] | |
| validateUserPath.. |
lazy val validateUserPath
|
List[String] | |
| validateUserSuffix.. |
def validateUserSuffix
|
String | |
| viewSnippetSetup.. |
def viewSnippetSetup
Default setup behavior for the view snippet
[details]
BROKEN! MUST OVERRIDE IF
USING CRUD SNIPPETS!
|
A | KeyedMetaMapper |
| !=.. |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| !=.. |
final def !=(arg0 : Any)
|
Boolean | Any |
| ==.. |
final def ==(arg0 : Any)
|
Boolean | Any |
| ==.. |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| actionsAfterSignup.. |
protected def actionsAfterSignup(theUser : ModelType)
Override this method to do something else after the user signs up
|
Unit | |
| addEndStuffs.. |
protected def addEndStuffs(in : String, params : List[QueryParam[A]], conn : SuperConnection)
|
(String, Box[Long], Box[Long]) | MetaMapper |
| addSnippet.. |
def addSnippet(xhtml : NodeSeq)
Default add snippet
[details]
Override to change behavior of the add snippet.
|
NodeSeq | KeyedMetaMapper |
| addSnippetCallback.. |
def addSnippetCallback(obj : A)
Default callback behavior of the add snippet
[details]
Called when the user
presses submit. Saves the passed in object.
|
Unit | KeyedMetaMapper |
| afterCommit.. |
def afterCommit
|
List[(A) => Unit] | MetaMapper |
| afterCreate.. |
def afterCreate
|
List[(A) => Unit] | MetaMapper |
| afterDelete.. |
def afterDelete
|
List[(A) => Unit] | MetaMapper |
| afterSave.. |
def afterSave
|
List[(A) => Unit] | MetaMapper |
| afterSchemifier.. |
override def afterSchemifier
|
Unit | KeyedMetaMapper |
| afterUpdate.. |
def afterUpdate
|
List[(A) => Unit] | MetaMapper |
| afterValidation.. |
def afterValidation
|
List[(A) => Unit] | MetaMapper |
| afterValidationOnCreate.. |
def afterValidationOnCreate
|
List[(A) => Unit] | MetaMapper |
| afterValidationOnUpdate.. |
def afterValidationOnUpdate
|
List[(A) => Unit] | MetaMapper |
| appendField.. |
def appendField(pf : PartialFunction)
|
Unit | Mapper |
| appendFieldToStrings.. |
def appendFieldToStrings(in : A)
|
String | MetaMapper |
| asHtml.. |
def asHtml(toLine : A)
|
NodeSeq | MetaMapper |
| asInstanceOf.. |
final def asInstanceOf[T0]
|
T0 | Any |
| asJs.. |
def asJs(actual : A)
|
JsExp | MetaMapper |
| asSafeJs.. |
def asSafeJs(f : KeyObfuscator)
|
JsExp | KeyedMapper |
| asSafeJs.. |
def asSafeJs(actual : A, f : KeyObfuscator)
|
JsExp | KeyedMetaMapper |
| beforeCreate.. |
def beforeCreate
|
List[(A) => Unit] | MetaMapper |
| beforeDelete.. |
def beforeDelete
|
List[(A) => Unit] | MetaMapper |
| beforeSave.. |
def beforeSave
|
List[(A) => Unit] | MetaMapper |
| beforeSchemifier.. |
def beforeSchemifier
|
Unit | MetaMapper |
| beforeUpdate.. |
def beforeUpdate
|
List[(A) => Unit] | MetaMapper |
| beforeValidation.. |
def beforeValidation
|
List[(A) => Unit] | MetaMapper |
| beforeValidationOnCreate.. |
def beforeValidationOnCreate
|
List[(A) => Unit] | MetaMapper |
| beforeValidationOnUpdate.. |
def beforeValidationOnUpdate
|
List[(A) => Unit] | MetaMapper |
| boundedFieldToItem.. |
implicit def boundedFieldToItem(in : (MappedField[String, A], Int))
|
BoundedIndexField[A] | MetaMapper |
| buildMapper.. |
def buildMapper(rs : ResultSet)
|
List[Box[(ResultSet, Int, A) => Unit]] | MetaMapper |
| buildSelectString.. |
def buildSelectString(fields : Seq[SelectableField], conn : SuperConnection, by : QueryParam[A]*)
Given fields, a connection and the query parameters, build a query and return the query String,
and Start or MaxRows values (depending on whether the driver supports LIMIT and OFFSET)
and the complete List of QueryParams based on any synthetic query parameters calculated during the
query creation
[details]
|
(String, Box[Long], Box[Long], List[QueryParam[A]]) | MetaMapper |
| bulkDelete_!!.. |
def bulkDelete_!!(dbId : ConnectionIdentifier, by : QueryParam[A]*)
|
Boolean | MetaMapper |
| bulkDelete_!!.. |
def bulkDelete_!!(by : QueryParam[A]*)
|
Boolean | MetaMapper |
| checkFieldNames.. |
def checkFieldNames(in : A)
|
Unit | MetaMapper |
| checkNames.. |
def checkNames
|
Unit | Mapper |
| clean_?.. |
def clean_?(toCheck : A)
Returns true if none of the fields are dirty
|
Boolean | MetaMapper |
| clone.. |
protected def clone
|
Object | AnyRef |
| columnPrimaryKey_?.. |
def columnPrimaryKey_?(name : String)
|
Boolean | MetaMapper |
| comparePrimaryKeys.. |
override def comparePrimaryKeys(other : OwnerType)
|
Boolean | KeyedMapper |
| connectionIdentifier.. |
def connectionIdentifier(id : ConnectionIdentifier)
|
A | Mapper |
| count.. |
def count(by : QueryParam[A]*)
|
Long | MetaMapper |
| countByInsecureSql.. |
def countByInsecureSql(query : String, checkedBy : IHaveValidatedThisSQL)
|
Long | MetaMapper |
| countByInsecureSqlDb.. |
def countByInsecureSqlDb(dbId : ConnectionIdentifier, query : String, checkedBy : IHaveValidatedThisSQL)
|
Long | MetaMapper |
| countDb.. |
def countDb(dbId : ConnectionIdentifier, by : QueryParam[A]*)
|
Long | MetaMapper |
| createInstance.. |
def createInstance(dbId : ConnectionIdentifier, rs : ResultSet, mapFuncs : List[Box[(ResultSet, Int, A) => Unit]])
|
A | MetaMapper |
| createInstances.. |
def createInstances(dbId : ConnectionIdentifier, rs : ResultSet, start : Box[Long], omax : Box[Long])
|
List[A] | MetaMapper |
| createInstances.. |
def createInstances[T](dbId : ConnectionIdentifier, rs : ResultSet, start : Box[Long], omax : Box[Long], f : (A) => Box[T])
|
List[T] | MetaMapper |
| dbAddTable.. |
def dbAddTable
|
Box[() => Unit] | MetaMapper |
| dbStringToKey.. |
def dbStringToKey(in : String)
|
Box[Type] | KeyedMetaMapper |
| decodeFromJSON_!.. |
protected def decodeFromJSON_!(json : JObject, markFieldsAsDirty : Boolean)
Decode the fields from a JSON Object
[details]
Should the fields be marked as dirty?
|
A | MetaMapper |
| delete_!.. |
def delete_!(toDelete : A)
|
Boolean | MetaMapper |
| dirty_?.. |
def dirty_?(toTest : A)
|
Boolean | MetaMapper |
| doHtmlLine.. |
def doHtmlLine(toLine : A)
|
NodeSeq | MetaMapper |
| doPostCommit.. |
def doPostCommit(func : () => Unit)
Append a function to perform after the commit happens
[details]
|
A | Mapper |
| editSnippet.. |
def editSnippet(xhtml : NodeSeq)
Default edit snippet
[details]
Override to change behavior of the edit snippet.
|
NodeSeq | KeyedMetaMapper |
| editSnippetCallback.. |
def editSnippetCallback(obj : A)
Default callback behavior of the edit snippet
[details]
Called when the user
presses submit. Saves the passed in object.
|
Unit | KeyedMetaMapper |
| editXhtml.. |
def editXhtml(user : ModelType)
|
Elem | |
| encodeAsJSON_!.. |
protected def encodeAsJSON_!(toEncode : A)
This method will encode the instance as JSON
[details]
It may reveal
data in fields that might otherwise be proprietary. It should
be used with caution and only exposed as a public method
after a security review.
|
JObject | MetaMapper |
| eq.. |
final def eq(arg0 : Object)
|
Boolean | AnyRef |
| equals.. |
override def equals(other : Any)
|
Boolean | KeyedMapper |
| fieldByName.. |
def fieldByName[T](fieldName : String, actual : A)
Get a field by the field name
[details]
|
Box[MappedField[T, A]] | MetaMapper |
| fieldByName.. |
def fieldByName[T](fieldName : String)
Find the field by name
[details]
|
Box[MappedField[T, A]] | Mapper |
| fieldMapperPF.. |
def fieldMapperPF(transform : (BaseOwnedMappedField[A]) => NodeSeq, actual : A)
|
PartialFunction[String, (NodeSeq) => NodeSeq] | MetaMapper |
| fieldMapperPF.. |
def fieldMapperPF(transform : (BaseOwnedMappedField[A]) => NodeSeq)
|
PartialFunction | Mapper |
| fieldToItem.. |
implicit def fieldToItem[T](in : MappedField[T, A])
|
IndexItem[A] | MetaMapper |
| finalize.. |
protected def finalize
|
Unit | AnyRef |
| find.. |
def find(dbId : ConnectionIdentifier, key : String)
|
Box[A] | KeyedMetaMapper |
| find.. |
def find(key : String)
|
Box[A] | KeyedMetaMapper |
| find.. |
def find(by : QueryParam[A]*)
|
Box[A] | KeyedMetaMapper |
| find.. |
def find(key : Any)
|
Box[A] | KeyedMetaMapper |
| findAll.. |
def findAll
|
List[A] | MetaMapper |
| findAll.. |
def findAll(by : QueryParam[A]*)
|
List[A] | MetaMapper |
| findAllByInsecureSql.. |
def findAllByInsecureSql(query : String, checkedBy : IHaveValidatedThisSQL)
|
List[A] | MetaMapper |
| findAllByInsecureSqlDb.. |
def findAllByInsecureSqlDb(dbId : ConnectionIdentifier, query : String, checkedBy : IHaveValidatedThisSQL)
|
List[A] | MetaMapper |
| findAllByPreparedStatement.. |
def findAllByPreparedStatement(f : (SuperConnection) => PreparedStatement)
Execute a PreparedStatement and return a List of Mapper instances
[details]
{@code f} is
where the user will do the work of creating the PreparedStatement and
preparing it for execution.
|
List[A] | MetaMapper |
| findAllByPreparedStatement.. |
def findAllByPreparedStatement(dbId : ConnectionIdentifier, stmt : PreparedStatement)
|
List[A] | MetaMapper |
| findAllByPreparedStatementDb.. |
def findAllByPreparedStatementDb[T](dbId : ConnectionIdentifier, stmt : PreparedStatement)(f : (A) => Box[T])
|
List[T] | MetaMapper |
| findAllDb.. |
def findAllDb(dbId : ConnectionIdentifier)
|
List[A] | MetaMapper |
| findAllDb.. |
def findAllDb(dbId : ConnectionIdentifier, by : QueryParam[A]*)
|
List[A] | MetaMapper |
| findAllFields.. |
def findAllFields(fields : Seq[SelectableField], by : QueryParam[A]*)
|
List[A] | MetaMapper |
| findAllFieldsDb.. |
def findAllFieldsDb(dbId : ConnectionIdentifier, fields : Seq[SelectableField], by : QueryParam[A]*)
|
List[A] | MetaMapper |
| findApplier.. |
protected def findApplier(name : String, inst : Object)
|
Box[(A, Object) => Unit] | MetaMapper |
| findByKey.. |
def findByKey(key : Type)
|
Box[A] | KeyedMetaMapper |
| findDb.. |
def findDb(dbId : ConnectionIdentifier, by : QueryParam[A]*)
|
Box[A] | KeyedMetaMapper |
| findDb.. |
def findDb(dbId : ConnectionIdentifier, key : Any)
|
Box[A] | KeyedMetaMapper |
| findDb.. |
def findDb(dbId : ConnectionIdentifier, fields : Seq[SelectableField], by : QueryParam[A]*)
|
Box[A] | KeyedMetaMapper |
| findDbByKey.. |
def findDbByKey(dbId : ConnectionIdentifier, fields : Seq[SelectableField], key : Type)
|
Box[A] | KeyedMetaMapper |
| findDbByKey.. |
def findDbByKey(dbId : ConnectionIdentifier, key : Type)
|
Box[A] | KeyedMetaMapper |
| findMap.. |
def findMap[T](by : QueryParam[A]*)(f : (A) => Box[T])
|
List[T] | MetaMapper |
| findMapByInsecureSql.. |
def findMapByInsecureSql[T](query : String, checkedBy : IHaveValidatedThisSQL)(f : (A) => Box[T])
|
List[T] | MetaMapper |
| findMapByInsecureSqlDb.. |
def findMapByInsecureSqlDb[T](dbId : ConnectionIdentifier, query : String, checkedBy : IHaveValidatedThisSQL)(f : (A) => Box[T])
|
List[T] | MetaMapper |
| findMapDb.. |
def findMapDb[T](dbId : ConnectionIdentifier, by : QueryParam[A]*)(f : (A) => Box[T])
|
List[T] | MetaMapper |
| findMapFieldDb.. |
def findMapFieldDb[T](dbId : ConnectionIdentifier, fields : Seq[SelectableField], by : QueryParam[A]*)(f : (A) => Box[T])
|
List[T] | MetaMapper |
| flatMapFieldTitleForm.. |
def flatMapFieldTitleForm[T](func : (NodeSeq, Box[NodeSeq], NodeSeq) => Seq[T])
flat map the fields titles and forms to generate a list
[details]
|
List[T] | Mapper |
| flatMapFieldTitleForm.. |
def flatMapFieldTitleForm[T](toMap : A, func : (NodeSeq, Box[NodeSeq], NodeSeq) => Seq[T])
flat map the fields titles and forms to generate a list
[details]
|
List[T] | MetaMapper |
| flatMapFieldTitleForm2.. |
def flatMapFieldTitleForm2[T](toMap : A, func : (NodeSeq, MappedField[Any, A], NodeSeq) => Seq[T])
flat map the fields titles and forms to generate a list
[details]
|
List[T] | MetaMapper |
| flatMapFieldTitleForm2.. |
def flatMapFieldTitleForm2[T](func : (NodeSeq, MappedField[Any, A], NodeSeq) => Seq[T])
flat map the fields titles and forms to generate a list
[details]
|
List[T] | Mapper |
| formFields.. |
def formFields(toMap : A)
Get the fields (in order) for displaying a form
|
List[MappedField[Any, A]] | MetaMapper |
| formatFormLine.. |
def formatFormLine(displayName : NodeSeq, form : NodeSeq)
|
NodeSeq | MetaMapper |
| getActualBaseField.. |
def getActualBaseField(actual : A, protoField : BaseOwnedMappedField[A])
Given the prototype field (the field on the Singleton), get the field from the instance
[details]
|
BaseOwnedMappedField[A] | MetaMapper |
| getActualField.. |
def getActualField[T](actual : A, protoField : MappedField[T, A])
Given the prototype field (the field on the Singleton), get the field from the instance
[details]
|
MappedField[T, A] | MetaMapper |
| getClass.. |
final def getClass
|
Class[Any] | AnyRef |
| hashCode.. |
override def hashCode
|
Int | KeyedMapper |
| indexedField.. |
def indexedField(toSave : A)
|
Box[MappedField[Any, A]] | MetaMapper |
| isInstanceOf.. |
final def isInstanceOf[T0]
|
Boolean | Any |
| localForm.. |
protected def localForm(user : ModelType, ignorePassword : Boolean)
|
NodeSeq | |
| logUserIdIn.. |
def logUserIdIn(id : String)
|
Unit | |
| logUserIn.. |
def logUserIn(who : ModelType)
|
Unit | |
| logUserOut.. |
def logUserOut
|
Unit | |
| logoutCurrentUser.. |
def logoutCurrentUser
|
Unit | |
| mapFieldTitleForm.. |
def mapFieldTitleForm[T](toMap : A, func : (NodeSeq, Box[NodeSeq], NodeSeq) => T)
map the fields titles and forms to generate a list
[details]
|
List[T] | MetaMapper |
| mapFieldTitleForm.. |
def mapFieldTitleForm[T](func : (NodeSeq, Box[NodeSeq], NodeSeq) => T)
map the fields titles and forms to generate a list
[details]
|
List[T] | Mapper |
| modSnippet.. |
def modSnippet(xhtml : NodeSeq, obj : A, cleanup : (A) => Unit)
Default snippet for modification
[details]
Used by the default add and edit snippets.
|
NodeSeq | KeyedMetaMapper |
| ne.. |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| notify.. |
final def notify
|
Unit | AnyRef |
| notifyAll.. |
final def notifyAll
|
Unit | AnyRef |
| passwordReset.. |
def passwordReset(id : String)
|
NodeSeq | |
| passwordResetMailBody.. |
def passwordResetMailBody(user : ModelType, resetLink : String)
|
Elem | |
| prependField.. |
def prependField(pf : PartialFunction)
|
Unit | Mapper |
| runSafe.. |
def runSafe[T](f : => T)
|
T | Mapper |
| runValidationList.. |
protected def runValidationList(toValidate : A)
Run the list of field validations, etc
[details]
This is the raw validation,
without the notifications. This method can be over-ridden.
|
List[FieldError] | MetaMapper |
| save.. |
def save(toSave : A)
|
Boolean | MetaMapper |
| save.. |
def save
|
Boolean | Mapper |
| saveMe.. |
def saveMe
Save the instance and return the instance
|
A | Mapper |
| saved_?.. |
def saved_?(toSave : A)
|
Boolean | MetaMapper |
| sendPasswordReset.. |
def sendPasswordReset(email : String)
|
Unit | |
| sendValidationEmail.. |
def sendValidationEmail(user : ModelType)
|
Unit | |
| signupMailBody.. |
def signupMailBody(user : ModelType, validationLink : String)
|
Elem | |
| signupXhtml.. |
def signupXhtml(user : ModelType)
|
Elem | |
| suplementalJs.. |
def suplementalJs(ob : Box[KeyObfuscator])
If the instance calculates any additional
fields for JSON object, put the calculated fields
here
|
List[(String, JsExp)] | Mapper |
| synchronized.. |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| testLoggedIn.. |
def testLoggedIn(page : String)
|
Boolean | |
| thePath.. |
def thePath(end : String)
|
List[String] | |
| thisToMappee.. |
implicit def thisToMappee(in : Mapper[A])
|
A | Mapper |
| toForm.. |
def toForm(button : Box[String], onSuccess : String)
Present the model as a form and execute the function on submission of the form
[details]
|
NodeSeq | Mapper |
| toForm.. |
def toForm(button : Box[String], redoSnippet : (NodeSeq) => NodeSeq, onSuccess : (A) => Unit)
|
NodeSeq | Mapper |
| toForm.. |
def toForm(toMap : A)
|
NodeSeq | MetaMapper |
| toForm.. |
def toForm(button : Box[String], f : (A) => Any)
Present the model as a form and execute the function on submission of the form
[details]
|
NodeSeq | Mapper |
| toHtml.. |
def toHtml(toMap : A)
Present the model as a HTML using the same formatting as toForm
[details]
|
NodeSeq | MetaMapper |
| toString.. |
override def toString
|
String | Mapper |
| toXml.. |
def toXml(what : A)
|
Elem | MetaMapper |
| unapply.. |
def unapply(key : Any)
|
Option[A] | KeyedMetaMapper |
| updateFromJSON_!.. |
protected def updateFromJSON_!(toUpdate : A, json : JObject)
This method will update the instance from JSON
[details]
It allows for
attacks from untrusted JSON as it bypasses normal security. By
default, the method is protected. You can write a proxy method
to expose the functionality.
|
A | MetaMapper |
| validate.. |
final def validate(toValidate : A)
|
List[FieldError] | MetaMapper |
| validateSignup.. |
def validateSignup(user : ModelType)
Override this method to validate the user signup (eg by adding captcha verification)
|
List[FieldError] | |
| validateUser.. |
def validateUser(id : String)
|
NodeSeq | |
| validation.. |
def validation
If there are model-specific validations to perform, override this
method and return an additional list of validations to perform
|
List[(A) => List[FieldError]] | MetaMapper |
| viewSnippet.. |
def viewSnippet(xhtml : NodeSeq)
Default view snippet
[details]
Override to change behavior of the view snippet.
|
NodeSeq | KeyedMetaMapper |
| wait.. |
final def wait(arg0 : Long, arg1 : Int)
|
Unit | AnyRef |
| wait.. |
final def wait
|
Unit | AnyRef |
| wait.. |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| whatToSet.. |
def whatToSet(toSave : A)
|
String | MetaMapper |
| wrapIt.. |
protected def wrapIt(in : NodeSeq)
|
NodeSeq |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |