t

net.liftweb.record

MetaMegaProtoUser

trait MetaMegaProtoUser[ModelType <: MegaProtoUser[ModelType]] extends MetaRecord[ModelType] with proto.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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MetaMegaProtoUser
  2. ProtoUser
  3. MetaRecord
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait FieldPointerBridge extends AnyRef
    Attributes
    protected
    Definition Classes
    ProtoUser
  2. case class MenuItem (name: String, path: List[String], loggedIn: Boolean) extends Product with Serializable

    A helper class that holds menu items for the path

    A helper class that holds menu items for the path

    Definition Classes
    ProtoUser
  3. trait UserBridge extends AnyRef

    Bridges from TheUserType to methods used in this class

    Bridges from TheUserType to methods used in this class

    Attributes
    protected
    Definition Classes
    ProtoUser
  4. type FieldPointerType = 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
  5. class MyPointer extends (MetaMegaProtoUser.this)#FieldPointerBridge
    Attributes
    protected
  6. class MyUserBridge extends (MetaMegaProtoUser.this)#UserBridge

    Bridges from TheUserType to methods used in this class

    Bridges from TheUserType to methods used in this class

    Attributes
    protected
  7. type TheUserType = ModelType

    The underlying record for the User

    The underlying record for the User

    Definition Classes
    MetaMegaProtoUserProtoUser
  8. case class FieldHolder (name: String, method: Method, metaField: Field[_, BaseRecord]) extends Product with Serializable
    Definition Classes
    MetaRecord

