net.liftweb.record

MetaMegaProtoUser

trait MetaMegaProtoUser [ModelType <: MegaProtoUser[ModelType]] extends MetaRecord[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.

Self Type
MetaMegaProtoUser[ModelType] with ModelType
Linear Supertypes
ProtoUser, MetaRecord[ModelType], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. MetaMegaProtoUser
  2. ProtoUser
  3. MetaRecord
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Type Members

  1. case class FieldHolder (name: String, method: Method, metaField: net.liftweb.record.Field[_, BaseRecord]) extends Product with Serializable

  2. trait FieldPointerBridge extends AnyRef

    Attributes
    protected
  3. type FieldPointerType = net.liftweb.record.Field[_, MetaMegaProtoUser.this.TheUserType]

    What's a field pointer for the underlying CRUDify

    What's a field pointer for the underlying CRUDify

    Definition Classes
    MetaMegaProtoUserProtoUser
  4. case class MenuItem (name: String, path: List[String], loggedIn: Boolean) extends Product with Serializable

    A helper class that holds menu items for the path

  5. class MyPointer extends FieldPointerBridge

    Attributes
    protected
  6. class MyUserBridge extends UserBridge

    Bridges from TheUserType to methods used in this class

  7. type TheUserType = ModelType

    The underlying record for the User

    The underlying record for the User

    Definition Classes
    MetaMegaProtoUserProtoUser
  8. trait UserBridge extends AnyRef

    Bridges from TheUserType to methods used in this class

Abstract Value Members

  1. def findUserByUniqueId (id: String): Box[TheUserType]

    Given a unique id, find the user

    Given a unique id, find the user

    Attributes
    protected abstract
    Definition Classes
    MetaMegaProtoUserProtoUser
  2. 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 abstract
    Definition Classes
    MetaMegaProtoUserProtoUser
  3. 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 abstract
    Definition Classes
    MetaMegaProtoUserProtoUser

Concrete Value Members

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

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. 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

  7. object AddUserMenusHere extends LocParam[Any] with Product with Serializable

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

  8. 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

  9. lazy val ItemList : List[MenuItem]

    Definition Classes
    ProtoUser
  10. 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
  11. def appendDispatch (func: PartialFunction[Req, (ModelType) ⇒ Box[LiftResponse]]): RulesSeq[PartialFunction[Req, () ⇒ Box[LiftResponse]]]

    Append a DispatchPF function to LiftRules.

    Append a DispatchPF function to LiftRules.dispatch. If the partial function id defined for a give Req it will construct a new Record based on the HTTP query string parameters and will pass this Record to the function returned by func parameter.

    func

    - a PartialFunction for associating a request with a user provided function and the proper Record

    Definition Classes
    MetaRecord
  12. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  13. def asJSON (inst: ModelType): JsObj

    Returns the JSON representation of inst record

    Returns the JSON representation of inst record

    returns

    JsObj

    Definition Classes
    MetaRecord
  14. def asJValue (rec: ModelType): JObject

    Encode a record instance into a JValue

    Encode a record instance into a JValue

    Definition Classes
    MetaRecord
  15. def asJsExp (inst: ModelType): JsExp

    Retuns the JSON representation of inst record, converts asJValue to JsObj

    Retuns the JSON representation of inst record, converts asJValue to JsObj

    returns

    a JsObj

    Definition Classes
    MetaRecord
  16. 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
  17. 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
  18. def bccEmail : Box[String]

    Definition Classes
    ProtoUser
  19. 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
  20. 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
  21. def changePassword : NodeSeq

    Definition Classes
    ProtoUser
  22. 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
  23. 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
  24. lazy val changePasswordPath : List[String]

    The computed path for change password screen

    The computed path for change password screen

    Definition Classes
    ProtoUser
  25. def changePasswordSuffix : String

    The path suffix for the change password screen

    The path suffix for the change password screen

    Definition Classes
    ProtoUser
  26. def changePasswordXhtml : Elem

    Definition Classes
    ProtoUser
  27. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. 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
  29. def createNewUserInstance (): TheUserType

    Create a new instance of the User

    Create a new instance of the User

    Attributes
    protected
    Definition Classes
    MetaMegaProtoUserProtoUser
  30. def createRecord : ModelType

    Creates a new record

    Creates a new record

    Definition Classes
    MetaRecord
  31. 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
  32. 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
  33. def createWithMutableField [FieldType] (original: ModelType, field: Field[FieldType, ModelType], newValue: Box[FieldType]): ModelType

    Creates a new record setting the value of the fields from the original object but apply the new value for the specific field

    Creates a new record setting the value of the fields from the original object but apply the new value for the specific field

    Definition Classes
    MetaRecord
  34. def currentUser : Box[TheUserType]

    Definition Classes
    ProtoUser
  35. def currentUserId : Box[String]

    Definition Classes
    ProtoUser
  36. 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
  37. def edit : NodeSeq

    Definition Classes
    ProtoUser
  38. 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
  39. object editFunc extends RequestVar[Box[() ⇒ NodeSeq]]

  40. lazy val editPath : List[String]

    The computed path for the edit screen

    The computed path for the edit screen

    Definition Classes
    ProtoUser
  41. def editSuffix : String

    The path suffix for the edit screen

    The path suffix for the edit screen

    Definition Classes
    ProtoUser
  42. 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
  43. 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
  44. def editXhtml (user: TheUserType): Elem

    Definition Classes
    ProtoUser
  45. def emailFrom : String

    Definition Classes
    ProtoUser
  46. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  47. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  48. def fieldByName (fieldName: String, inst: ModelType): Box[net.liftweb.record.Field[_, ModelType]]

    Get a field by the field name

    Get a field by the field name

    fieldName

    -- the name of the field to get

    returns

    Box[The Field] (Empty if the field is not found)

    Definition Classes
    MetaRecord
  49. def fieldOrder : List[net.liftweb.record.Field[_, ModelType]]

    Defined the order of the fields in this record

    Defined the order of the fields in this record

    returns

    a List of Field

    Definition Classes
    MetaRecord
  50. def fields (rec: ModelType): List[net.liftweb.record.Field[_, ModelType]]

    Obtain the fields for a particlar Record or subclass instance by passing the instance itself.

    Obtain the fields for a particlar Record or subclass instance by passing the instance itself. (added 14th August 2009, Tim Perrett)

    Definition Classes
    MetaRecord
  51. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  52. def foreachCallback (inst: ModelType, f: (LifecycleCallbacks) ⇒ Any): Unit

    Definition Classes
    MetaRecord
  53. var formTemplate : Box[NodeSeq]

    Set this to use your own form template when rendering a Record to a form.

    Set this to use your own form template when rendering a Record to a form.

    This template is any given XHtml that contains three nodes acting as placeholders such as:

    
    <lift:field_label name="firstName"/> - the label for firstName field will be rendered here
    <lift:field name="firstName"/> - the firstName field will be rendered here (typically an input field)
    <lift:field_msg name="firstName"/> - the  will be rendered here hafing the id given by
                                                uniqueFieldId of the firstName field.
    
    
    Example.
    
    Having:
    
    class MyRecord extends Record[MyRecord] {
    
    	def meta = MyRecordMeta
    
    	object firstName extends StringField(this, "John")
    
    }
    
    object MyRecordMeta extends MyRecord with MetaRecord[MyRecord] {
     override def mutable_? = false
    }
    
    ...
    
    val rec = MyRecordMeta.createRecord.firstName("McLoud")
    
    val template =
    <div>
    	<div>
    		<div><lift:field_label name="firstName"/></div>
    		<div><lift:field name="firstName"/></div>
    		<div><lift:field_msg name="firstName"/></div>
    	</div>
    </div>
    
    MyRecordMeta.formTemplate = Full(template)
    rec.toForm((r:MyRecord) => println(r));
    
    

    Definition Classes
    MetaRecord
  54. def fromJSON (json: String): Box[ModelType]

    Create a record with fields populated with values from the JSON construct

    Create a record with fields populated with values from the JSON construct

    json

    - The stringified JSON object

    returns

    Box[BaseRecord]

    Definition Classes
    MetaRecord
  55. def fromJValue (jvalue: JValue): Box[ModelType]

    Create a record by decoding a JValue which must be a JObject

    Create a record by decoding a JValue which must be a JObject

    Definition Classes
    MetaRecord
  56. def fromJsonString (json: String): Box[ModelType]

    Create a record with fields populated with values from the JSON construct

    Create a record with fields populated with values from the JSON construct

    json

    - The stringified JSON object

    returns

    Box[BaseRecord]

    Definition Classes
    MetaRecord
  57. def fromReq (r: Req): ModelType

    Create a record with fields populated with values from the request

    Create a record with fields populated with values from the request

    returns

    the created record

    Definition Classes
    MetaRecord
  58. 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
  59. 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
  60. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  61. def globalUserLocParams : List[LocParam[Unit]]

    If you want to include a LocParam (e.

    If you want to include a LocParam (e.g. LocGroup) on all the User menus, add them here

    Attributes
    protected
    Definition Classes
    ProtoUser
  62. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  63. def homePage : String

    The application's home page

    The application's home page

    Definition Classes
    ProtoUser
  64. def instantiateRecord : ModelType

    Make a new record instance.

    Make a new record instance. This method can be overridden to provide caching behavior or what have you.

    Attributes
    protected
    Definition Classes
    MetaRecord
  65. def introspect (rec: ModelType, methods: Array[Method])(f: (Method, net.liftweb.record.Field[_, ModelType]) ⇒ Any): Unit

    Definition Classes
    MetaRecord
  66. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  67. def localForm (user: TheUserType, ignorePassword: Boolean, fields: List[FieldPointerType]): NodeSeq

    Attributes
    protected
    Definition Classes
    ProtoUser
  68. def logUserIdIn (id: String): Unit

    Definition Classes
    ProtoUser
  69. def logUserIn (who: TheUserType): Unit

    Definition Classes
    ProtoUser
  70. def logUserIn (who: TheUserType, postLogin: () ⇒ Nothing): Nothing

    Definition Classes
    ProtoUser
  71. def logUserOut (): Unit

    Definition Classes
    ProtoUser
  72. def loggedIn_? : Boolean

    Definition Classes
    ProtoUser
  73. def login : NodeSeq

    Definition Classes
    ProtoUser
  74. def loginFirst : If

    A Menu.

    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
  75. 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
  76. 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
  77. def loginPageURL : String

    Return the URL of the "login" page

    Return the URL of the "login" page

    Definition Classes
    ProtoUser
  78. lazy val loginPath : List[String]

    The computed path for the login screen

    The computed path for the login screen

    Definition Classes
    ProtoUser
  79. object loginRedirect extends SessionVar[Box[String]]

    If you want to redirect a user to a different page after login, put the page here

  80. def loginSuffix : String

    The path suffix for the login screen

    The path suffix for the login screen

    Definition Classes
    ProtoUser
  81. def loginXhtml : Elem

    Definition Classes
    ProtoUser
  82. def logout : Nothing

    Definition Classes
    ProtoUser
  83. def logoutCurrentUser : Unit

    Definition Classes
    ProtoUser
  84. 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
  85. 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
  86. lazy val logoutPath : List[String]

    The computed pat for logout

    The computed pat for logout

    Definition Classes
    ProtoUser
  87. def logoutSuffix : String

    The path suffix for the logout screen

    The path suffix for the logout screen

    Definition Classes
    ProtoUser
  88. def lostPassword : NodeSeq

    Definition Classes
    ProtoUser
  89. 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
  90. 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
  91. lazy val lostPasswordPath : List[String]

    The computed path for the lost password screen

    The computed path for the lost password screen

    Definition Classes
    ProtoUser
  92. def lostPasswordSuffix : String

    The path suffix for the lost password screen

    The path suffix for the lost password screen

    Definition Classes
    ProtoUser
  93. def lostPasswordXhtml : Elem

    Definition Classes
    ProtoUser
  94. 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
  95. def menus : List[Menu]

    An alias for the sitemap property

    An alias for the sitemap property

    Definition Classes
    ProtoUser
  96. def metaFields (): List[net.liftweb.record.Field[_, ModelType]]

    Renamed from fields() due to a clash with fields() in Record.

    Renamed from fields() due to a clash with fields() in Record. Use this method to obtain a list of fields defined in the meta companion objects. Possibly a breaking change? (added 14th August 2009, Tim Perrett)

    Definition Classes
    MetaRecord
    See also

    Record

  97. def mutable_? : Boolean

    Specifies if this Record is mutable or not

    Specifies if this Record is mutable or not

    Definition Classes
    MetaRecord
  98. 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
  99. 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
  100. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  101. def niceName (inst: TheUserType): String

    Get a nice name for the user

    Get a nice name for the user

    Definition Classes
    ProtoUser
  102. def niceNameWEmailLink (inst: TheUserType): Elem

    Get an email link for the user

    Get an email link for the user

    Definition Classes
    ProtoUser
  103. def notLoggedIn_? : Boolean

    Inverted loggedIn_?

    Inverted loggedIn_?

    Definition Classes
    ProtoUser
  104. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  105. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  106. var onLogIn : List[(TheUserType) ⇒ Unit]

    Definition Classes
    ProtoUser
  107. var onLogOut : List[(Box[TheUserType]) ⇒ Unit]

    Definition Classes
    ProtoUser
  108. def passwordReset (id: String): NodeSeq

    Definition Classes
    ProtoUser
  109. def passwordResetEmailSubject : String

    Definition Classes
    ProtoUser
  110. def passwordResetMailBody (user: TheUserType, resetLink: String): Elem

    Definition Classes
    ProtoUser
  111. lazy val passwordResetPath : List[String]

    The computed path for the reset password screen

    The computed path for the reset password screen

    Definition Classes
    ProtoUser
  112. def passwordResetSuffix : String

    The path suffix for the reset password screen

    The path suffix for the reset password screen

    Definition Classes
    ProtoUser
  113. def passwordResetXhtml : Elem

    Definition Classes
    ProtoUser
  114. def prependDispatch (func: PartialFunction[Req, (ModelType) ⇒ Box[LiftResponse]]): RulesSeq[PartialFunction[Req, () ⇒ Box[LiftResponse]]]

    Prepend a DispatchPF function to LiftRules.

    Prepend a DispatchPF function to LiftRules.dispatch. If the partial function id defined for a give Req it will construct a new Record based on the HTTP query string parameters and will pass this Record to the function returned by func parameter.

    func

    - a PartialFunction for associating a request with a user provided function and the proper Record

    Definition Classes
    MetaRecord
  115. 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
  116. 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
  117. val rootClass : java.lang.Class[_ >: ?0]

    Attributes
    protected
    Definition Classes
    MetaRecord
  118. 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
  119. 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
  120. 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
  121. def setFieldsFromJSON (inst: ModelType, json: String): Box[Unit]

    Populate the fields of the record instance with values from the JSON construct

    Populate the fields of the record instance with values from the JSON construct

    inst

    - The record to populate

    json

    - The stringified JSON object

    returns

    - Full(()) on success, other on failure

    Definition Classes
    MetaRecord
  122. def setFieldsFromJValue (rec: ModelType, jvalue: JValue): Box[Unit]

    Attempt to decode a JValue, which must be a JObject, into a record instance

    Attempt to decode a JValue, which must be a JObject, into a record instance

    Definition Classes
    MetaRecord
  123. def setFieldsFromJsonString (inst: ModelType, json: String): Box[Unit]

    Set from a Json String using the lift-json parser

    Set from a Json String using the lift-json parser

    Definition Classes
    MetaRecord
  124. def setFieldsFromReq (inst: ModelType, req: Req): Unit

    Populate the fields of the record with values from the request

    Populate the fields of the record with values from the request

    inst

    - The record to populate

    req

    - The Req to read from

    Definition Classes
    MetaRecord
  125. def shortName (inst: TheUserType): String

    Get a nice name for the user

    Get a nice name for the user

    Definition Classes
    ProtoUser
  126. lazy val signUpPath : List[String]

    The computed path for the sign up screen

    The computed path for the sign up screen

    Definition Classes
    ProtoUser
  127. def signUpSuffix : String

    The path suffix for the sign up screen

    The path suffix for the sign up screen

    Definition Classes
    ProtoUser
  128. def signup : NodeSeq

    Definition Classes
    ProtoUser
  129. 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
  130. object signupFunc extends RequestVar[Box[() ⇒ NodeSeq]]

    Attributes
    protected
  131. def signupMailBody (user: TheUserType, validationLink: String): Elem

    Definition Classes
    ProtoUser
  132. def signupMailSubject : String

    Definition Classes
    ProtoUser
  133. def signupXhtml (user: TheUserType): Elem

    Definition Classes
    ProtoUser
  134. lazy val sitemap : List[Menu]

    Definition Classes
    ProtoUser
  135. def sitemapMutator : (SiteMap) ⇒ SiteMap

    The SiteMap mutator function

    The SiteMap mutator function

    Definition Classes
    ProtoUser
  136. def skipEmailValidation : Boolean

    Definition Classes
    ProtoUser
  137. def snarfLastItem : String

    Attributes
    protected
    Definition Classes
    ProtoUser
  138. 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
  139. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  140. def testLoggedIn (page: String): Boolean

    Definition Classes
    ProtoUser
  141. lazy val testLogginIn : If

    A Menu.

    A Menu.LocParam to test if the user is logged in

    Definition Classes
    ProtoUser
  142. lazy val testSuperUser : If

    A Menu.

    A Menu.LocParam to test if the user is a super user

    Definition Classes
    ProtoUser
  143. 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
  144. def toForm (inst: ModelType, template: NodeSeq): NodeSeq

    Returns the XHTML representation of inst Record.

    Returns the XHTML representation of inst Record. You must provide the Node template to represent this record in the proprietary layout.

    inst

    - the record to be rendered

    template

    - The markup template forthe form. See also the formTemplate variable

    returns

    the XHTML content as a NodeSeq

    Definition Classes
    MetaRecord
  145. def toForm (inst: ModelType): NodeSeq

    Returns the XHTML representation of inst Record.

    Returns the XHTML representation of inst Record. If formTemplate is set, this template will be used otherwise a default template is considered.

    inst

    - the record to be rendered

    returns

    the XHTML content as a NodeSeq

    Definition Classes
    MetaRecord
  146. def toString (): String

    Definition Classes
    AnyRef → Any
  147. def toXHtml (inst: ModelType): NodeSeq

    Returns the HTML representation of inst Record.

    Returns the HTML representation of inst Record.

    inst

    - th designated Record

    returns

    a NodeSeq

    Definition Classes
    MetaRecord
  148. 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
  149. def userMenu : List[Node]

    Definition Classes
    ProtoUser
  150. 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
  151. 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
  152. def validate (inst: ModelType): List[FieldError]

    Validates the inst Record by calling validators for each field

    Validates the inst Record by calling validators for each field

    returns

    a List of FieldError. If this list is empty you can assume that record was validated successfully

    Definition Classes
    MetaRecord
  153. 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
  154. def validateUser (id: String): NodeSeq

    Definition Classes
    ProtoUser
  155. 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
  156. 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
  157. lazy val validateUserPath : List[String]

    The calculated path to the user validation screen

    The calculated path to the user validation screen

    Definition Classes
    ProtoUser
  158. def validateUserSuffix : String

    The path suffix for the validate user screen

    The path suffix for the validate user screen

    Definition Classes
    ProtoUser
  159. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  162. def wrapIt (in: NodeSeq): NodeSeq

    Attributes
    protected
    Definition Classes
    ProtoUser

Inherited from ProtoUser

Inherited from MetaRecord[ModelType]

Inherited from AnyRef

Inherited from Any