Trait

net.liftweb.record

MetaMegaProtoUser

Related Doc: package record

Permalink

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. case class FieldHolder(name: String, method: Method, metaField: Field[_, BaseRecord]) extends Product with Serializable

    Permalink
    Definition Classes
    MetaRecord
  2. trait FieldPointerBridge extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    ProtoUser
  3. type FieldPointerType = Field[_, (MetaMegaProtoUser.this)#TheUserType]

    Permalink

    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

    Permalink

    A helper class that holds menu items for the path

    A helper class that holds menu items for the path

    Definition Classes
    ProtoUser
  5. class MyPointer extends (MetaMegaProtoUser.this)#FieldPointerBridge

    Permalink
    Attributes
    protected
  6. class MyUserBridge extends (MetaMegaProtoUser.this)#UserBridge

    Permalink

    Bridges from TheUserType to methods used in this class

    Bridges from TheUserType to methods used in this class

    Attributes
    protected
  7. type TheUserType = ModelType

    Permalink

    The underlying record for the User

    The underlying record for the User

    Definition Classes
    MetaMegaProtoUserProtoUser
  8. trait UserBridge extends AnyRef

    Permalink

    Bridges from TheUserType to methods used in this class

    Bridges from TheUserType to methods used in this class

    Attributes
    protected
    Definition Classes
    ProtoUser

Abstract Value Members

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

    Permalink

    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]

    Permalink

    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]

    Permalink

    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: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. object AddUserMenusAfter extends LocParam[Any] with Product with Serializable

    Permalink

    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
  5. object AddUserMenusHere extends LocParam[Any] with Product with Serializable

    Permalink

    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
  6. object AddUserMenusUnder extends LocParam[Any] with Product with Serializable

    Permalink

    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
  7. lazy val ItemList: List[(MetaMegaProtoUser.this)#MenuItem]

    Permalink
    Definition Classes
    ProtoUser
  8. def actionsAfterSignup(theUser: (MetaMegaProtoUser.this)#TheUserType, func: () ⇒ Nothing): Nothing

    Permalink

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

    Permalink

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

    Permalink
    Definition Classes
    Any
  11. def asJObject(rec: ModelType): JObject

    Permalink

    Encode a record instance into a JObject

    Encode a record instance into a JObject

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

    Permalink

    Returns the JSON representation of inst record

    Returns the JSON representation of inst record

    returns

    JsObj

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

    Permalink

    Encode a record instance into a JValue

    Encode a record instance into a JValue

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

    Permalink

    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
  15. var autologinFunc: Box[() ⇒ Unit]

    Permalink

    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
  16. def basePath: List[String]

    Permalink

    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
  17. def bccEmail: Box[String]

    Permalink
    Definition Classes
    ProtoUser
  18. implicit def buildFieldBridge(from: (MetaMegaProtoUser.this)#FieldPointerType): (MetaMegaProtoUser.this)#FieldPointerBridge

    Permalink

    Based on a FieldPointer, build a FieldPointerBridge

    Based on a FieldPointer, build a FieldPointerBridge

    Attributes
    protected
    Definition Classes
    MetaMegaProtoUserProtoUser
  19. def capturePreLoginState(): () ⇒ Unit

    Permalink

    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
  20. def changePassword: NodeSeq

    Permalink
    Definition Classes
    ProtoUser
  21. def changePasswordMenuLoc: Box[Menu]

    Permalink

    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
  22. def changePasswordMenuLocParams: List[LocParam[Unit]]

    Permalink

    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
  23. lazy val changePasswordPath: List[String]

    Permalink

    The computed path for change password screen

    The computed path for change password screen

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

    Permalink
    Definition Classes
    ProtoUser
  25. def changePasswordSuffix: String

    Permalink

    The path suffix for the change password screen

    The path suffix for the change password screen

    Definition Classes
    ProtoUser
  26. def changePasswordXhtml: Elem

    Permalink
    Definition Classes
    ProtoUser
  27. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def computeFieldFromPointer(instance: (MetaMegaProtoUser.this)#TheUserType, pointer: (MetaMegaProtoUser.this)#FieldPointerType): Box[BaseField]

    Permalink

    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 connectionIdentifier: ConnectionIdentifier

    Permalink
    Definition Classes
    MetaRecord
  30. def copy(rec: ModelType): ModelType

    Permalink
    Definition Classes
    MetaRecord
  31. def createNewUserInstance(): (MetaMegaProtoUser.this)#TheUserType

    Permalink

    Create a new instance of the User

    Create a new instance of the User

    Attributes
    protected
    Definition Classes
    MetaMegaProtoUserProtoUser
  32. def createRecord: ModelType

    Permalink

    Creates a new record

    Creates a new record

    Definition Classes
    MetaRecord
  33. def createUserMenuLoc: Box[Menu]

    Permalink

    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]]

    Permalink

    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

    Permalink

    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[(MetaMegaProtoUser.this)#TheUserType]

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

    Permalink
    Definition Classes
    ProtoUser
  38. def destroySessionOnLogin: Boolean

    Permalink

    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 dirty_?(inst: ModelType): Boolean

    Permalink
    Definition Classes
    MetaRecord
  40. def doWithUser[T](u: Box[(MetaMegaProtoUser.this)#TheUserType])(f: ⇒ T): T

    Permalink

    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
  41. def edit: NodeSeq

    Permalink
    Definition Classes
    ProtoUser
  42. def editFields: List[(MetaMegaProtoUser.this)#FieldPointerType]

    Permalink

    The list of fields presented to the user for editing

    The list of fields presented to the user for editing

    Definition Classes
    MetaMegaProtoUserProtoUser
  43. object editFunc extends RequestVar[Box[() ⇒ NodeSeq]]

    Permalink
    Definition Classes
    ProtoUser
  44. lazy val editPath: List[String]

    Permalink

    The computed path for the edit screen

    The computed path for the edit screen

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

    Permalink
    Definition Classes
    ProtoUser
  46. def editSuffix: String

    Permalink

    The path suffix for the edit screen

    The path suffix for the edit screen

    Definition Classes
    ProtoUser
  47. def editUserMenuLoc: Box[Menu]

    Permalink

    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
  48. def editUserMenuLocParams: List[LocParam[Unit]]

    Permalink

    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
  49. def editXhtml(user: (MetaMegaProtoUser.this)#TheUserType): Elem

    Permalink
    Definition Classes
    ProtoUser
  50. def emailFrom: String

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  53. def fieldByName(fieldName: String, inst: ModelType): Box[Field[_, ModelType]]

    Permalink

    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
  54. def fieldOrder: List[Field[_, ModelType]]

    Permalink

    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
  55. def fields(rec: ModelType): List[Field[_, ModelType]]

    Permalink

    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
  56. def finalize(): Unit

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

    Permalink
    Definition Classes
    MetaRecord
  58. var formTemplate: Box[NodeSeq]

    Permalink

    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
  59. def fromJValue(jvalue: JValue): Box[ModelType]

    Permalink

    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]

    Permalink

    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

    Permalink

    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: (MetaMegaProtoUser.this)#TheUserType, resetLink: String): List[MailBodyType]

    Permalink

    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: (MetaMegaProtoUser.this)#TheUserType, resetLink: String): List[MailBodyType]

    Permalink

    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(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  65. def globalUserLocParams: List[LocParam[Unit]]

    Permalink

    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
  66. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  67. def homePage: String

    Permalink

    The application's home page

    The application's home page

    Definition Classes
    ProtoUser
  68. def instantiateRecord: ModelType

    Permalink

    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, Field[_, ModelType]) ⇒ Any): Unit

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

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

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

    Permalink
    Definition Classes
    ProtoUser
  73. def logUserIn(who: (MetaMegaProtoUser.this)#TheUserType): Unit

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

    Permalink
    Definition Classes
    ProtoUser
  75. def logUserOut(): Unit

    Permalink
    Definition Classes
    ProtoUser
  76. def loggedIn_?: Boolean

    Permalink
    Definition Classes
    ProtoUser
  77. def login: NodeSeq

    Permalink
    Definition Classes
    ProtoUser
  78. def loginFirst: If

    Permalink

    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
  79. def loginMenuLoc: Box[Menu]

    Permalink

    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]]

    Permalink

    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

    Permalink

    Return the URL of the "login" page

    Return the URL of the "login" page

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

    Permalink

    The computed path for the login screen

    The computed path for the login screen

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

    Permalink

    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
  84. def loginSubmitButton(name: String, func: () ⇒ Any = () => {}): NodeSeq

    Permalink
    Definition Classes
    ProtoUser
  85. def loginSuffix: String

    Permalink

    The path suffix for the login screen

    The path suffix for the login screen

    Definition Classes
    ProtoUser
  86. def loginXhtml: Elem

    Permalink
    Definition Classes
    ProtoUser
  87. def logout: Nothing

    Permalink
    Definition Classes
    ProtoUser
  88. def logoutCurrentUser: Unit

    Permalink
    Definition Classes
    ProtoUser
  89. def logoutMenuLoc: Box[Menu]

    Permalink

    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]]

    Permalink

    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]

    Permalink

    The computed pat for logout

    The computed pat for logout

    Definition Classes
    ProtoUser
  92. def logoutSuffix: String

    Permalink

    The path suffix for the logout screen

    The path suffix for the logout screen

    Definition Classes
    ProtoUser
  93. def lostPassword: NodeSeq

    Permalink
    Definition Classes
    ProtoUser
  94. def lostPasswordMenuLoc: Box[Menu]

    Permalink

    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]]

    Permalink

    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]

    Permalink

    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

    Permalink
    Definition Classes
    ProtoUser
  98. def lostPasswordSuffix: String

    Permalink

    The path suffix for the lost password screen

    The path suffix for the lost password screen

    Definition Classes
    ProtoUser
  99. def lostPasswordXhtml: Elem

    Permalink
    Definition Classes
    ProtoUser
  100. def menuNameSuffix: String

    Permalink

    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]

    Permalink

    An alias for the sitemap property

    An alias for the sitemap property

    Definition Classes
    ProtoUser
  102. def metaFields(): List[Field[_, ModelType]]

    Permalink

    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

    Permalink

    Specifies if this Record is mutable or not

    Specifies if this Record is mutable or not

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

    Permalink

    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: (MetaMegaProtoUser.this)#TheUserType): (MetaMegaProtoUser.this)#TheUserType

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  107. def niceName(inst: (MetaMegaProtoUser.this)#TheUserType): String

    Permalink

    Get a nice name for the user

    Get a nice name for the user

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

    Permalink

    Get an email link for the user

    Get an email link for the user

    Definition Classes
    ProtoUser
  109. def notLoggedIn_?: Boolean

    Permalink

    Inverted loggedIn_?

    Inverted loggedIn_?

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

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

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

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

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

    Permalink
    Definition Classes
    ProtoUser
  115. def passwordResetEmailSubject: String

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

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

    Permalink

    The computed path for the reset password screen

    The computed path for the reset password screen

    Definition Classes
    ProtoUser
  118. def passwordResetSuffix: String

    Permalink

    The path suffix for the reset password screen

    The path suffix for the reset password screen

    Definition Classes
    ProtoUser
  119. def passwordResetXhtml: Elem

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

    Permalink

    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
  121. def resetPasswordMenuLoc: Box[Menu]

    Permalink

    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]]

    Permalink

    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

    Permalink
    Definition Classes
    ProtoUser
  124. val rootClass: Class[?0] forSome {type ?0 >: ?0, type ?0 <: MetaRecord[ModelType] with ModelType}

    Permalink
    Attributes
    protected
    Definition Classes
    MetaRecord
  125. def screenWrap: Box[Node]

    Permalink

    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

    Permalink

    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: (MetaMegaProtoUser.this)#TheUserType): Unit

    Permalink

    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 setFieldsFromJValue(rec: ModelType, jvalue: JValue): Box[Unit]

    Permalink

    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
  129. def setFieldsFromJsonString(inst: ModelType, json: String): Box[Unit]

    Permalink

    Set from a Json String using the lift-json parser

    Set from a Json String using the lift-json parser

    Definition Classes
    MetaRecord
  130. def setFieldsFromRecord(inst: ModelType, rec: ModelType): Unit

    Permalink

    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
  131. def setFieldsFromReq(inst: ModelType, req: Req): Unit

    Permalink

    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
  132. def shortName(inst: (MetaMegaProtoUser.this)#TheUserType): String

    Permalink

    Get a nice name for the user

    Get a nice name for the user

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

    Permalink

    The computed path for the sign up screen

    The computed path for the sign up screen

    Definition Classes
    ProtoUser
  134. def signUpSuffix: String

    Permalink

    The path suffix for the sign up screen

    The path suffix for the sign up screen

    Definition Classes
    ProtoUser
  135. def signup: NodeSeq

    Permalink
    Definition Classes
    ProtoUser
  136. def signupFields: List[(MetaMegaProtoUser.this)#FieldPointerType]

    Permalink

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

    Permalink
    Attributes
    protected
    Definition Classes
    ProtoUser
  138. def signupMailBody(user: (MetaMegaProtoUser.this)#TheUserType, validationLink: String): Elem

    Permalink
    Definition Classes
    ProtoUser
  139. def signupMailSubject: String

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

    Permalink
    Definition Classes
    ProtoUser
  141. def signupXhtml(user: (MetaMegaProtoUser.this)#TheUserType): Elem

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

    Permalink
    Definition Classes
    ProtoUser
  143. def sitemapMutator: (SiteMap) ⇒ SiteMap

    Permalink

    The SiteMap mutator function

    The SiteMap mutator function

    Definition Classes
    ProtoUser
  144. def skipEmailValidation: Boolean

    Permalink
    Definition Classes
    ProtoUser
  145. def snarfLastItem: String

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

    Permalink
    Definition Classes
    ProtoUser
  147. def superUser_?: Boolean

    Permalink

    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

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

    Permalink
    Definition Classes
    ProtoUser
  150. lazy val testLogginIn: If

    Permalink

    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

    Permalink

    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]

    Permalink

    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

    Permalink

    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

    Permalink

    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

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

    Permalink

    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

    Permalink

    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]

    Permalink
    Definition Classes
    ProtoUser
  159. def userNameFieldString: String

    Permalink

    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

    Permalink

    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]

    Permalink

    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]

    Permalink

    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

    Permalink
    Definition Classes
    ProtoUser
  164. def validateUserMenuLoc: Box[Menu]

    Permalink

    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]]

    Permalink

    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]

    Permalink

    The calculated path to the user validation screen

    The calculated path to the user validation screen

    Definition Classes
    ProtoUser
  167. def validateUserSuffix: String

    Permalink

    The path suffix for the validate user screen

    The path suffix for the validate user screen

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    ProtoUser

Inherited from proto.ProtoUser

Inherited from MetaRecord[ModelType]

Inherited from AnyRef

Inherited from Any

Ungrouped