net.liftweb.mapper

MetaMegaProtoUser

trait MetaMegaProtoUser [ModelType <: MegaProtoUser[ModelType]] extends KeyedMetaMapper[Long, ModelType] with ProtoUser

Mix this trait into the the Mapper singleton for User and you get a bunch of user functionality including password reset, etc.

linear super types: ProtoUser, KeyedMetaMapper[Long, ModelType], KeyedMapper[Long, ModelType], BaseKeyedMapper, MetaMapper[ModelType], Mapper[ModelType], BaseMapper, FieldContainer, BaseMetaMapper, AnyRef, Any
known subclasses: MetaLDAPProtoUser
self type: MetaMegaProtoUser[ModelType] with ModelType
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. MetaMegaProtoUser
  2. ProtoUser
  3. KeyedMetaMapper
  4. KeyedMapper
  5. BaseKeyedMapper
  6. MetaMapper
  7. Mapper
  8. BaseMapper
  9. FieldContainer
  10. BaseMetaMapper
  11. AnyRef
  12. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Type Members

  1. type AnyBound = T forSome { type T }

    definition classes: MetaMapper
  2. case class FieldHolder (name: String, method: Method, field: net.liftweb.mapper.MappedField[_, A]) extends Product

  3. type FieldPF = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]

    definition classes: Mapper
  4. trait FieldPointerBridge extends AnyRef

    attributes: protected
  5. type FieldPointerType = net.liftweb.mapper.MappedField[_, MetaMegaProtoUser.this.TheUserType]

    What's a field pointer for the underlying CRUDify

    What's a field pointer for the underlying CRUDify

    definition classes: MetaMegaProtoUserProtoUser
  6. type KeyedMapperType = ModelType

    definition classes: KeyedMapperBaseKeyedMapper
  7. type MapperType = ModelType

    definition classes: MapperBaseMapper
  8. case class MenuItem (name: String, path: List[String], loggedIn: Boolean) extends Product

  9. class MyPointer extends FieldPointerBridge

    attributes: protected
  10. class MyUserBridge extends UserBridge

    Bridges from TheUserType to methods used in this class

  11. type OtherMapper = net.liftweb.mapper.KeyedMapper[_, _]

    definition classes: MetaMapper
  12. type OtherMetaMapper = net.liftweb.mapper.KeyedMetaMapper[_, _]

    definition classes: MetaMapper
  13. type Q = net.liftweb.mapper.MappedForeignKey[MetaMegaProtoUser.this.AnyBound,ModelType,OO] with net.liftweb.mapper.MappedField[MetaMegaProtoUser.this.AnyBound,ModelType] forSome { type OO <: net.liftweb.mapper.KeyedMapper[MetaMegaProtoUser.this.AnyBound,OO] }

    definition classes: KeyedMetaMapper
  14. type RealType = ModelType

    definition classes: MetaMapperBaseMetaMapper
  15. type TheKeyType = Long

    definition classes: KeyedMapperBaseKeyedMapper
  16. type TheUserType = ModelType

    The underlying record for the User

    The underlying record for the User

    definition classes: MetaMegaProtoUserProtoUser
  17. trait UserBridge extends AnyRef

    Bridges from TheUserType to methods used in this class

