net.liftweb.record

MetaMegaProtoUser

trait MetaMegaProtoUser[ModelType <: MegaProtoUser[ModelType]] extends MetaRecord[ModelType] with ProtoUser

Mix this trait into 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. abstract 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
  2. abstract 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
  3. abstract 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

Concrete Value Members

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

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

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

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

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

    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 is 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. final def asInstanceOf[T0]: T0

    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

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

    Returns 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
    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 changePasswordSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq

    Definition Classes
    ProtoUser
  26. def changePasswordSuffix: String

    The path suffix for the change password screen

    The path suffix for the change password screen

    Definition Classes
    ProtoUser
  27. def changePasswordXhtml: Elem

    Definition Classes
    ProtoUser
  28. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. 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
  30. def copy(rec: ModelType): ModelType

    Definition Classes
    MetaRecord
  31. def createNewUserInstance(): TheUserType

    Create a new instance of the User

    Create a new instance of the User

    Attributes
    protected
    Definition Classes
    MetaMegaProtoUserProtoUser
  32. def createRecord: ModelType

    Creates a new record

    Creates a new record

    Definition Classes
    MetaRecord
  33. 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
  34. 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
  35. 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 applying the new value for the specific field

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

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

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

    Definition Classes
    ProtoUser
  38. 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
  39. def doWithUser[T](u: Box[TheUserType])(f: ⇒ T): T

    There may be times when you want to be another user for some stack frames.

    There may be times when you want to be another user for some stack frames. Here's how to do it.

    Definition Classes
    ProtoUser
  40. def edit: NodeSeq

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

  43. lazy val editPath: List[String]

    The computed path for the edit screen

    The computed path for the edit screen

    Definition Classes
    ProtoUser
  44. def editSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq

    Definition Classes
    ProtoUser
  45. def editSuffix: String

    The path suffix for the edit screen

    The path suffix for the edit screen

    Definition Classes
    ProtoUser
  46. 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
  47. 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
  48. def editXhtml(user: TheUserType): Elem

    Definition Classes
    ProtoUser
  49. def emailFrom: String

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

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

    Definition Classes
    AnyRef → Any
  52. 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
  53. def fieldOrder: List[net.liftweb.record.Field[_, ModelType]]

    Defines the order of the fields in this record

    Defines the order of the fields in this record

    returns

    a List of Field

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

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

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

    Definition Classes
    MetaRecord
  55. def finalize(): Unit

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

    Definition Classes
    MetaRecord
  57. 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 having 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  65. 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
  66. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  67. def homePage: String

    The application's home page

    The application's home page

    Definition Classes
    ProtoUser
  68. 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
  69. def introspect(rec: ModelType, methods: Array[Method])(f: (Method, net.liftweb.record.Field[_, ModelType]) ⇒ Any): Unit

    Definition Classes
    MetaRecord
  70. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Definition Classes
    ProtoUser
  75. def logUserOut(): Unit

    Definition Classes
    ProtoUser
  76. def loggedIn_?: Boolean

    Definition Classes
    ProtoUser
  77. def login: NodeSeq

    Definition Classes
    ProtoUser
  78. 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
  79. 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
  80. 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
  81. def loginPageURL: String

    Return the URL of the "login" page

    Return the URL of the "login" page

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

    The computed path for the login screen

    The computed path for the login screen

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

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

  84. def loginSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq

    Definition Classes
    ProtoUser
  85. def loginSuffix: String

    The path suffix for the login screen

    The path suffix for the login screen

    Definition Classes
    ProtoUser
  86. def loginXhtml: Elem

    Definition Classes
    ProtoUser
  87. def logout: Nothing

    Definition Classes
    ProtoUser
  88. def logoutCurrentUser: Unit

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

    The computed pat for logout

    The computed pat for logout

    Definition Classes
    ProtoUser
  92. def logoutSuffix: String

    The path suffix for the logout screen

    The path suffix for the logout screen

    Definition Classes
    ProtoUser
  93. def lostPassword: NodeSeq

    Definition Classes
    ProtoUser
  94. 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
  95. 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
  96. lazy val lostPasswordPath: List[String]

    The computed path for the lost password screen

    The computed path for the lost password screen

    Definition Classes
    ProtoUser
  97. def lostPasswordSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq

    Definition Classes
    ProtoUser
  98. def lostPasswordSuffix: String

    The path suffix for the lost password screen

    The path suffix for the lost password screen

    Definition Classes
    ProtoUser
  99. def lostPasswordXhtml: Elem

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

    An alias for the sitemap property

    An alias for the sitemap property

    Definition Classes
    ProtoUser
  102. 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

  103. def mutable_?: Boolean

    Specifies if this Record is mutable or not

    Specifies if this Record is mutable or not

    Definition Classes
    MetaRecord
  104. def mutateUserOnEdit(user: TheUserType): TheUserType

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

    If there's any mutation to do to the user on retrieval for editing, override this method and mutate the user. This can be used to pull query parameters from the request and assign certain fields. Issue #722

    user

    the user to mutate

    returns

    the mutated user

    Attributes
    protected
    Definition Classes
    ProtoUser
  105. 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
  106. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  107. def niceName(inst: TheUserType): String

    Get a nice name for the user

    Get a nice name for the user

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

    Get an email link for the user

    Get an email link for the user

    Definition Classes
    ProtoUser
  109. def notLoggedIn_?: Boolean

    Inverted loggedIn_?

    Inverted loggedIn_?

    Definition Classes
    ProtoUser
  110. final def notify(): Unit

    Definition Classes
    AnyRef
  111. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  112. var onLogIn: List[(TheUserType) ⇒ Unit]

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

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

    Definition Classes
    ProtoUser
  115. def passwordResetEmailSubject: String

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

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

    The computed path for the reset password screen

    The computed path for the reset password screen

    Definition Classes
    ProtoUser
  118. def passwordResetSuffix: String

    The path suffix for the reset password screen

    The path suffix for the reset password screen

    Definition Classes
    ProtoUser
  119. def passwordResetXhtml: Elem

    Definition Classes
    ProtoUser
  120. 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 is 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
  121. 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
  122. 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
  123. def resetPasswordSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq

    Definition Classes
    ProtoUser
  124. val rootClass: java.lang.Class[_ >: ?0]

    Attributes
    protected
    Definition Classes
    MetaRecord
  125. 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
  126. 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
  127. 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
  128. 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
  129. 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
  130. 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
  131. def setFieldsFromRecord(inst: ModelType, rec: ModelType): Unit

    Populate the fields of the record with values from an existing record

    Populate the fields of the record with values from an existing record

    inst

    - The record to populate

    rec

    - The Record to read from

    Definition Classes
    MetaRecord
  132. 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
  133. def shortName(inst: TheUserType): String

    Get a nice name for the user

    Get a nice name for the user

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

    The computed path for the sign up screen

    The computed path for the sign up screen

    Definition Classes
    ProtoUser
  135. def signUpSuffix: String

    The path suffix for the sign up screen

    The path suffix for the sign up screen

    Definition Classes
    ProtoUser
  136. def signup: NodeSeq

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

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

    Definition Classes
    ProtoUser
  140. def signupMailSubject: String

    Definition Classes
    ProtoUser
  141. def signupSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq

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

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

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

    The SiteMap mutator function

    The SiteMap mutator function

    Definition Classes
    ProtoUser
  145. def skipEmailValidation: Boolean

    Definition Classes
    ProtoUser
  146. def snarfLastItem: String

    Attributes
    protected
    Definition Classes
    ProtoUser
  147. def standardSubmitButton(name: String, func: () ⇒ Any = () => {}): Elem

    Definition Classes
    ProtoUser
  148. 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
  149. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  150. def testLoggedIn(page: String): Boolean

    Definition Classes
    ProtoUser
  151. lazy val testLogginIn: If

    A Menu.

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

    Definition Classes
    ProtoUser
  152. lazy val testSuperUser: If

    A Menu.

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

    Definition Classes
    ProtoUser
  153. 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
  154. 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
  155. 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
  156. def toString(): String

    Definition Classes
    AnyRef → Any
  157. 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
  158. 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
    Definition Classes
    MetaMegaProtoUserProtoUser
  159. def userMenu: List[Node]

    Definition Classes
    ProtoUser
  160. 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
  161. 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
  162. 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

    inst

    - the Record to be validated

    returns

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

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

    Definition Classes
    ProtoUser
  165. 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
  166. 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
  167. lazy val validateUserPath: List[String]

    The calculated path to the user validation screen

    The calculated path to the user validation screen

    Definition Classes
    ProtoUser
  168. def validateUserSuffix: String

    The path suffix for the validate user screen

    The path suffix for the validate user screen

    Definition Classes
    ProtoUser
  169. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  172. def wrapIt(in: NodeSeq): NodeSeq

    Attributes
    protected
    Definition Classes
    ProtoUser

Inherited from ProtoUser

Inherited from MetaRecord[ModelType]

Inherited from AnyRef

Inherited from Any