trait MetaMegaProtoUser[ModelType <: MegaProtoUser[ModelType]] extends KeyedMetaMapper[Long, ModelType] with proto.ProtoUser
Mix this trait into the the Mapper singleton for User and you get a bunch of user functionality including password reset, etc.
- Self Type
- MetaMegaProtoUser[ModelType] with ModelType
- Alphabetic
- By Inheritance
- MetaMegaProtoUser
- ProtoUser
- KeyedMetaMapper
- KeyedMapper
- BaseKeyedMapper
- MetaMapper
- Mapper
- SourceInfo
- Serializable
- Serializable
- BaseMapper
- FieldContainer
- BaseMetaMapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
FieldHolder
(name: String, method: Method, field: MappedField[_, A]) extends Product with Serializable
- Definition Classes
- MetaMapper
-
type
AnyBound = T forSome {type T}
- Definition Classes
- MetaMapper
-
type
FieldPF = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]
- Definition Classes
- Mapper
-
type
FieldPointerType = MappedField[_, (MetaMegaProtoUser.this)#TheUserType]
What's a field pointer for the underlying CRUDify
What's a field pointer for the underlying CRUDify
- Definition Classes
- MetaMegaProtoUser → ProtoUser
-
type
KeyedMapperType = ModelType
- Definition Classes
- KeyedMapper → BaseKeyedMapper
-
type
MapperType = ModelType
- Definition Classes
- Mapper → BaseMapper
-
class
MyPointer
extends (MetaMegaProtoUser.this)#FieldPointerBridge
- Attributes
- protected
-
class
MyUserBridge
extends (MetaMegaProtoUser.this)#UserBridge
Bridges from TheUserType to methods used in this class
Bridges from TheUserType to methods used in this class
- Attributes
- protected
-
type
OtherMapper = KeyedMapper[_, _]
- Definition Classes
- MetaMapper
-
type
OtherMetaMapper = KeyedMetaMapper[_, _]
- Definition Classes
- MetaMapper
-
type
Q = MappedForeignKey[(MetaMegaProtoUser.this)#AnyBound, ModelType, OO] with MappedField[(MetaMegaProtoUser.this)#AnyBound, ModelType] forSome {type OO <: KeyedMapper[(MetaMegaProtoUser.this)#AnyBound, OO]}
- Definition Classes
- KeyedMetaMapper
-
type
RealType = ModelType
- Definition Classes
- MetaMapper → BaseMetaMapper
-
type
TheKeyType = Long
- Definition Classes
- KeyedMapper → BaseKeyedMapper
-
type
TheUserType = ModelType
The underlying record for the User
The underlying record for the User
- Definition Classes
- MetaMegaProtoUser → ProtoUser
-
trait
FieldPointerBridge
extends AnyRef
- Attributes
- protected
- Definition Classes
- ProtoUser
-
case class
MenuItem
(name: String, path: List[String], loggedIn: Boolean) extends Product with Serializable
A helper class that holds menu items for the path
A helper class that holds menu items for the path
- Definition Classes
- ProtoUser
-
trait
UserBridge
extends AnyRef
Bridges from TheUserType to methods used in this class
Bridges from TheUserType to methods used in this class
- Attributes
- protected
- Definition Classes
- ProtoUser
Abstract Value Members
-
abstract
def
getSingleton: KeyedMetaMapper[Long, ModelType]
- Definition Classes
- KeyedMapper → Mapper
-
abstract
def
primaryKeyField: MappedField[Long, ModelType] with IndexedField[Long]
- Definition Classes
- KeyedMapper → BaseKeyedMapper
Concrete Value Members
-
object
addlQueryParams
extends RequestVar[List[QueryParam[A]]]
- Definition Classes
- MetaMapper
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
lazy val
ItemList: List[(MetaMegaProtoUser.this)#MenuItem]
- Definition Classes
- ProtoUser
-
final
def
_dbTableNameLC: String
The table name, to lower case...
The table name, to lower case... ensures that it works on all DBs
- Definition Classes
- MetaMapper → BaseMetaMapper
-
def
actionsAfterSignup(theUser: (MetaMegaProtoUser.this)#TheUserType, func: () ⇒ Nothing): Nothing
Override this method to do something else after the user signs up
Override this method to do something else after the user signs up
- Attributes
- protected
- Definition Classes
- ProtoUser
-
def
addEndStuffs(in: String, params: List[QueryParam[ModelType]], conn: SuperConnection): (String, Box[Long], Box[Long])
- Attributes
- protected
- Definition Classes
- MetaMapper
-
def
addFormSnippet(html: NodeSeq): NodeSeq
Base add form snippet.
Base add form snippet. Fetches object from
addSnippetSetup
and invokesaddSnippetCallback
when the form is submitted.- Definition Classes
- KeyedMetaMapper
-
def
addSnippetCallback(obj: ModelType): Unit
Default callback behavior of the add snippet.
Default callback behavior of the add snippet. Called when the user presses submit. Saves the passed in object.
- obj
mapped object of this metamapper's type
- Definition Classes
- KeyedMetaMapper
-
def
addSnippetSetup: ModelType
Default setup behavior for the add snippet.
Default setup behavior for the add snippet. Creates a new mapped object.
- returns
new mapped object
- Definition Classes
- KeyedMetaMapper
-
def
afterCommit: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
def
afterCreate: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
def
afterDelete: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
def
afterSave: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
def
afterSchemifier: Unit
- Definition Classes
- KeyedMetaMapper → MetaMapper → BaseMetaMapper
-
def
afterUpdate: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
def
afterValidation: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
def
afterValidationOnCreate: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
def
afterValidationOnUpdate: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
def
allFieldNames(): Seq[(String, SourceFieldMetadata)]
Get a list of all the fields
-
def
allFields: Seq[BaseField]
- Definition Classes
- Mapper → FieldContainer
-
def
appendFieldToStrings(in: ModelType): String
- Definition Classes
- MetaMapper
-
def
appendFieldTransform(transform: CssSel): Unit
- Definition Classes
- Mapper
-
def
asHtml(toLine: ModelType): NodeSeq
- Definition Classes
- MetaMapper
-
def
asHtml: NodeSeq
- Definition Classes
- Mapper
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJs(actual: ModelType): JsExp
- Definition Classes
- MetaMapper
-
def
asJs: JsExp
Convert the model to a JavaScript object
Convert the model to a JavaScript object
- Definition Classes
- Mapper
-
def
asSafeJs(actual: ModelType, f: KeyObfuscator): JsExp
- Definition Classes
- KeyedMetaMapper
-
def
asSafeJs(f: KeyObfuscator): JsExp
- Definition Classes
- KeyedMapper
-
def
asValid: Box[ModelType]
Returns the instance in a Full Box if the instance is valid, otherwise returns a Failure with the validation errors
Returns the instance in a Full Box if the instance is valid, otherwise returns a Failure with the validation errors
- Definition Classes
- Mapper
-
val
autologinFunc: Box[() ⇒ Unit]
This function is given a chance to log in a user programmatically when needed
This function is given a chance to log in a user programmatically when needed
- Definition Classes
- ProtoUser
-
def
basePath: List[String]
The base path for the user related URLs.
The base path for the user related URLs. Override this method to change the base path
- Definition Classes
- ProtoUser
-
def
bccEmail: Box[String]
- Definition Classes
- ProtoUser
-
def
beforeCreate: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
def
beforeDelete: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
def
beforeSave: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
def
beforeSchemifier: Unit
- Definition Classes
- MetaMapper → BaseMetaMapper
-
def
beforeUpdate: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
def
beforeValidation: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
def
beforeValidationOnCreate: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
def
beforeValidationOnUpdate: List[(ModelType) ⇒ Unit]
- Definition Classes
- MetaMapper
-
implicit
def
boundedFieldToItem(in: (MappedField[String, ModelType], Int)): BoundedIndexField[ModelType]
- Definition Classes
- MetaMapper
-
implicit
def
buildFieldBridge(from: (MetaMegaProtoUser.this)#FieldPointerType): (MetaMegaProtoUser.this)#FieldPointerBridge
Based on a FieldPointer, build a FieldPointerBridge
Based on a FieldPointer, build a FieldPointerBridge
- Attributes
- protected
- Definition Classes
- MetaMegaProtoUser → ProtoUser
-
def
buildMapper(rs: ResultSet): List[Box[(ResultSet, Int, ModelType) ⇒ Unit]]
- Definition Classes
- MetaMapper
-
def
buildSelectString(fields: Seq[SelectableField], conn: SuperConnection, by: QueryParam[ModelType]*): (String, Box[Long], Box[Long], List[QueryParam[ModelType]])
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.
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.
- fields
-- a Seq of the fields to be selected
- conn
-- the SuperConnection to be used for calculating the query
- by
-- the varg of QueryParams
- returns
a Tuple of the Query String, Start (offset), MaxRows (limit), and the list of all query parameters including and synthetic query parameters
- Definition Classes
- MetaMapper
-
def
bulkDelete_!!(dbId: ConnectionIdentifier, by: QueryParam[ModelType]*): Boolean
- Definition Classes
- MetaMapper
-
def
bulkDelete_!!(by: QueryParam[ModelType]*): Boolean
- Definition Classes
- MetaMapper
-
def
capturePreLoginState(): () ⇒ Unit
If there's any state that you want to capture pre-login to be set post-login (the session is destroyed), then set the state here.
If there's any state that you want to capture pre-login to be set post-login (the session is destroyed), then set the state here. Just make a function that captures the state... that function will be applied post login.
- Attributes
- protected
- Definition Classes
- ProtoUser
-
def
changePassword: NodeSeq
- Definition Classes
- ProtoUser
-
def
changePasswordMenuLoc: Box[Menu]
The menu item for changing password (make this "Empty" to disable)
The menu item for changing password (make this "Empty" to disable)
- Definition Classes
- ProtoUser
-
def
changePasswordMenuLocParams: List[LocParam[Unit]]
The LocParams for the menu item for changing password.
The LocParams for the menu item for changing password. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
- Attributes
- protected
- Definition Classes
- ProtoUser
-
lazy val
changePasswordPath: List[String]
The computed path for change password screen
The computed path for change password screen
- Definition Classes
- ProtoUser
-
def
changePasswordSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq
- Definition Classes
- ProtoUser
-
def
changePasswordSuffix: String
The path suffix for the change password screen
The path suffix for the change password screen
- Definition Classes
- ProtoUser
-
def
changePasswordXhtml: Elem
- Definition Classes
- ProtoUser
-
def
checkNames: Unit
- Definition Classes
- Mapper
-
def
clean_?(toCheck: ModelType): Boolean
Returns true if none of the fields are dirty
Returns true if none of the fields are dirty
- Definition Classes
- MetaMapper
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
columnNamesForInsert: String
- Definition Classes
- MetaMapper
-
def
columnPrimaryKey_?(name: String): Boolean
This method returns true if the named column is the primary key and it is autogenerated
This method returns true if the named column is the primary key and it is autogenerated
- Definition Classes
- MetaMapper
-
val
columnQueriesForInsert: String
- Definition Classes
- MetaMapper
-
def
comparePrimaryKeys(other: ModelType): Boolean
- Definition Classes
- KeyedMapper → Mapper
-
def
computeFieldFromPointer(instance: (MetaMegaProtoUser.this)#TheUserType, pointer: (MetaMegaProtoUser.this)#FieldPointerType): Box[BaseField]
Given a field pointer and an instance, get the field on that instance
Given a field pointer and an instance, get the field on that instance
- Attributes
- protected
- Definition Classes
- MetaMegaProtoUser → ProtoUser
-
def
connectionIdentifier: ConnectionIdentifier
- Definition Classes
- Mapper
-
def
connectionIdentifier(id: ConnectionIdentifier): ModelType
- Definition Classes
- Mapper
-
def
count(by: QueryParam[ModelType]*): Long
- Definition Classes
- MetaMapper
-
def
count: Long
- Definition Classes
- MetaMapper
-
def
countByInsecureSql(query: String, checkedBy: IHaveValidatedThisSQL): Long
- Definition Classes
- MetaMapper
-
def
countByInsecureSqlDb(dbId: ConnectionIdentifier, query: String, checkedBy: IHaveValidatedThisSQL): Long
- Definition Classes
- MetaMapper
-
def
countDb(dbId: ConnectionIdentifier, by: QueryParam[ModelType]*): Long
- Definition Classes
- MetaMapper
-
def
countryField: Box[MappedCountry[ModelType]]
- Definition Classes
- Mapper
-
def
create: ModelType
- Definition Classes
- MetaMapper
-
def
createInstance: ModelType
- Definition Classes
- MetaMapper
-
def
createInstance(dbId: ConnectionIdentifier, rs: ResultSet, mapFuncs: List[Box[(ResultSet, Int, ModelType) ⇒ Unit]]): ModelType
- Definition Classes
- MetaMapper
-
def
createInstances[T](dbId: ConnectionIdentifier, rs: ResultSet, start: Box[Long], omax: Box[Long], f: (ModelType) ⇒ Box[T]): List[T]
- Definition Classes
- MetaMapper
-
def
createInstances(dbId: ConnectionIdentifier, rs: ResultSet, start: Box[Long], omax: Box[Long]): List[ModelType]
- Definition Classes
- MetaMapper
-
def
createNewUserInstance(): (MetaMegaProtoUser.this)#TheUserType
Create a new instance of the User
Create a new instance of the User
- Attributes
- protected
- Definition Classes
- MetaMegaProtoUser → ProtoUser
-
def
createUserMenuLoc: Box[Menu]
The menu item for creating the user/sign up (make this "Empty" to disable)
The menu item for creating the user/sign up (make this "Empty" to disable)
- Definition Classes
- ProtoUser
-
def
createUserMenuLocParams: List[LocParam[Unit]]
The LocParams for the menu item for creating the user/sign up.
The LocParams for the menu item for creating the user/sign up. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
- Attributes
- protected
- Definition Classes
- ProtoUser
-
def
crudSnippets: SnippetPF
Defines the default CRUD snippets.
Defines the default CRUD snippets. Override if you want to change the names of the snippets. Defaults are "add", "edit", and "view".
(No, there's no D in CRUD.)
- Definition Classes
- KeyedMetaMapper
-
def
crudSnippets_?: Boolean
Override this definition in your model to enable CRUD snippets for that model.
Override this definition in your model to enable CRUD snippets for that model. Set to false by default.
Remember to override editSnippetSetup and viewSnippetSetup as well, as the defaults are broken.
- returns
false
- Definition Classes
- KeyedMetaMapper
-
def
currentUser: Box[(MetaMegaProtoUser.this)#TheUserType]
- Definition Classes
- ProtoUser
-
def
currentUserId: Box[String]
- Definition Classes
- ProtoUser
-
def
dbAddTable: Box[() ⇒ Unit]
- Definition Classes
- MetaMapper → BaseMetaMapper
-
def
dbCalculateConnectionIdentifier: PartialFunction[ModelType, ConnectionIdentifier]
- Definition Classes
- Mapper
-
def
dbDefaultConnectionIdentifier: ConnectionIdentifier
- Definition Classes
- MetaMapper
-
def
dbIndexes: List[BaseIndex[ModelType]]
- Definition Classes
- MetaMapper → BaseMetaMapper
-
def
dbName: String
The name of the mapped object
The name of the mapped object
- Definition Classes
- MetaMapper → Mapper → BaseMapper
-
def
dbSelectDBConnectionForFind: PartialFunction[Long, ConnectionIdentifier]
- Definition Classes
- KeyedMetaMapper
-
def
dbStringToKey(in: String): Box[Long]
- Definition Classes
- KeyedMetaMapper
-
def
dbTableName: String
The name of the database table.
The name of the database table. Override this method if you want to change the table to something other than the name of the Mapper class
- Definition Classes
- MetaMapper → BaseMetaMapper
-
def
db_can_delete_?: Boolean
Can this model object be deleted?
Can this model object be deleted?
- Definition Classes
- Mapper
-
def
decodeFromJSON_!(json: JObject, markFieldsAsDirty: Boolean): ModelType
Decode the fields from a JSON Object.
Decode the fields from a JSON Object. Should the fields be marked as dirty?
- Attributes
- protected
- Definition Classes
- MetaMapper
-
def
delete_!(toDelete: ModelType): Boolean
- Definition Classes
- MetaMapper
-
def
delete_!: Boolean
Delete the model from the RDBMS
Delete the model from the RDBMS
- Definition Classes
- Mapper
-
def
destroySessionOnLogin: Boolean
By default, destroy the session on login.
By default, destroy the session on login. Change this is some of the session information needs to be preserved.
- Attributes
- protected
- Definition Classes
- ProtoUser
-
def
dirty_?(toTest: ModelType): Boolean
- Definition Classes
- MetaMapper
-
def
dirty_?: Boolean
- Definition Classes
- Mapper
-
val
displayFieldAsLineElement: (NodeSeq) ⇒ NodeSeq
This function converts an element into the appropriate XHTML format for displaying across a line formatted block.
This function converts an element into the appropriate XHTML format for displaying across a line formatted block. 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.
- Definition Classes
- MetaMapper
-
val
displayNameToHeaderElement: (String) ⇒ NodeSeq
This function converts a header name into the appropriate XHTML format for displaying across the headers of a formatted block.
This function converts a header name into the appropriate XHTML format for displaying across the headers of a formatted block. 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
- Definition Classes
- MetaMapper
-
lazy val
doAllFieldNames: Seq[(String, SourceFieldMetadata)]
Get a list of all the fields
-
def
doHtmlLine(toLine: ModelType): NodeSeq
- Definition Classes
- MetaMapper
-
def
doPostCommit(func: () ⇒ Unit): ModelType
Append a function to perform after the commit happens
Append a function to perform after the commit happens
- func
- the function to perform after the commit happens
- Definition Classes
- Mapper
-
def
doWithUser[T](u: Box[(MetaMegaProtoUser.this)#TheUserType])(f: ⇒ T): T
There may be times when you want to be another user for some stack frames.
There may be times when you want to be another user for some stack frames. Here's how to do it.
- Definition Classes
- ProtoUser
-
def
edit: NodeSeq
- Definition Classes
- ProtoUser
-
def
editFields: List[(MetaMegaProtoUser.this)#FieldPointerType]
The list of fields presented to the user for editing
The list of fields presented to the user for editing
- Definition Classes
- MetaMegaProtoUser → ProtoUser
-
def
editFormSnippet(html: NodeSeq): NodeSeq
Base edit form snippet.
Base edit form snippet. Fetches object from
editSnippetSetup
and invokeseditSnippetCallback
when the form is submitted.- Definition Classes
- KeyedMetaMapper
-
lazy val
editPath: List[String]
The computed path for the edit screen
The computed path for the edit screen
- Definition Classes
- ProtoUser
-
def
editSnippetCallback(obj: ModelType): Unit
Default callback behavior of the edit snippet.
Default callback behavior of the edit snippet. Called when the user presses submit. Saves the passed in object.
- obj
mapped object of this metamapper's type
- Definition Classes
- KeyedMetaMapper
-
def
editSnippetSetup: ModelType
Default setup behavior for the edit snippet.
Default setup behavior for the edit snippet. BROKEN! MUST OVERRIDE IF USING CRUD SNIPPETS!
- returns
a mapped object of this metamapper's type
- Definition Classes
- KeyedMetaMapper
-
def
editSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq
- Definition Classes
- ProtoUser
-
def
editSuffix: String
The path suffix for the edit screen
The path suffix for the edit screen
- Definition Classes
- ProtoUser
-
def
editUserMenuLoc: Box[Menu]
The menu item for editing the user (make this "Empty" to disable)
The menu item for editing the user (make this "Empty" to disable)
- Definition Classes
- ProtoUser
-
def
editUserMenuLocParams: List[LocParam[Unit]]
The LocParams for the menu item for editing the user.
The LocParams for the menu item for editing the user. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
- Attributes
- protected
- Definition Classes
- ProtoUser
-
def
editXhtml(user: (MetaMegaProtoUser.this)#TheUserType): Elem
- Definition Classes
- ProtoUser
-
val
elemName: String
- Definition Classes
- MetaMapper
-
def
emailFrom: String
- Definition Classes
- ProtoUser
-
def
encodeAsJSON_!(toEncode: ModelType): JObject
This method will encode the instance as JSON.
This method will encode the instance as JSON. 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.
- Attributes
- protected
- Definition Classes
- MetaMapper
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- KeyedMapper → AnyRef → Any
-
def
fieldByName[T](fieldName: String, actual: ModelType): Box[MappedField[T, ModelType]]
Get a field by the field name
Get a field by the field name
- fieldName
-- the name of the field to get
- actual
-- the instance to get the field on
- returns
Box[The Field] (Empty if the field is not found)
- Definition Classes
- MetaMapper
-
def
fieldByName[T](fieldName: String): Box[MappedField[T, ModelType]]
Find the field by name
Find the field by name
- fieldName
-- the name of the field to find
- returns
Box[MappedField]
- Definition Classes
- Mapper
-
def
fieldMapperTransforms(fieldHtml: (BaseOwnedMappedField[ModelType]) ⇒ NodeSeq, mappedObject: ModelType): Seq[CssSel]
A set of CssSels that can be used to bind this MetaMapper's fields.
A set of CssSels that can be used to bind this MetaMapper's fields.
Elements with a class matching the field name are mapped to the NodeSeq produced by the fieldHtml function that is passed in.
So, with a MetaMapper that has three fields, name, date, and description, the resulting CSS selector transforms are:
Seq( ".name" #> fieldHtml(-name field-), ".date" #> fieldHtml(-date field-), ".description" #> fieldHtml(-description field-) )
Above, -name field-, -date field-, and -description field- refer to the actual MappedField objects for those fields.
- Definition Classes
- MetaMapper
-
def
fieldMapperTransforms(fieldTransform: (BaseOwnedMappedField[ModelType]) ⇒ NodeSeq): Seq[CssSel]
Given a function that takes a mapper field and returns a NodeSeq for the field, return, for this mapper instance, a set of CSS selector transforms that will transform a form for those fields into a fully-bound form that will interact with this instance.
Given a function that takes a mapper field and returns a NodeSeq for the field, return, for this mapper instance, a set of CSS selector transforms that will transform a form for those fields into a fully-bound form that will interact with this instance.
- Definition Classes
- Mapper
-
lazy val
fieldMatcher: PartialFunction[(ModelType, String), MappedField[Any, ModelType]]
A partial function that takes an instance of A and a field name and returns the mapped field
A partial function that takes an instance of A and a field name and returns the mapped field
- Definition Classes
- MetaMapper
-
lazy val
fieldNamesAsMap: Map[String, SourceFieldMetadata]
Get a list of all the fields as a map
-
def
fieldOrder: List[BaseOwnedMappedField[ModelType]]
- Definition Classes
- MetaMapper
-
implicit
def
fieldToItem[T](in: MappedField[T, ModelType]): IndexItem[ModelType]
- Definition Classes
- MetaMapper
-
def
fieldTransforms: Seq[CssSel]
A list of CSS selector transforms that will help render the fields of this mapper object.
A list of CSS selector transforms that will help render the fields of this mapper object.
- Definition Classes
- Mapper
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(by: QueryParam[ModelType]*): Box[ModelType]
- Definition Classes
- KeyedMetaMapper
-
def
find(dbId: ConnectionIdentifier, key: String): Box[ModelType]
- Definition Classes
- KeyedMetaMapper
-
def
find(key: String): Box[ModelType]
- Definition Classes
- KeyedMetaMapper
-
def
find(key: List[String]): Box[ModelType]
Find the element based on the first element of the List
Find the element based on the first element of the List
- Definition Classes
- KeyedMetaMapper
-
def
find(key: Any): Box[ModelType]
- Definition Classes
- KeyedMetaMapper
-
def
findAll(by: QueryParam[ModelType]*): List[ModelType]
- Definition Classes
- MetaMapper
-
def
findAll(): List[ModelType]
- Definition Classes
- MetaMapper
-
def
findAllByInsecureSql(query: String, checkedBy: IHaveValidatedThisSQL): List[ModelType]
- Definition Classes
- MetaMapper
-
def
findAllByInsecureSqlDb(dbId: ConnectionIdentifier, query: String, checkedBy: IHaveValidatedThisSQL): List[ModelType]
- Definition Classes
- MetaMapper
-
def
findAllByPreparedStatement(dbId: ConnectionIdentifier, stmt: PreparedStatement): List[ModelType]
- Definition Classes
- MetaMapper
-
def
findAllByPreparedStatement(f: (SuperConnection) ⇒ PreparedStatement): List[ModelType]
Execute a PreparedStatement and return a List of Mapper instances.
Execute a PreparedStatement and return a List of Mapper instances.
f
is where the user will do the work of creating the PreparedStatement and preparing it for execution.- f
A function that takes a SuperConnection and returns a PreparedStatement.
- returns
A List of Mapper instances.
- Definition Classes
- MetaMapper
-
def
findAllByPreparedStatementDb[T](dbId: ConnectionIdentifier, stmt: PreparedStatement)(f: (ModelType) ⇒ Box[T]): List[T]
- Definition Classes
- MetaMapper
-
def
findAllDb(dbId: ConnectionIdentifier, by: QueryParam[ModelType]*): List[ModelType]
- Definition Classes
- MetaMapper
-
def
findAllDb(dbId: ConnectionIdentifier): List[ModelType]
- Definition Classes
- MetaMapper
-
def
findAllFields(fields: Seq[SelectableField], by: QueryParam[ModelType]*): List[ModelType]
- Definition Classes
- MetaMapper
-
def
findAllFieldsDb(dbId: ConnectionIdentifier, fields: Seq[SelectableField], by: QueryParam[ModelType]*): List[ModelType]
- Definition Classes
- MetaMapper
-
def
findApplier(name: String, inst: AnyRef): Box[(ModelType, AnyRef) ⇒ Unit]
- Attributes
- protected
- Definition Classes
- MetaMapper
-
def
findByKey(key: Long): Box[ModelType]
- Definition Classes
- KeyedMetaMapper
-
def
findDb(dbId: ConnectionIdentifier, fields: Seq[SelectableField], by: QueryParam[ModelType]*): Box[ModelType]
- Definition Classes
- KeyedMetaMapper
-
def
findDb(dbId: ConnectionIdentifier, by: QueryParam[ModelType]*): Box[ModelType]
- Definition Classes
- KeyedMetaMapper
-
def
findDb(dbId: ConnectionIdentifier, key: Any): Box[ModelType]
- Definition Classes
- KeyedMetaMapper
-
def
findDbByKey(dbId: ConnectionIdentifier, fields: Seq[SelectableField], key: Long): Box[ModelType]
- Definition Classes
- KeyedMetaMapper
-
def
findDbByKey(dbId: ConnectionIdentifier, key: Long): Box[ModelType]
- Definition Classes
- KeyedMetaMapper
-
def
findMap[T](by: QueryParam[ModelType]*)(f: (ModelType) ⇒ Box[T]): List[T]
- Definition Classes
- MetaMapper
-
def
findMapByInsecureSql[T](query: String, checkedBy: IHaveValidatedThisSQL)(f: (ModelType) ⇒ Box[T]): List[T]
- Definition Classes
- MetaMapper
-
def
findMapByInsecureSqlDb[T](dbId: ConnectionIdentifier, query: String, checkedBy: IHaveValidatedThisSQL)(f: (ModelType) ⇒ Box[T]): List[T]
- Definition Classes
- MetaMapper
-
def
findMapDb[T](dbId: ConnectionIdentifier, by: QueryParam[ModelType]*)(f: (ModelType) ⇒ Box[T]): List[T]
- Definition Classes
- MetaMapper
-
def
findMapFieldDb[T](dbId: ConnectionIdentifier, fields: Seq[SelectableField], by: QueryParam[ModelType]*)(f: (ModelType) ⇒ Box[T]): List[T]
- Definition Classes
- MetaMapper
-
def
findOrCreate(key: List[String]): ModelType
Find an element by primary key or create a new one
Find an element by primary key or create a new one
- Definition Classes
- KeyedMetaMapper
-
def
findOrCreate(key: Any): ModelType
Find an element by primary key or create a new one
Find an element by primary key or create a new one
- Definition Classes
- KeyedMetaMapper
-
def
findSourceField(name: String): Box[SourceFieldInfo]
Given a name, look up the field
Given a name, look up the field
- name
the name of the field
- returns
the metadata
- Definition Classes
- Mapper → SourceInfo
-
def
findUserByUniqueId(id: String): Box[(MetaMegaProtoUser.this)#TheUserType]
Given a unique id, find the user
Given a unique id, find the user
- Attributes
- protected
- Definition Classes
- MetaMegaProtoUser → ProtoUser
-
def
findUserByUserName(email: String): Box[(MetaMegaProtoUser.this)#TheUserType]
Given an username (probably email address), find the user
Given an username (probably email address), find the user
- Attributes
- protected
- Definition Classes
- MetaMegaProtoUser → ProtoUser
-
def
flatMapFieldTitleForm[T](toMap: ModelType, func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ Seq[T]): List[T]
flat map the fields titles and forms to generate a list
flat map the fields titles and forms to generate a list
- func
called with displayHtml, fieldId, form
- Definition Classes
- MetaMapper
-
def
flatMapFieldTitleForm[T](func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ Seq[T]): List[T]
flat map the fields titles and forms to generate a list
flat map the fields titles and forms to generate a list
- func
called with displayHtml, fieldId, form
- Definition Classes
- Mapper
-
def
flatMapFieldTitleForm2[T](toMap: ModelType, func: (NodeSeq, MappedField[_, ModelType], NodeSeq) ⇒ Seq[T]): List[T]
flat map the fields titles and forms to generate a list
flat map the fields titles and forms to generate a list
- func
called with displayHtml, fieldId, form
- Definition Classes
- MetaMapper
-
def
flatMapFieldTitleForm2[T](func: (NodeSeq, MappedField[_, ModelType], NodeSeq) ⇒ Seq[T]): List[T]
flat map the fields titles and forms to generate a list
flat map the fields titles and forms to generate a list
- func
called with displayHtml, fieldId, form
- Definition Classes
- Mapper
-
def
formFields(toMap: ModelType): List[MappedField[_, ModelType]]
Get the fields (in order) for displaying a form
Get the fields (in order) for displaying a form
- Definition Classes
- MetaMapper
-
def
formFields: List[MappedField[_, ModelType]]
Get the fields (in order) for displaying a form
Get the fields (in order) for displaying a form
- Definition Classes
- Mapper
-
def
formSnippet(html: NodeSeq, obj: ModelType, cleanup: (ModelType) ⇒ Unit): NodeSeq
Provides basic transformation of
html
to a form for the givenobj
.Provides basic transformation of
html
to a form for the givenobj
. When the form is submitted,cleanup
is run.- Definition Classes
- KeyedMetaMapper
-
val
formatFormElement: (NodeSeq, NodeSeq) ⇒ NodeSeq
This function converts a name and form for a given field in the model to XHTML for presentation in the browser.
This function converts a name and form for a given field in the model to XHTML for presentation in the browser. By default, a table row ( <tr> ) is presented, but you can change the function to display something else.
- Definition Classes
- MetaMapper
-
def
formatFormLine(displayName: NodeSeq, form: NodeSeq): NodeSeq
- Definition Classes
- MetaMapper
-
def
generateResetEmailBodies(user: (MetaMegaProtoUser.this)#TheUserType, resetLink: String): List[MailBodyType]
Generate the mail bodies to send with the password reset link.
Generate the mail bodies to send with the password reset link. By default, just an HTML mail body is generated by calling passwordResetMailBody but you can send additional or alternative mail by overriding this method.
- Attributes
- protected
- Definition Classes
- ProtoUser
-
def
generateValidationEmailBodies(user: (MetaMegaProtoUser.this)#TheUserType, resetLink: String): List[MailBodyType]
Generate the mail bodies to send with the valdiation link.
Generate the mail bodies to send with the valdiation link. By default, just an HTML mail body is generated by calling signupMailBody but you can send additional or alternative mail by override this method.
- Attributes
- protected
- Definition Classes
- ProtoUser
-
def
getActualBaseField(actual: ModelType, protoField: BaseOwnedMappedField[ModelType]): BaseOwnedMappedField[ModelType]
Given the prototype field (the field on the Singleton), get the field from the instance
Given the prototype field (the field on the Singleton), get the field from the instance
- actual
-- the Mapper instance
- protoField
-- the field from the MetaMapper (Singleton)
- returns
the field from the actual object
- Definition Classes
- MetaMapper
-
def
getActualField[T](actual: ModelType, protoField: MappedField[T, ModelType]): MappedField[T, ModelType]
Given the prototype field (the field on the Singleton), get the field from the instance
Given the prototype field (the field on the Singleton), get the field from the instance
- actual
-- the Mapper instance
- protoField
-- the field from the MetaMapper (Singleton)
- returns
the field from the actual object
- Definition Classes
- MetaMapper
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
globalUserLocParams: List[LocParam[Unit]]
If you want to include a LocParam (e.g.
If you want to include a LocParam (e.g. LocGroup) on all the User menus, add them here
- Attributes
- protected
- Definition Classes
- ProtoUser
-
def
hashCode(): Int
- Definition Classes
- KeyedMapper → AnyRef → Any
-
def
homePage: String
The application's home page
The application's home page
- Definition Classes
- ProtoUser
-
def
htmlHeaders: NodeSeq
- Definition Classes
- MetaMapper
-
def
htmlLine: NodeSeq
- Definition Classes
- Mapper
-
def
indexedField(toSave: ModelType): Box[MappedField[Any, ModelType]]
- Definition Classes
- MetaMapper
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
localForm(user: (MetaMegaProtoUser.this)#TheUserType, ignorePassword: Boolean, fields: List[(MetaMegaProtoUser.this)#FieldPointerType]): NodeSeq
- Attributes
- protected
- Definition Classes
- ProtoUser
-
def
localeField: Box[MappedLocale[ModelType]]
If there's a field in this record that defines the locale, return it
If there's a field in this record that defines the locale, return it
- Definition Classes
- Mapper
-
def
logUserIdIn(id: String): Unit
- Definition Classes
- ProtoUser
-
def
logUserIn(who: (MetaMegaProtoUser.this)#TheUserType): Unit
- Definition Classes
- ProtoUser
-
def
logUserIn(who: (MetaMegaProtoUser.this)#TheUserType, postLogin: () ⇒ Nothing): Nothing
- Definition Classes
- ProtoUser
-
def
logUserOut(): Unit
- Definition Classes
- ProtoUser
-
def
loggedIn_?: Boolean
- Definition Classes
- ProtoUser
-
def
login: NodeSeq
- Definition Classes
- ProtoUser
-
def
loginFirst: If
A Menu.LocParam for testing if the user is logged in and if they're not, redirect them to the login page
A Menu.LocParam for testing if the user is logged in and if they're not, redirect them to the login page
- Definition Classes
- ProtoUser
-
def
loginMenuLoc: Box[Menu]
The menu item for login (make this "Empty" to disable)
The menu item for login (make this "Empty" to disable)
- Definition Classes
- ProtoUser
-
def
loginMenuLocParams: List[LocParam[Unit]]
The LocParams for the menu item for login.
The LocParams for the menu item for login. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
- Attributes
- protected
- Definition Classes
- ProtoUser
-
def
loginPageURL: String
Return the URL of the "login" page
Return the URL of the "login" page
- Definition Classes
- ProtoUser
-
lazy val
loginPath: List[String]
The computed path for the login screen
The computed path for the login screen
- Definition Classes
- ProtoUser
-
def
loginSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq
- Definition Classes
- ProtoUser
-
def
loginSuffix: String
The path suffix for the login screen
The path suffix for the login screen
- Definition Classes
- ProtoUser
-
def
loginXhtml: Elem
- Definition Classes
- ProtoUser
-
def
logout: Nothing
- Definition Classes
- ProtoUser
-
def
logoutCurrentUser: Unit
- Definition Classes
- ProtoUser
-
def
logoutMenuLoc: Box[Menu]
The menu item for logout (make this "Empty" to disable)
The menu item for logout (make this "Empty" to disable)
- Definition Classes
- ProtoUser
-
def
logoutMenuLocParams: List[LocParam[Unit]]
The LocParams for the menu item for logout.
The LocParams for the menu item for logout. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
- Attributes
- protected
- Definition Classes
- ProtoUser
-
lazy val
logoutPath: List[String]
The computed pat for logout
The computed pat for logout
- Definition Classes
- ProtoUser
-
def
logoutSuffix: String
The path suffix for the logout screen
The path suffix for the logout screen
- Definition Classes
- ProtoUser
-
def
lostPassword: NodeSeq
- Definition Classes
- ProtoUser
-
def
lostPasswordMenuLoc: Box[Menu]
The menu item for lost password (make this "Empty" to disable)
The menu item for lost password (make this "Empty" to disable)
- Definition Classes
- ProtoUser
-
def
lostPasswordMenuLocParams: List[LocParam[Unit]]
The LocParams for the menu item for lost password.
The LocParams for the menu item for lost password. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
- Attributes
- protected
- Definition Classes
- ProtoUser
-
lazy val
lostPasswordPath: List[String]
The computed path for the lost password screen
The computed path for the lost password screen
- Definition Classes
- ProtoUser
-
def
lostPasswordSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq
- Definition Classes
- ProtoUser
-
def
lostPasswordSuffix: String
The path suffix for the lost password screen
The path suffix for the lost password screen
- Definition Classes
- ProtoUser
-
def
lostPasswordXhtml: Elem
- Definition Classes
- ProtoUser
-
def
mapFieldTitleForm[T](toMap: ModelType, func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ T): List[T]
map the fields titles and forms to generate a list
map the fields titles and forms to generate a list
- func
called with displayHtml, fieldId, form
- Definition Classes
- MetaMapper
-
def
mapFieldTitleForm[T](func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ T): List[T]
map the fields titles and forms to generate a list
map the fields titles and forms to generate a list
- func
called with displayHtml, fieldId, form
- Definition Classes
- Mapper
-
lazy val
mappedFields: Seq[BaseMappedField]
The mapped fields
The mapped fields
- Definition Classes
- MetaMapper → BaseMetaMapper
-
lazy val
mappedFieldsForModel: List[MappedField[_, ModelType]]
the mapped fields as MappedField rather than BaseMappedField
the mapped fields as MappedField rather than BaseMappedField
- Definition Classes
- MetaMapper
-
def
menuNameSuffix: String
If you have more than 1 ProtoUser in your application, you'll need to distinguish the menu names.
If you have more than 1 ProtoUser in your application, you'll need to distinguish the menu names. Do so by changing the menu name suffix so that there are no name clashes
- Attributes
- protected
- Definition Classes
- ProtoUser
-
def
menus: List[Menu]
An alias for the sitemap property
An alias for the sitemap property
- Definition Classes
- ProtoUser
-
def
mutateUserOnEdit(user: (MetaMegaProtoUser.this)#TheUserType): (MetaMegaProtoUser.this)#TheUserType
If there's any mutation to do to the user on retrieval for editing, override this method and mutate the user.
If there's any mutation to do to the user on retrieval for editing, override this method and mutate the user. This can be used to pull query parameters from the request and assign certain fields. Issue #722
- user
the user to mutate
- returns
the mutated user
- Attributes
- protected
- Definition Classes
- ProtoUser
-
def
mutateUserOnSignup(user: (MetaMegaProtoUser.this)#TheUserType): (MetaMegaProtoUser.this)#TheUserType
If there's any mutation to do to the user on creation for signup, override this method and mutate the user.
If there's any mutation to do to the user on creation for signup, override this method and mutate the user. This can be used to pull query parameters from the request and assign certain fields. . Issue #722
- user
the user to mutate
- returns
the mutated user
- Attributes
- protected
- Definition Classes
- ProtoUser
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
niceName(inst: (MetaMegaProtoUser.this)#TheUserType): String
Get a nice name for the user
Get a nice name for the user
- Definition Classes
- ProtoUser
-
def
niceNameWEmailLink(inst: (MetaMegaProtoUser.this)#TheUserType): Elem
Get an email link for the user
Get an email link for the user
- Definition Classes
- ProtoUser
-
def
notLoggedIn_?: Boolean
Inverted loggedIn_?
Inverted loggedIn_?
- Definition Classes
- ProtoUser
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
objFromIndexedParam: Box[ModelType]
Lame attempt at automatically getting an object from the HTTP parameters.
Lame attempt at automatically getting an object from the HTTP parameters. 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.
- Definition Classes
- KeyedMetaMapper
-
val
onLogIn: List[((MetaMegaProtoUser.this)#TheUserType) ⇒ Unit]
- Definition Classes
- ProtoUser
-
val
onLogOut: List[(Box[(MetaMegaProtoUser.this)#TheUserType]) ⇒ Unit]
- Definition Classes
- ProtoUser
-
def
passwordReset(id: String): NodeSeq
- Definition Classes
- ProtoUser
-
def
passwordResetEmailSubject: String
- Definition Classes
- ProtoUser
-
def
passwordResetMailBody(user: (MetaMegaProtoUser.this)#TheUserType, resetLink: String): Elem
- Definition Classes
- ProtoUser
-
lazy val
passwordResetPath: List[String]
The computed path for the reset password screen
The computed path for the reset password screen
- Definition Classes
- ProtoUser
-
def
passwordResetSuffix: String
The path suffix for the reset password screen
The path suffix for the reset password screen
- Definition Classes
- ProtoUser
-
def
passwordResetXhtml: Elem
- Definition Classes
- ProtoUser
-
def
prependFieldTransform(transform: CssSel): Unit
- Definition Classes
- Mapper
-
def
reload: ModelType
- Definition Classes
- KeyedMapper
-
def
resetPasswordMenuLoc: Box[Menu]
The menu item for resetting the password (make this "Empty" to disable)
The menu item for resetting the password (make this "Empty" to disable)
- Definition Classes
- ProtoUser
-
def
resetPasswordMenuLocParams: List[LocParam[Unit]]
The LocParams for the menu item for resetting the password.
The LocParams for the menu item for resetting the password. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
- Attributes
- protected
- Definition Classes
- ProtoUser
-
def
resetPasswordSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq
- Definition Classes
- ProtoUser
-
val
rootClass: Class[?0] forSome {type ?0 <: MetaMapper[ModelType] with ModelType, type ?0 >: ?0}
- Attributes
- protected
- Definition Classes
- MetaMapper
-
def
runSafe[T](f: ⇒ T): T
- Definition Classes
- Mapper
-
def
runValidationList(toValidate: ModelType): List[FieldError]
Run the list of field validations, etc.
Run the list of field validations, etc. This is the raw validation, without the notifications. This method can be over-ridden.
- Attributes
- protected
- Definition Classes
- MetaMapper
-
final
def
safe_?: Boolean
- Definition Classes
- Mapper
-
def
save(toSave: ModelType): Boolean
- Definition Classes
- MetaMapper
-
def
save(): Boolean
- Definition Classes
- Mapper → BaseMapper
-
def
saveMe(): ModelType
Save the instance and return the instance
Save the instance and return the instance
- Definition Classes
- Mapper
-
def
saved_?(toSave: ModelType): Boolean
- Definition Classes
- MetaMapper
-
def
saved_?: Boolean
- Definition Classes
- Mapper
-
def
screenWrap: Box[Node]
What template are you going to wrap the various nodes in
What template are you going to wrap the various nodes in
- Definition Classes
- ProtoUser
-
def
sendPasswordReset(email: String): Unit
Send password reset email to the user.
Send password reset email to the user. The XHTML version of the mail body is generated by calling passwordResetMailBody. You can customize the mail sent to users by overriding generateResetEmailBodies to send non-HTML mail or alternative mail bodies.
- Definition Classes
- ProtoUser
-
def
sendValidationEmail(user: (MetaMegaProtoUser.this)#TheUserType): Unit
Send validation email to the user.
Send validation email to the user. The XHTML version of the mail body is generated by calling signupMailBody. You can customize the mail sent to users by override generateValidationEmailBodies to send non-HTML mail or alternative mail bodies.
- Definition Classes
- ProtoUser
-
def
shortName(inst: (MetaMegaProtoUser.this)#TheUserType): String
Get a nice name for the user
Get a nice name for the user
- Definition Classes
- ProtoUser
-
lazy val
signUpPath: List[String]
The computed path for the sign up screen
The computed path for the sign up screen
- Definition Classes
- ProtoUser
-
def
signUpSuffix: String
The path suffix for the sign up screen
The path suffix for the sign up screen
- Definition Classes
- ProtoUser
-
def
signup: NodeSeq
- Definition Classes
- ProtoUser
-
def
signupFields: List[(MetaMegaProtoUser.this)#FieldPointerType]
The list of fields presented to the user at sign-up
The list of fields presented to the user at sign-up
- Definition Classes
- MetaMegaProtoUser → ProtoUser
-
def
signupMailBody(user: (MetaMegaProtoUser.this)#TheUserType, validationLink: String): Elem
- Definition Classes
- ProtoUser
-
def
signupMailSubject: String
- Definition Classes
- ProtoUser
-
def
signupSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq
- Definition Classes
- ProtoUser
-
def
signupXhtml(user: (MetaMegaProtoUser.this)#TheUserType): Elem
- Definition Classes
- ProtoUser
-
lazy val
sitemap: List[Menu]
- Definition Classes
- ProtoUser
-
def
sitemapMutator: (SiteMap) ⇒ SiteMap
The SiteMap mutator function
The SiteMap mutator function
- Definition Classes
- ProtoUser
-
def
skipEmailValidation: Boolean
- Definition Classes
- ProtoUser
-
def
snarfLastItem: String
- Attributes
- protected
- Definition Classes
- ProtoUser
-
def
standardSubmitButton(name: String, func: () ⇒ Any = () => {}): Elem
- Definition Classes
- ProtoUser
-
def
superUser_?: Boolean
Is there a user logged in and are they a superUser?
Is there a user logged in and are they a superUser?
- Definition Classes
- ProtoUser
-
def
suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp)]
If the instance calculates any additional fields for JSON object, put the calculated fields here
If the instance calculates any additional fields for JSON object, put the calculated fields here
- Definition Classes
- Mapper
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
testLoggedIn(page: String): Boolean
- Definition Classes
- ProtoUser
-
lazy val
testLogginIn: If
A Menu.LocParam to test if the user is logged in
A Menu.LocParam to test if the user is logged in
- Definition Classes
- ProtoUser
-
lazy val
testSuperUser: If
A Menu.LocParam to test if the user is a super user
A Menu.LocParam to test if the user is a super user
- Definition Classes
- ProtoUser
-
def
thePath(end: String): List[String]
Calculate the path given a suffix by prepending the basePath to the suffix
Calculate the path given a suffix by prepending the basePath to the suffix
- Attributes
- protected
- Definition Classes
- ProtoUser
-
implicit
def
thisToMappee(in: Mapper[ModelType]): ModelType
- Definition Classes
- Mapper
-
def
timeZoneField: Box[MappedTimeZone[ModelType]]
- Definition Classes
- Mapper
-
def
toForm(toMap: ModelType): NodeSeq
- Definition Classes
- MetaMapper
-
def
toForm(button: Box[String], redoSnippet: (NodeSeq) ⇒ NodeSeq, onSuccess: (ModelType) ⇒ Unit): NodeSeq
- Definition Classes
- Mapper
-
def
toForm(button: Box[String], f: (ModelType) ⇒ Any): NodeSeq
Present the model as a form and execute the function on submission of the form
Present the model as a form and execute the function on submission of the form
- button
- If it's Full, put a submit button on the form with the value of the parameter
- f
- the function to execute on form submission
- returns
the form
- Definition Classes
- Mapper
-
def
toForm(button: Box[String], onSuccess: String): NodeSeq
Present the model as a form and execute the function on submission of the form
Present the model as a form and execute the function on submission of the form
- button
- If it's Full, put a submit button on the form with the value of the parameter
- onSuccess
- redirect to the URL if the model validates, otherwise display the errors
- returns
the form
- Definition Classes
- Mapper
-
def
toHtml(toMap: ModelType): NodeSeq
Present the model as a HTML using the same formatting as toForm
Present the model as a HTML using the same formatting as toForm
- toMap
the instance to generate the HTML for
- returns
the html view of the model
- Definition Classes
- MetaMapper
-
def
toHtml: NodeSeq
Present the model as a HTML using the same formatting as toForm
Present the model as a HTML using the same formatting as toForm
- returns
the html view of the model
- Definition Classes
- Mapper
-
def
toString(): String
- Definition Classes
- Mapper → AnyRef → Any
-
def
toXml(what: ModelType): Elem
- Definition Classes
- MetaMapper
-
def
toXml: Elem
- Definition Classes
- Mapper
-
implicit
def
typeToBridge(in: (MetaMegaProtoUser.this)#TheUserType): (MetaMegaProtoUser.this)#UserBridge
Convert an instance of TheUserType to the Bridge trait
Convert an instance of TheUserType to the Bridge trait
- Attributes
- protected
- Definition Classes
- MetaMegaProtoUser → ProtoUser
-
def
unapply(key: Any): Option[ModelType]
- Definition Classes
- KeyedMetaMapper
-
def
updateFromJSON_!(toUpdate: ModelType, json: JObject): ModelType
This method will update the instance from JSON.
This method will update the instance from JSON. 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.
- Attributes
- protected
- Definition Classes
- MetaMapper
-
def
userFromStringId(id: String): Box[(MetaMegaProtoUser.this)#TheUserType]
Given a String representing the User ID, find the user
Given a String representing the User ID, find the user
- Attributes
- protected
- Definition Classes
- MetaMegaProtoUser → ProtoUser
-
def
userMenu: List[Node]
- Definition Classes
- ProtoUser
-
def
userNameFieldString: String
How do we prompt the user for the username.
How do we prompt the user for the username. By default, it's S.?("email.address"), you can can change it to something else
- Definition Classes
- ProtoUser
-
def
userNameNotFoundString: String
The string that's generated when the user name is not found.
The string that's generated when the user name is not found. By default: S.?("email.address.not.found")
- Definition Classes
- ProtoUser
-
final
def
validate(toValidate: ModelType): List[FieldError]
- Definition Classes
- MetaMapper
-
def
validate: List[FieldError]
- Definition Classes
- Mapper
-
def
validateSignup(user: (MetaMegaProtoUser.this)#TheUserType): List[FieldError]
Override this method to validate the user signup (eg by adding captcha verification)
Override this method to validate the user signup (eg by adding captcha verification)
- Definition Classes
- ProtoUser
-
def
validateUser(id: String): NodeSeq
- Definition Classes
- ProtoUser
-
def
validateUserMenuLoc: Box[Menu]
The menu item for validating a user (make this "Empty" to disable)
The menu item for validating a user (make this "Empty" to disable)
- Definition Classes
- ProtoUser
-
def
validateUserMenuLocParams: List[LocParam[Unit]]
The LocParams for the menu item for validating a user.
The LocParams for the menu item for validating a user. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!
- Attributes
- protected
- Definition Classes
- ProtoUser
-
lazy val
validateUserPath: List[String]
The calculated path to the user validation screen
The calculated path to the user validation screen
- Definition Classes
- ProtoUser
-
def
validateUserSuffix: String
The path suffix for the validate user screen
The path suffix for the validate user screen
- Definition Classes
- ProtoUser
-
def
validation: List[(ModelType) ⇒ List[FieldError]]
If there are model-specific validations to perform, override this method and return an additional list of validations to perform
If there are model-specific validations to perform, override this method and return an additional list of validations to perform
- Definition Classes
- MetaMapper
-
def
viewSnippetSetup: ModelType
Default setup behavior for the view snippet.
Default setup behavior for the view snippet. BROKEN! MUST OVERRIDE IF USING CRUD SNIPPETS!
- returns
a mapped object of this metamapper's type
- Definition Classes
- KeyedMetaMapper
-
def
viewTransform(html: NodeSeq): NodeSeq
Basic transformation of
html
to HTML for displaying the object fromviewSnippetSetup
.Basic transformation of
html
to HTML for displaying the object fromviewSnippetSetup
.- Definition Classes
- KeyedMetaMapper
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
whatToSet(toSave: ModelType): String
- Definition Classes
- MetaMapper
-
def
wrapIt(in: NodeSeq): NodeSeq
- Attributes
- protected
- Definition Classes
- ProtoUser
-
object
AddUserMenusAfter
extends LocParam[Any] with Product with Serializable
Insert this LocParam into your menu if you want the User's menu items to be inserted at the same level and after the item
Insert this LocParam into your menu if you want the User's menu items to be inserted at the same level and after the item
- Definition Classes
- ProtoUser
-
object
AddUserMenusHere
extends LocParam[Any] with Product with Serializable
replace the menu that has this LocParam with the User's menu items
replace the menu that has this LocParam with the User's menu items
- Definition Classes
- ProtoUser
-
object
AddUserMenusUnder
extends LocParam[Any] with Product with Serializable
Insert this LocParam into your menu if you want the User's menu items to be children of that menu
Insert this LocParam into your menu if you want the User's menu items to be children of that menu
- Definition Classes
- ProtoUser
-
object
editFunc
extends RequestVar[Box[() ⇒ NodeSeq]]
- Definition Classes
- ProtoUser
-
object
loginRedirect
extends SessionVar[Box[String]]
If you want to redirect a user to a different page after login, put the page here
If you want to redirect a user to a different page after login, put the page here
- Definition Classes
- ProtoUser
-
object
signupFunc
extends RequestVar[Box[() ⇒ NodeSeq]]
- Attributes
- protected
- Definition Classes
- ProtoUser