Value Members

  1. def != (arg0: AnyRef) : Boolean

    attributes: final
    definition classes: AnyRef
  2. def != (arg0: Any) : Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ## () : Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf [T0] () : T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf [T0] () : Boolean

    attributes: final
    definition classes: AnyRef
  6. def == (arg0: AnyRef) : Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  7. def == (arg0: Any) : Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  8. object AddUserMenusAfter extends LocParam[Any] with Product

    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

  9. object AddUserMenusHere extends LocParam[Any] with Product

    replace the menu that has this LocParam with the User's menu items

  10. object AddUserMenusUnder extends LocParam[Any] with Product

    Insert this LocParam into your menu if you want the User's menu items to be children of that menu

  11. lazy val ItemList : List[MenuItem]

    definition classes: ProtoUser
  12. def _dbTableNameLC : String

    The table name, to lower case.

    The table name, to lower case... ensures that it works on all DBs

    attributes: final
    definition classes: MetaMapperBaseMetaMapper
  13. def actionsAfterSignup (theUser: 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
  14. def addEndStuffs (in: String, params: List[QueryParam[ModelType]], conn: SuperConnection) : (String, Box[Long], Box[Long])

    attributes: protected
    definition classes: MetaMapper
  15. def addSnippet (xhtml: NodeSeq) : NodeSeq

    Default add snippet.

    Default add snippet. Override to change behavior of the add snippet.

    definition classes: KeyedMetaMapper
  16. 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
  17. 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
  18. object addlQueryParams extends RequestVar[List[QueryParam[A]]]

  19. def afterCommit : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  20. def afterCreate : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  21. def afterDelete : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  22. def afterSave : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  23. def afterSchemifier : Unit

    definition classes: KeyedMetaMapperMetaMapperBaseMetaMapper
  24. def afterUpdate : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  25. def afterValidation : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  26. def afterValidationOnCreate : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  27. def afterValidationOnUpdate : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  28. def allFields : Seq[BaseField]

    definition classes: MapperFieldContainer
  29. def appendField (pf: FieldPF) : Unit

    definition classes: Mapper
  30. def appendFieldToStrings (in: ModelType) : String

    definition classes: MetaMapper
  31. def asHtml (toLine: ModelType) : NodeSeq

    definition classes: MetaMapper
  32. def asHtml : NodeSeq

    definition classes: Mapper
  33. def asInstanceOf [T0] : T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  34. def asJs (actual: ModelType) : JsExp

    definition classes: MetaMapper
  35. def asJs : JsExp

    Convert the model to a JavaScript object

    Convert the model to a JavaScript object

    definition classes: Mapper
  36. def asSafeJs (actual: ModelType, f: KeyObfuscator) : JsExp

    definition classes: KeyedMetaMapper
  37. def asSafeJs (f: KeyObfuscator) : JsExp

    definition classes: KeyedMapper
  38. 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
  39. var 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
  40. val basePath : List[String]

    definition classes: ProtoUser
  41. def bccEmail : Box[String]

    definition classes: ProtoUser
  42. def beforeCreate : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  43. def beforeDelete : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  44. def beforeSave : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  45. def beforeSchemifier : Unit

    definition classes: MetaMapperBaseMetaMapper
  46. def beforeUpdate : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  47. def beforeValidation : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  48. def beforeValidationOnCreate : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  49. def beforeValidationOnUpdate : List[(ModelType) ⇒ Unit]

    definition classes: MetaMapper
  50. implicit def boundedFieldToItem (in: (MappedField[String, ModelType], Int)) : BoundedIndexField[ModelType]

    attributes: implicit
    definition classes: MetaMapper
  51. implicit def buildFieldBridge (from: FieldPointerType) : FieldPointerBridge

    Based on a FieldPointer, build a FieldPointerBridge

    Based on a FieldPointer, build a FieldPointerBridge

    attributes: protected implicit
    definition classes: MetaMegaProtoUserProtoUser
  52. def buildMapper (rs: ResultSet) : List[Box[(ResultSet, Int, ModelType) ⇒ Unit]]

    definition classes: MetaMapper
  53. 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

    definition classes: MetaMapper
  54. def bulkDelete_!! (dbId: ConnectionIdentifier, by: QueryParam[ModelType]*) : Boolean

    definition classes: MetaMapper
  55. def bulkDelete_!! (by: QueryParam[ModelType]*) : Boolean

    definition classes: MetaMapper
  56. 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
  57. def changePassword : NodeSeq

    definition classes: ProtoUser
  58. 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
  59. 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
  60. lazy val changePasswordPath : List[String]

    definition classes: ProtoUser
  61. def changePasswordSuffix : String

    definition classes: ProtoUser
  62. def changePasswordXhtml : Elem

    definition classes: ProtoUser
  63. def checkNames : Unit

    definition classes: Mapper
  64. 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
  65. def clone () : AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected
    definition classes: AnyRef
  66. val columnNamesForInsert : String

    definition classes: MetaMapper
  67. 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
  68. val columnQueriesForInsert : String

    definition classes: MetaMapper
  69. def comparePrimaryKeys (other: ModelType) : Boolean

    definition classes: KeyedMapperMapper
  70. def computeFieldFromPointer (instance: TheUserType, pointer: 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: MetaMegaProtoUserProtoUser
  71. def connectionIdentifier : ConnectionIdentifier

    definition classes: Mapper
  72. def connectionIdentifier (id: ConnectionIdentifier) : ModelType

    definition classes: Mapper
  73. def count (by: QueryParam[ModelType]*) : Long

    definition classes: MetaMapper
  74. def count : Long

    definition classes: MetaMapper
  75. def countByInsecureSql (query: String, checkedBy: IHaveValidatedThisSQL) : Long

    definition classes: MetaMapper
  76. def countByInsecureSqlDb (dbId: ConnectionIdentifier, query: String, checkedBy: IHaveValidatedThisSQL) : Long

    definition classes: MetaMapper
  77. def countDb (dbId: ConnectionIdentifier, by: QueryParam[ModelType]*) : Long

    definition classes: MetaMapper
  78. def countryField : Box[MappedCountry[ModelType]]

    definition classes: Mapper
  79. def create : ModelType

    definition classes: MetaMapper
  80. def createInstance : ModelType

    definition classes: MetaMapper
  81. def createInstance (dbId: ConnectionIdentifier, rs: ResultSet, mapFuncs: List[Box[(ResultSet, Int, ModelType) ⇒ Unit]]) : ModelType

    definition classes: MetaMapper
  82. def createInstances [T] (dbId: ConnectionIdentifier, rs: ResultSet, start: Box[Long], omax: Box[Long], f: (ModelType) ⇒ Box[T]) : List[T]

    definition classes: MetaMapper
  83. def createInstances (dbId: ConnectionIdentifier, rs: ResultSet, start: Box[Long], omax: Box[Long]) : List[ModelType]

    definition classes: MetaMapper
  84. def createNewUserInstance () : TheUserType

    Create a new instance of the User

    Create a new instance of the User

    attributes: protected
    definition classes: MetaMegaProtoUserProtoUser
  85. 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
  86. 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
  87. 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
  88. 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
  89. def currentUser : Box[TheUserType]

    definition classes: ProtoUser
  90. def currentUserId : Box[String]

    definition classes: ProtoUser
  91. def dbAddTable : Box[() ⇒ Unit]

    definition classes: MetaMapperBaseMetaMapper
  92. def dbCalculateConnectionIdentifier : PartialFunction[ModelType, ConnectionIdentifier]

    definition classes: Mapper
  93. def dbDefaultConnectionIdentifier : ConnectionIdentifier

    definition classes: MetaMapper
  94. def dbIndexes : List[BaseIndex[ModelType]]

    definition classes: MetaMapperBaseMetaMapper
  95. def dbName : String

    The name of the mapped object

    The name of the mapped object

    definition classes: MetaMapperMapperBaseMapper
  96. def dbSelectDBConnectionForFind : PartialFunction[Long, ConnectionIdentifier]

    definition classes: KeyedMetaMapper
  97. def dbStringToKey (in: String) : Box[Long]

    definition classes: KeyedMetaMapper
  98. 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: MetaMapperBaseMetaMapper
  99. def db_can_delete_? : Boolean

    Can this model object be deleted?

    Can this model object be deleted?

    definition classes: Mapper
  100. 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
  101. def delete_! (toDelete: ModelType) : Boolean

    definition classes: MetaMapper
  102. def delete_! : Boolean

    Delete the model from the RDBMS

    Delete the model from the RDBMS

    definition classes: Mapper
  103. 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
  104. def dirty_? (toTest: ModelType) : Boolean

    definition classes: MetaMapper
  105. def dirty_? : Boolean

    definition classes: Mapper
  106. var 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 &lt;td&gt; 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
  107. var 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 &lt;th&gt; 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
  108. def doHtmlLine (toLine: ModelType) : NodeSeq

    definition classes: MetaMapper
  109. 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
  110. def edit : NodeSeq

    definition classes: ProtoUser
  111. def editFields : List[FieldPointerType]

    The list of fields presented to the user for editing

    The list of fields presented to the user for editing

    definition classes: MetaMegaProtoUserProtoUser
  112. object editFunc extends RequestVar[Box[() ⇒ NodeSeq]]

  113. lazy val editPath : List[String]

    definition classes: ProtoUser
  114. def editSnippet (xhtml: NodeSeq) : NodeSeq

    Default edit snippet.

    Default edit snippet. Override to change behavior of the edit snippet.

    definition classes: KeyedMetaMapper
  115. 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
  116. 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
  117. def editSuffix : String

    definition classes: ProtoUser
  118. 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
  119. 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
  120. def editXhtml (user: TheUserType) : Elem

    definition classes: ProtoUser
  121. val elemName : String

    definition classes: MetaMapper
  122. def emailFrom : String

    definition classes: ProtoUser
  123. 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
  124. def eq (arg0: AnyRef) : Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  125. def equals (other: Any) : Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: KeyedMapper → AnyRef → Any
  126. 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
  127. 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
  128. def fieldMapperPF (transform: (BaseOwnedMappedField[ModelType]) ⇒ NodeSeq, actual: ModelType) : PartialFunction[String, (NodeSeq) ⇒ NodeSeq]

    definition classes: MetaMapper
  129. def fieldMapperPF (transform: (BaseOwnedMappedField[ModelType]) ⇒ NodeSeq) : FieldPF

    definition classes: Mapper
  130. lazy val fieldMatcher : PartialFunction[(ModelType, String), MappedField[Any, ModelType]]

    definition classes: MetaMapper
  131. def fieldOrder : List[BaseOwnedMappedField[ModelType]]

    definition classes: MetaMapper
  132. def fieldPF : FieldPF

    definition classes: Mapper
  133. implicit def fieldToItem [T] (in: MappedField[T, ModelType]) : IndexItem[ModelType]

    attributes: implicit
    definition classes: MetaMapper
  134. def finalize () : Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  135. def find (by: QueryParam[ModelType]*) : Box[ModelType]

    definition classes: KeyedMetaMapper
  136. def find (dbId: ConnectionIdentifier, key: String) : Box[ModelType]

    definition classes: KeyedMetaMapper
  137. def find (key: String) : Box[ModelType]

    definition classes: KeyedMetaMapper
  138. 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
  139. def find (key: Any) : Box[ModelType]

    definition classes: KeyedMetaMapper
  140. def findAll (by: QueryParam[ModelType]*) : List[ModelType]

    definition classes: MetaMapper
  141. def findAll () : List[ModelType]

    definition classes: MetaMapper
  142. def findAllByInsecureSql (query: String, checkedBy: IHaveValidatedThisSQL) : List[ModelType]

    definition classes: MetaMapper
  143. def findAllByInsecureSqlDb (dbId: ConnectionIdentifier, query: String, checkedBy: IHaveValidatedThisSQL) : List[ModelType]

    definition classes: MetaMapper
  144. def findAllByPreparedStatement (dbId: ConnectionIdentifier, stmt: PreparedStatement) : List[ModelType]

    definition classes: MetaMapper
  145. 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
  146. def findAllByPreparedStatementDb [T] (dbId: ConnectionIdentifier, stmt: PreparedStatement)(f: (ModelType) ⇒ Box[T]) : List[T]

    definition classes: MetaMapper
  147. def findAllDb (dbId: ConnectionIdentifier, by: QueryParam[ModelType]*) : List[ModelType]

    definition classes: MetaMapper
  148. def findAllDb (dbId: ConnectionIdentifier) : List[ModelType]

    definition classes: MetaMapper
  149. def findAllFields (fields: Seq[SelectableField], by: QueryParam[ModelType]*) : List[ModelType]

    definition classes: MetaMapper
  150. def findAllFieldsDb (dbId: ConnectionIdentifier, fields: Seq[SelectableField], by: QueryParam[ModelType]*) : List[ModelType]

    definition classes: MetaMapper
  151. def findApplier (name: String, inst: AnyRef) : Box[(ModelType, AnyRef) ⇒ Unit]

    attributes: protected
    definition classes: MetaMapper
  152. def findByKey (key: Long) : Box[ModelType]

    definition classes: KeyedMetaMapper
  153. def findDb (dbId: ConnectionIdentifier, fields: Seq[SelectableField], by: QueryParam[ModelType]*) : Box[ModelType]

    definition classes: KeyedMetaMapper
  154. def findDb (dbId: ConnectionIdentifier, by: QueryParam[ModelType]*) : Box[ModelType]

    definition classes: KeyedMetaMapper
  155. def findDb (dbId: ConnectionIdentifier, key: Any) : Box[ModelType]

    definition classes: KeyedMetaMapper
  156. def findDbByKey (dbId: ConnectionIdentifier, fields: Seq[SelectableField], key: Long) : Box[ModelType]

    definition classes: KeyedMetaMapper
  157. def findDbByKey (dbId: ConnectionIdentifier, key: Long) : Box[ModelType]

    definition classes: KeyedMetaMapper
  158. def findMap [T] (by: QueryParam[ModelType]*)(f: (ModelType) ⇒ Box[T]) : List[T]

    definition classes: MetaMapper
  159. def findMapByInsecureSql [T] (query: String, checkedBy: IHaveValidatedThisSQL)(f: (ModelType) ⇒ Box[T]) : List[T]

    definition classes: MetaMapper
  160. def findMapByInsecureSqlDb [T] (dbId: ConnectionIdentifier, query: String, checkedBy: IHaveValidatedThisSQL)(f: (ModelType) ⇒ Box[T]) : List[T]

    definition classes: MetaMapper
  161. def findMapDb [T] (dbId: ConnectionIdentifier, by: QueryParam[ModelType]*)(f: (ModelType) ⇒ Box[T]) : List[T]

    definition classes: MetaMapper
  162. def findMapFieldDb [T] (dbId: ConnectionIdentifier, fields: Seq[SelectableField], by: QueryParam[ModelType]*)(f: (ModelType) ⇒ Box[T]) : List[T]

    definition classes: MetaMapper
  163. 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
  164. 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
  165. def findUserByUniqueId (id: String) : Box[TheUserType]

    Given a unique id, find the user

    Given a unique id, find the user

    attributes: protected
    definition classes: MetaMegaProtoUserProtoUser
  166. def findUserByUserName (email: String) : Box[TheUserType]

    Given an username (probably email address), find the user

    Given an username (probably email address), find the user

    attributes: protected
    definition classes: MetaMegaProtoUserProtoUser
  167. 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
  168. 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
  169. def flatMapFieldTitleForm2 [T] (toMap: ModelType, func: (NodeSeq, net.liftweb.mapper.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
  170. def flatMapFieldTitleForm2 [T] (func: (NodeSeq, net.liftweb.mapper.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
  171. def formFields (toMap: ModelType) : List[net.liftweb.mapper.MappedField[_, ModelType]]

    Get the fields (in order) for displaying a form

    Get the fields (in order) for displaying a form

    definition classes: MetaMapper
  172. def formFields : List[net.liftweb.mapper.MappedField[_, ModelType]]

    Get the fields (in order) for displaying a form

    Get the fields (in order) for displaying a form

    definition classes: Mapper
  173. var 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 ( &lt;tr&gt; ) is presented, but you can change the function to display something else.

    definition classes: MetaMapper
  174. def formatFormLine (displayName: NodeSeq, form: NodeSeq) : NodeSeq

    definition classes: MetaMapper
  175. def generateResetEmailBodies (user: 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
  176. def generateValidationEmailBodies (user: 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
  177. 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
  178. 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
  179. def getClass () : java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  180. def getSingleton : KeyedMetaMapper[Long, ModelType]

    attributes: abstract
    definition classes: KeyedMapperMapper
  181. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: KeyedMapper → AnyRef → Any
  182. def homePage : String

    definition classes: ProtoUser
  183. def htmlHeaders : NodeSeq

    definition classes: MetaMapper
  184. def htmlLine : NodeSeq

    definition classes: Mapper
  185. def indexedField (toSave: ModelType) : Box[MappedField[Any, ModelType]]

    definition classes: MetaMapper
  186. def isInstanceOf [T0] : Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  187. def localForm (user: TheUserType, ignorePassword: Boolean, fields: List[FieldPointerType]) : NodeSeq

    attributes: protected
    definition classes: ProtoUser
  188. 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
  189. def logUserIdIn (id: String) : Unit

    definition classes: ProtoUser
  190. def logUserIn (who: TheUserType) : Unit

    definition classes: ProtoUser
  191. def logUserIn (who: TheUserType, postLogin: () ⇒ Nothing) : Nothing

    definition classes: ProtoUser
  192. def logUserOut () : Unit

    definition classes: ProtoUser
  193. def loggedIn_? : Boolean

    definition classes: ProtoUser
  194. def login : NodeSeq

    definition classes: ProtoUser
  195. def loginFirst : If

    definition classes: ProtoUser
  196. 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
  197. 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
  198. def loginPageURL : String

    Return the URL of the "login" page

    Return the URL of the "login" page

    definition classes: ProtoUser
  199. lazy val loginPath : List[String]

    definition classes: ProtoUser
  200. object loginRedirect extends SessionVar[Box[String]]

  201. def loginSuffix : String

    definition classes: ProtoUser
  202. def loginXhtml : Elem

    definition classes: ProtoUser
  203. def logout : Nothing

    definition classes: ProtoUser
  204. def logoutCurrentUser : Unit

    definition classes: ProtoUser
  205. 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
  206. 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
  207. lazy val logoutPath : List[String]

    definition classes: ProtoUser
  208. def logoutSuffix : String

    definition classes: ProtoUser
  209. def lostPassword : NodeSeq

    definition classes: ProtoUser
  210. 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
  211. 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
  212. lazy val lostPasswordPath : List[String]

    definition classes: ProtoUser
  213. def lostPasswordSuffix : String

    definition classes: ProtoUser
  214. def lostPasswordXhtml : Elem

    definition classes: ProtoUser
  215. 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
  216. 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
  217. lazy val mappedFields : Seq[BaseMappedField]

    definition classes: MetaMapperBaseMetaMapper
  218. lazy val mappedFieldsForModel : List[net.liftweb.mapper.MappedField[_, ModelType]]

    definition classes: MetaMapper
  219. def menus : List[Menu]

    An alias for the sitemap property

    An alias for the sitemap property

    definition classes: ProtoUser
  220. def modSnippet (xhtml: NodeSeq, obj: ModelType, cleanup: (ModelType) ⇒ Unit) : NodeSeq

    Default snippet for modification.

    Default snippet for modification. Used by the default add and edit snippets.

    definition classes: KeyedMetaMapper
  221. def mutateUserOnEdit (user: TheUserType) : TheUserType

    If there's any mutation to do to the user on retrieval for editting, override this method and mutate the user.

    If there's any mutation to do to the user on retrieval for editting, 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
  222. def mutateUserOnSignup (user: TheUserType) : 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
  223. def ne (arg0: AnyRef) : Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  224. def niceName (inst: TheUserType) : String

    Get a nice name for the user

    Get a nice name for the user

    definition classes: ProtoUser
  225. def niceNameWEmailLink (inst: TheUserType) : Elem

    Get an email link for the user

    Get an email link for the user

    definition classes: ProtoUser
  226. def notLoggedIn_? : Boolean

    definition classes: ProtoUser
  227. def notify () : Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  228. def notifyAll () : Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  229. 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
  230. var onLogIn : List[(TheUserType) ⇒ Unit]

    definition classes: ProtoUser
  231. var onLogOut : List[(Box[TheUserType]) ⇒ Unit]

    definition classes: ProtoUser
  232. def passwordReset (id: String) : NodeSeq

    definition classes: ProtoUser
  233. def passwordResetEmailSubject : String

    definition classes: ProtoUser
  234. def passwordResetMailBody (user: TheUserType, resetLink: String) : Elem

    definition classes: ProtoUser
  235. lazy val passwordResetPath : List[String]

    definition classes: ProtoUser
  236. def passwordResetSuffix : String

    definition classes: ProtoUser
  237. def passwordResetXhtml : Elem

    definition classes: ProtoUser
  238. def prependField (pf: FieldPF) : Unit

    definition classes: Mapper
  239. def primaryKeyField : MappedField[Long, ModelType] with IndexedField[Long]

    attributes: abstract
    definition classes: KeyedMapperBaseKeyedMapper
  240. def reload : ModelType

    definition classes: KeyedMapper
  241. 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
  242. 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
  243. val rootClass : java.lang.Class[_ >: ?0]

    attributes: protected
    definition classes: MetaMapper
  244. def runSafe [T] (f: ⇒ T) : T

    definition classes: Mapper
  245. 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
  246. def safe_? : Boolean

    attributes: final
    definition classes: Mapper
  247. def save (toSave: ModelType) : Boolean

    definition classes: MetaMapper
  248. def save () : Boolean

    definition classes: MapperBaseMapper
  249. def saveMe () : ModelType

    Save the instance and return the instance

    Save the instance and return the instance

    definition classes: Mapper
  250. def saved_? (toSave: ModelType) : Boolean

    definition classes: MetaMapper
  251. def saved_? : Boolean

    definition classes: Mapper
  252. 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
  253. 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
  254. def sendValidationEmail (user: 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
  255. def shortName (inst: TheUserType) : String

    Get a nice name for the user

    Get a nice name for the user

    definition classes: ProtoUser
  256. lazy val signUpPath : List[String]

    definition classes: ProtoUser
  257. def signUpSuffix : String

    definition classes: ProtoUser
  258. def signup : NodeSeq

    definition classes: ProtoUser
  259. def signupFields : List[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: MetaMegaProtoUserProtoUser
  260. object signupFunc extends RequestVar[Box[() ⇒ NodeSeq]]

    attributes: protected
  261. def signupMailBody (user: TheUserType, validationLink: String) : Elem

    definition classes: ProtoUser
  262. def signupMailSubject : String

    definition classes: ProtoUser
  263. def signupXhtml (user: TheUserType) : Elem

    definition classes: ProtoUser
  264. lazy val sitemap : List[Menu]

    definition classes: ProtoUser
  265. def sitemapMutator : (SiteMap) ⇒ SiteMap

    The SiteMap mutator function

    The SiteMap mutator function

    definition classes: ProtoUser
  266. def skipEmailValidation : Boolean

    definition classes: ProtoUser
  267. def snarfLastItem : String

    attributes: protected
    definition classes: ProtoUser
  268. 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
  269. 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
  270. def synchronized [T0] (arg0: T0) : T0

    attributes: final
    definition classes: AnyRef
  271. def testLoggedIn (page: String) : Boolean

    definition classes: ProtoUser
  272. lazy val testLogginIn : If

    definition classes: ProtoUser
  273. lazy val testSuperUser : If

    definition classes: ProtoUser
  274. def thePath (end: String) : List[String]

    definition classes: ProtoUser
  275. implicit def thisToMappee (in: Mapper[ModelType]) : ModelType

    attributes: implicit
    definition classes: Mapper
  276. def timeZoneField : Box[MappedTimeZone[ModelType]]

    definition classes: Mapper
  277. def toForm (toMap: ModelType) : NodeSeq

    definition classes: MetaMapper
  278. def toForm (button: Box[String], redoSnippet: (NodeSeq) ⇒ NodeSeq, onSuccess: (ModelType) ⇒ Unit) : NodeSeq

    definition classes: Mapper
  279. 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
  280. 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
  281. 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
  282. 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
  283. def toString () : String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: Mapper → AnyRef → Any
  284. def toXml (what: ModelType) : Elem

    definition classes: MetaMapper
  285. def toXml : Elem

    definition classes: Mapper
  286. implicit def typeToBridge (in: TheUserType) : UserBridge

    Convert an instance of TheUserType to the Bridge trait

    Convert an instance of TheUserType to the Bridge trait

    attributes: protected implicit
    definition classes: MetaMegaProtoUserProtoUser
  287. def unapply (key: Any) : Option[ModelType]

    definition classes: KeyedMetaMapper
  288. 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
  289. def userFromStringId (id: String) : Box[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: MetaMegaProtoUserProtoUser
  290. def userMenu : List[Node]

    definition classes: ProtoUser
  291. 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
  292. 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
  293. def validate (toValidate: ModelType) : List[FieldError]

    attributes: final
    definition classes: MetaMapper
  294. def validate : List[FieldError]

    definition classes: Mapper
  295. def validateSignup (user: 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
  296. def validateUser (id: String) : NodeSeq

    definition classes: ProtoUser
  297. 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
  298. 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
  299. lazy val validateUserPath : List[String]

    definition classes: ProtoUser
  300. def validateUserSuffix : String

    definition classes: ProtoUser
  301. 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
  302. def viewSnippet (xhtml: NodeSeq) : NodeSeq

    Default view snippet.

    Default view snippet. Override to change behavior of the view snippet.

    definition classes: KeyedMetaMapper
  303. 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
  304. def wait () : Unit

    attributes: final
    definition classes: AnyRef
  305. def wait (arg0: Long, arg1: Int) : Unit

    attributes: final
    definition classes: AnyRef
  306. def wait (arg0: Long) : Unit

    attributes: final
    definition classes: AnyRef
  307. def whatToSet (toSave: ModelType) : String

    definition classes: MetaMapper
  308. def wrapIt (in: NodeSeq) : NodeSeq

    attributes: protected
    definition classes: ProtoUser

Inherited from ProtoUser

Inherited from KeyedMetaMapper[Long, ModelType]

Inherited from KeyedMapper[Long, ModelType]

Inherited from BaseKeyedMapper

Inherited from MetaMapper[ModelType]

Inherited from Mapper[ModelType]

Inherited from BaseMapper

Inherited from FieldContainer

Inherited from BaseMetaMapper

Inherited from AnyRef

Inherited from Any