Abstract Value Members

  1. abstract def findUserByUniqueId(id: String): Box[(MetaMegaProtoUser.this)#TheUserType]

    Given a unique id, find the user

    Given a unique id, find the user

    Attributes
    protected
    Definition Classes
    MetaMegaProtoUserProtoUser
  2. abstract def findUserByUserName(email: String): Box[(MetaMegaProtoUser.this)#TheUserType]

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

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

    Attributes
    protected
    Definition Classes
    MetaMegaProtoUserProtoUser
  3. abstract def userFromStringId(id: String): Box[(MetaMegaProtoUser.this)#TheUserType]

    Given a String representing the User ID, find the user

    Given a String representing the User ID, find the user

    Attributes
    protected
    Definition Classes
    MetaMegaProtoUserProtoUser

Concrete Value Members

  1. object AddUserMenusAfter extends LocParam[Any] with Product with Serializable

    Insert this LocParam into your menu if you want the User's menu items to be inserted at the same level and after the item

    Insert this LocParam into your menu if you want the User's menu items to be inserted at the same level and after the item

    Definition Classes
    ProtoUser
  2. object AddUserMenusHere extends LocParam[Any] with Product with Serializable

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

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

    Definition Classes
    ProtoUser
  3. object AddUserMenusUnder extends LocParam[Any] with Product with Serializable

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

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

    Definition Classes
    ProtoUser
  4. object editFunc extends RequestVar[Box[() ⇒ NodeSeq]]
    Definition Classes
    ProtoUser
  5. object loginRedirect extends SessionVar[Box[String]]

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

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

    Definition Classes
    ProtoUser
  6. object signupFunc extends RequestVar[Box[() ⇒ NodeSeq]]
    Attributes
    protected
    Definition Classes
    ProtoUser
  7. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def ##(): Int
    Definition Classes
    AnyRef → Any
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. lazy val ItemList: List[(MetaMegaProtoUser.this)#MenuItem]
    Definition Classes
    ProtoUser
  11. def actionsAfterSignup(theUser: (MetaMegaProtoUser.this)#TheUserType, func: () ⇒ Nothing): Nothing

    Override this method to do something else after the user signs up

    Override this method to do something else after the user signs up

    Attributes
    protected
    Definition Classes
    ProtoUser
  12. def appendDispatch(func: PartialFunction[Req, (ModelType) ⇒ Box[LiftResponse]]): RulesSeq[PartialFunction[Req, () ⇒ Box[LiftResponse]]]

    Append a DispatchPF function to LiftRules.dispatch.

    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
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def asJObject(rec: ModelType): JObject

    Encode a record instance into a JObject

    Encode a record instance into a JObject

    Definition Classes
    MetaRecord
  15. def asJSON(inst: ModelType): JsObj

    Returns the JSON representation of inst record

    Returns the JSON representation of inst record

    returns

    JsObj

    Definition Classes
    MetaRecord
  16. def asJValue(rec: ModelType): JValue

    Encode a record instance into a JValue

    Encode a record instance into a JValue

    Definition Classes
    MetaRecord
  17. 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
  18. val autologinFunc: Box[() ⇒ Unit]

    This function is given a chance to log in a user programmatically when needed

    This function is given a chance to log in a user programmatically when needed

    Definition Classes
    ProtoUser
  19. 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
  20. def bccEmail: Box[String]
    Definition Classes
    ProtoUser
  21. implicit def buildFieldBridge(from: (MetaMegaProtoUser.this)#FieldPointerType): (MetaMegaProtoUser.this)#FieldPointerBridge

    Based on a FieldPointer, build a FieldPointerBridge

    Based on a FieldPointer, build a FieldPointerBridge

    Attributes
    protected
    Definition Classes
    MetaMegaProtoUserProtoUser
  22. 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
  23. def changePassword: NodeSeq
    Definition Classes
    ProtoUser
  24. 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
  25. 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
  26. lazy val changePasswordPath: List[String]

    The computed path for change password screen

    The computed path for change password screen

    Definition Classes
    ProtoUser
  27. def changePasswordSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq
    Definition Classes
    ProtoUser
  28. def changePasswordSuffix: String

    The path suffix for the change password screen

    The path suffix for the change password screen

    Definition Classes
    ProtoUser
  29. def changePasswordXhtml: Elem
    Definition Classes
    ProtoUser
  30. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def computeFieldFromPointer(instance: (MetaMegaProtoUser.this)#TheUserType, pointer: (MetaMegaProtoUser.this)#FieldPointerType): Box[BaseField]

    Given a field pointer and an instance, get the field on that instance

    Given a field pointer and an instance, get the field on that instance

    Attributes
    protected
    Definition Classes
    MetaMegaProtoUserProtoUser
  32. def connectionIdentifier: ConnectionIdentifier
    Definition Classes
    MetaRecord
  33. def copy(rec: ModelType): ModelType
    Definition Classes
    MetaRecord
  34. def createNewUserInstance(): (MetaMegaProtoUser.this)#TheUserType

    Create a new instance of the User

    Create a new instance of the User

    Attributes
    protected
    Definition Classes
    MetaMegaProtoUserProtoUser
  35. def createRecord: ModelType

    Creates a new record

    Creates a new record

    Definition Classes
    MetaRecord
  36. 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
  37. 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
  38. 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
  39. def currentUser: Box[(MetaMegaProtoUser.this)#TheUserType]
    Definition Classes
    ProtoUser
  40. def currentUserId: Box[String]
    Definition Classes
    ProtoUser
  41. 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
  42. def dirty_?(inst: ModelType): Boolean
    Definition Classes
    MetaRecord
  43. def doWithUser[T](u: Box[(MetaMegaProtoUser.this)#TheUserType])(f: ⇒ T): T

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

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

    Definition Classes
    ProtoUser
  44. def edit: NodeSeq
    Definition Classes
    ProtoUser
  45. def editFields: List[(MetaMegaProtoUser.this)#FieldPointerType]

    The list of fields presented to the user for editing

    The list of fields presented to the user for editing

    Definition Classes
    MetaMegaProtoUserProtoUser
  46. lazy val editPath: List[String]

    The computed path for the edit screen

    The computed path for the edit screen

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

    The path suffix for the edit screen

    The path suffix for the edit screen

    Definition Classes
    ProtoUser
  49. 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
  50. 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
  51. def editXhtml(user: (MetaMegaProtoUser.this)#TheUserType): Elem
    Definition Classes
    ProtoUser
  52. def emailFrom: String
    Definition Classes
    ProtoUser
  53. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  54. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  55. def fieldByName(fieldName: String, inst: ModelType): Box[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
  56. def fieldOrder: List[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
  57. def fields(rec: ModelType): List[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
  58. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  59. def foreachCallback(inst: ModelType, f: (LifecycleCallbacks) ⇒ Any): Unit
    Definition Classes
    MetaRecord
  60. val 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
  61. 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
  62. 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
  63. 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
  64. def generateResetEmailBodies(user: (MetaMegaProtoUser.this)#TheUserType, resetLink: String): List[MailBodyType]

    Generate the mail bodies to send with the password reset link.

    Generate the mail bodies to send with the password reset link. By default, just an HTML mail body is generated by calling passwordResetMailBody but you can send additional or alternative mail by overriding this method.

    Attributes
    protected
    Definition Classes
    ProtoUser
  65. def generateValidationEmailBodies(user: (MetaMegaProtoUser.this)#TheUserType, resetLink: String): List[MailBodyType]

    Generate the mail bodies to send with the valdiation link.

    Generate the mail bodies to send with the valdiation link. By default, just an HTML mail body is generated by calling signupMailBody but you can send additional or alternative mail by override this method.

    Attributes
    protected
    Definition Classes
    ProtoUser
  66. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  67. def globalUserLocParams: List[LocParam[Unit]]

    If you want to include a LocParam (e.g.

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

    Attributes
    protected
    Definition Classes
    ProtoUser
  68. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  69. def homePage: String

    The application's home page

    The application's home page

    Definition Classes
    ProtoUser
  70. 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
  71. def introspect(rec: ModelType, methods: Array[Method])(f: (Method, Field[_, ModelType]) ⇒ Any): Unit
    Definition Classes
    MetaRecord
  72. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  73. def localForm(user: (MetaMegaProtoUser.this)#TheUserType, ignorePassword: Boolean, fields: List[(MetaMegaProtoUser.this)#FieldPointerType]): NodeSeq
    Attributes
    protected
    Definition Classes
    ProtoUser
  74. def logUserIdIn(id: String): Unit
    Definition Classes
    ProtoUser
  75. def logUserIn(who: (MetaMegaProtoUser.this)#TheUserType): Unit
    Definition Classes
    ProtoUser
  76. def logUserIn(who: (MetaMegaProtoUser.this)#TheUserType, postLogin: () ⇒ Nothing): Nothing
    Definition Classes
    ProtoUser
  77. def logUserOut(): Unit
    Definition Classes
    ProtoUser
  78. def loggedIn_?: Boolean
    Definition Classes
    ProtoUser
  79. def login: NodeSeq
    Definition Classes
    ProtoUser
  80. def loginFirst: If

    A Menu.LocParam for testing if the user is logged in and if they're not, redirect them to the login page

    A Menu.LocParam for testing if the user is logged in and if they're not, redirect them to the login page

    Definition Classes
    ProtoUser
  81. 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
  82. 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
  83. def loginPageURL: String

    Return the URL of the "login" page

    Return the URL of the "login" page

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

    The computed path for the login screen

    The computed path for the login screen

    Definition Classes
    ProtoUser
  85. def loginSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq
    Definition Classes
    ProtoUser
  86. def loginSuffix: String

    The path suffix for the login screen

    The path suffix for the login screen

    Definition Classes
    ProtoUser
  87. def loginXhtml: Elem
    Definition Classes
    ProtoUser
  88. def logout: Nothing
    Definition Classes
    ProtoUser
  89. def logoutCurrentUser: Unit
    Definition Classes
    ProtoUser
  90. 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
  91. 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
  92. lazy val logoutPath: List[String]

    The computed pat for logout

    The computed pat for logout

    Definition Classes
    ProtoUser
  93. def logoutSuffix: String

    The path suffix for the logout screen

    The path suffix for the logout screen

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

    The computed path for the lost password screen

    The computed path for the lost password screen

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

    The path suffix for the lost password screen

    The path suffix for the lost password screen

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

    An alias for the sitemap property

    An alias for the sitemap property

    Definition Classes
    ProtoUser
  103. def metaFields(): List[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

  104. def mutable_?: Boolean

    Specifies if this Record is mutable or not

    Specifies if this Record is mutable or not

    Definition Classes
    MetaRecord
  105. def mutateUserOnEdit(user: (MetaMegaProtoUser.this)#TheUserType): (MetaMegaProtoUser.this)#TheUserType

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

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

    user

    the user to mutate

    returns

    the mutated user

    Attributes
    protected
    Definition Classes
    ProtoUser
  106. def mutateUserOnSignup(user: (MetaMegaProtoUser.this)#TheUserType): (MetaMegaProtoUser.this)#TheUserType

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

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

    user

    the user to mutate

    returns

    the mutated user

    Attributes
    protected
    Definition Classes
    ProtoUser
  107. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  108. def niceName(inst: (MetaMegaProtoUser.this)#TheUserType): String

    Get a nice name for the user

    Get a nice name for the user

    Definition Classes
    ProtoUser
  109. def niceNameWEmailLink(inst: (MetaMegaProtoUser.this)#TheUserType): Elem

    Get an email link for the user

    Get an email link for the user

    Definition Classes
    ProtoUser
  110. def notLoggedIn_?: Boolean

    Inverted loggedIn_?

    Inverted loggedIn_?

    Definition Classes
    ProtoUser
  111. final def notify(): Unit
    Definition Classes
    AnyRef
  112. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  113. val onLogIn: List[((MetaMegaProtoUser.this)#TheUserType) ⇒ Unit]
    Definition Classes
    ProtoUser
  114. val onLogOut: List[(Box[(MetaMegaProtoUser.this)#TheUserType]) ⇒ Unit]
    Definition Classes
    ProtoUser
  115. def passwordReset(id: String): NodeSeq
    Definition Classes
    ProtoUser
  116. def passwordResetEmailSubject: String
    Definition Classes
    ProtoUser
  117. def passwordResetMailBody(user: (MetaMegaProtoUser.this)#TheUserType, resetLink: String): Elem
    Definition Classes
    ProtoUser
  118. lazy val passwordResetPath: List[String]

    The computed path for the reset password screen

    The computed path for the reset password screen

    Definition Classes
    ProtoUser
  119. def passwordResetSuffix: String

    The path suffix for the reset password screen

    The path suffix for the reset password screen

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

    Prepend a DispatchPF function to LiftRules.dispatch.

    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
  122. 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
  123. 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
  124. def resetPasswordSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq
    Definition Classes
    ProtoUser
  125. val rootClass: Class[?0] forSome {type ?0 <: MetaRecord[ModelType] with ModelType, type ?0 >: ?0}
    Attributes
    protected
    Definition Classes
    MetaRecord
  126. 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
  127. 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
  128. def sendValidationEmail(user: (MetaMegaProtoUser.this)#TheUserType): Unit

    Send validation email to the user.

    Send validation email to the user. The XHTML version of the mail body is generated by calling signupMailBody. You can customize the mail sent to users by override generateValidationEmailBodies to send non-HTML mail or alternative mail bodies.

    Definition Classes
    ProtoUser
  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: (MetaMegaProtoUser.this)#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[(MetaMegaProtoUser.this)#FieldPointerType]

    The list of fields presented to the user at sign-up

    The list of fields presented to the user at sign-up

    Definition Classes
    MetaMegaProtoUserProtoUser
  138. def signupMailBody(user: (MetaMegaProtoUser.this)#TheUserType, validationLink: String): Elem
    Definition Classes
    ProtoUser
  139. def signupMailSubject: String
    Definition Classes
    ProtoUser
  140. def signupSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq
    Definition Classes
    ProtoUser
  141. def signupXhtml(user: (MetaMegaProtoUser.this)#TheUserType): Elem
    Definition Classes
    ProtoUser
  142. lazy val sitemap: List[Menu]
    Definition Classes
    ProtoUser
  143. def sitemapMutator: (SiteMap) ⇒ SiteMap

    The SiteMap mutator function

    The SiteMap mutator function

    Definition Classes
    ProtoUser
  144. def skipEmailValidation: Boolean
    Definition Classes
    ProtoUser
  145. def snarfLastItem: String
    Attributes
    protected
    Definition Classes
    ProtoUser
  146. def standardSubmitButton(name: String, func: () ⇒ Any = () => {}): Elem
    Definition Classes
    ProtoUser
  147. 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
  148. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  149. def testLoggedIn(page: String): Boolean
    Definition Classes
    ProtoUser
  150. lazy val testLogginIn: If

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

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

    Definition Classes
    ProtoUser
  151. lazy val testSuperUser: If

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

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

    Definition Classes
    ProtoUser
  152. 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
  153. 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
  154. 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
  155. def toString(): String
    Definition Classes
    AnyRef → Any
  156. 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
  157. implicit def typeToBridge(in: (MetaMegaProtoUser.this)#TheUserType): (MetaMegaProtoUser.this)#UserBridge

    Convert an instance of TheUserType to the Bridge trait

    Convert an instance of TheUserType to the Bridge trait

    Attributes
    protected
    Definition Classes
    MetaMegaProtoUserProtoUser
  158. def userMenu: List[Node]
    Definition Classes
    ProtoUser
  159. 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
  160. 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
  161. 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
  162. def validateSignup(user: (MetaMegaProtoUser.this)#TheUserType): List[FieldError]

    Override this method to validate the user signup (eg by adding captcha verification)

    Override this method to validate the user signup (eg by adding captcha verification)

    Definition Classes
    ProtoUser
  163. def validateUser(id: String): NodeSeq
    Definition Classes
    ProtoUser
  164. 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
  165. 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
  166. lazy val validateUserPath: List[String]

    The calculated path to the user validation screen

    The calculated path to the user validation screen

    Definition Classes
    ProtoUser
  167. def validateUserSuffix: String

    The path suffix for the validate user screen

    The path suffix for the validate user screen

    Definition Classes
    ProtoUser
  168. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  169. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  170. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  171. def wrapIt(in: NodeSeq): NodeSeq
    Attributes
    protected
    Definition Classes
    ProtoUser

Inherited from proto.ProtoUser

Inherited from MetaRecord[ModelType]

Inherited from AnyRef

Inherited from Any

Ungrouped