net.liftweb.record

MetaMegaProtoUser

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

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

linear super types: ProtoUser, MetaRecord[ModelType], AnyRef, Any
self type: MetaMegaProtoUser[ModelType] with ModelType
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
Impl.
  1. Concrete
  2. Abstract

Type Members

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

  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

  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

Value Members

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

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

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

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

    arg0

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

    returns

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

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

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

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

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

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

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

    arg0

    the object to compare against this object for equality.

    returns

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

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

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

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

    arg0

    the object to compare against this object for equality.

    returns

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

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

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

  9. object AddUserMenusHere extends LocParam[Any] with Product

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

  10. object AddUserMenusUnder extends LocParam[Any] with Product

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

  11. lazy val ItemList : List[MenuItem]

    definition classes: ProtoUser
  12. def 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
  13. def appendDispatch (func: PartialFunction[Req, (ModelType) ⇒ Box[LiftResponse]]) : RulesSeq[DispatchPF]

    Append a DispatchPF function to LiftRules.

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

    func

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

    definition classes: MetaRecord
  14. def asInstanceOf [T0] : T0

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

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

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

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  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) : JObject

    Encode a record instance into a JValue

    Encode a record instance into a JValue

    definition classes: MetaRecord
  17. def asJsExp (inst: ModelType) : JsExp

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

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

    returns

    a JsObj

    definition classes: MetaRecord
  18. 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
  19. val basePath : List[String]

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

    definition classes: ProtoUser
  21. implicit def buildFieldBridge (from: FieldPointerType) : FieldPointerBridge

    Based on a FieldPointer, build a FieldPointerBridge

    Based on a FieldPointer, build a FieldPointerBridge

    attributes: protected implicit
    definition classes: MetaMegaProtoUserProtoUser
  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]

    definition classes: ProtoUser
  27. def changePasswordSuffix : String

    definition classes: ProtoUser
  28. def changePasswordXhtml : Elem

    definition classes: ProtoUser
  29. def clone () : AnyRef

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

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

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected
    definition classes: AnyRef
  30. 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
  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 apply the new value for the specific field

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

    definition classes: MetaRecord
  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 edit : NodeSeq

    definition classes: ProtoUser
  40. 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
  41. object editFunc extends RequestVar[Box[() ⇒ NodeSeq]]

  42. lazy val editPath : List[String]

    definition classes: ProtoUser
  43. def editSuffix : String

    definition classes: ProtoUser
  44. 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
  45. 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
  46. def editXhtml (user: TheUserType) : Elem

    definition classes: ProtoUser
  47. def emailFrom : String

    definition classes: ProtoUser
  48. def eq (arg0: AnyRef) : Boolean

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

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

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

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

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

    arg0

    the object to compare against this object for reference equality.

    returns

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

    attributes: final
    definition classes: AnyRef
  49. def equals (arg0: Any) : Boolean

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

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

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

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

    arg0

    the object to compare against this object for equality.

    returns

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

    definition classes: AnyRef → Any
  50. 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
  51. def fieldOrder : List[net.liftweb.record.Field[_, ModelType]]

    Defined the order of the fields in this record

    Defined the order of the fields in this record

    returns

    a List of Field

    definition classes: MetaRecord
  52. def fields (rec: ModelType) : List[net.liftweb.record.Field[_, ModelType]]

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

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

    definition classes: MetaRecord
  53. def finalize () : Unit

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

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

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

    attributes: protected
    definition classes: AnyRef
  54. def findUserByUniqueId (id: String) : Box[TheUserType]

    Given a unique id, find the user

    Given a unique id, find the user

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

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

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

    attributes: protected abstract
    definition classes: MetaMegaProtoUserProtoUser
  56. def foreachCallback (inst: ModelType, f: (LifecycleCallbacks) ⇒ Any) : Unit

    attributes: protected
    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:

    &lt;lift:field_label name="firstName"/&gt; - the label for firstName field will be rendered here &lt;lift:field name="firstName"/&gt; - the firstName field will be rendered here (typically an input field) &lt;lift:field_msg name="firstName"/&gt; - the <lift:msg> will be rendered here hafing the id given by uniqueFieldId of the firstName field.

    Example.

    Having:

    class MyRecord extends Record[MyRecord] {

    def meta = MyRecordMeta

    object firstName extends StringField(this, "John")

    }

    object MyRecordMeta extends MyRecord with MetaRecord[MyRecord] { override def mutable_? = false }

    ...

    val rec = MyRecordMeta.createRecord.firstName("McLoud")

    val template = &lt;div&gt; &lt;div&gt; &lt;div&gt;&lt;lift:field_label name="firstName"/&gt;&lt;/div&gt; &lt;div&gt;&lt;lift:field name="firstName"/&gt;&lt;/div&gt; &lt;div&gt;&lt;lift:field_msg name="firstName"/&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt;

    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. def getClass () : java.lang.Class[_]

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

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

    The nature of the representation is platform dependent.

    returns

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

    attributes: final
    definition classes: AnyRef
  65. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

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

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  66. def homePage : String

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

    definition classes: MetaRecord
  69. def isInstanceOf [T0] : Boolean

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

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

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

    returns

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

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

    attributes: protected
    definition classes: ProtoUser
  71. def logUserIdIn (id: String) : Unit

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

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

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

    definition classes: ProtoUser
  75. def loggedIn_? : Boolean

    definition classes: ProtoUser
  76. def login : NodeSeq

    definition classes: ProtoUser
  77. def loginFirst : If

    definition classes: ProtoUser
  78. 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
  79. 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
  80. def loginPageURL : String

    Return the URL of the "login" page

    Return the URL of the "login" page

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

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

  83. def loginSuffix : String

    definition classes: ProtoUser
  84. def loginXhtml : Elem

    definition classes: ProtoUser
  85. def logout : Nothing

    definition classes: ProtoUser
  86. def logoutCurrentUser : Unit

    definition classes: ProtoUser
  87. 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
  88. 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
  89. lazy val logoutPath : List[String]

    definition classes: ProtoUser
  90. def logoutSuffix : String

    definition classes: ProtoUser
  91. def lostPassword : NodeSeq

    definition classes: ProtoUser
  92. 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
  93. 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
  94. lazy val lostPasswordPath : List[String]

    definition classes: ProtoUser
  95. def lostPasswordSuffix : String

    definition classes: ProtoUser
  96. def lostPasswordXhtml : Elem

    definition classes: ProtoUser
  97. def menus : List[Menu]

    An alias for the sitemap property

    An alias for the sitemap property

    definition classes: ProtoUser
  98. 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:
    1. Record

  99. def mutable_? : Boolean

    Specifies if this Record is mutable or not

    Specifies if this Record is mutable or not

    definition classes: MetaRecord
  100. def mutateUserOnEdit (user: TheUserType) : TheUserType

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

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

    user

    the user to mutate

    returns

    the mutated user

    attributes: protected
    definition classes: ProtoUser
  101. 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
  102. def ne (arg0: AnyRef) : Boolean

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

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

    arg0

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

    returns

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

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

    Get a nice name for the user

    Get a nice name for the user

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

    Get an email link for the user

    Get an email link for the user

    definition classes: ProtoUser
  105. def notLoggedIn_? : Boolean

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

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

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

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

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

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

    attributes: final
    definition classes: AnyRef
  108. var onLogIn : List[(TheUserType) ⇒ Unit]

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

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

    definition classes: ProtoUser
  111. def passwordResetEmailSubject : String

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

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

    definition classes: ProtoUser
  114. def passwordResetSuffix : String

    definition classes: ProtoUser
  115. def passwordResetXhtml : Elem

    definition classes: ProtoUser
  116. def prependDispatch (func: PartialFunction[Req, (ModelType) ⇒ Box[LiftResponse]]) : RulesSeq[DispatchPF]

    Prepend a DispatchPF function to LiftRules.

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

    func

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

    definition classes: MetaRecord
  117. 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
  118. 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
  119. val rootClass : java.lang.Class[_ >: ?0]

    attributes: protected
    definition classes: MetaRecord
  120. 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
  121. 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
  122. 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
  123. 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
  124. 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
  125. 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
  126. 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
  127. def shortName (inst: TheUserType) : String

    Get a nice name for the user

    Get a nice name for the user

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

    definition classes: ProtoUser
  129. def signUpSuffix : String

    definition classes: ProtoUser
  130. def signup : NodeSeq

    definition classes: ProtoUser
  131. 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
  132. object signupFunc extends RequestVar[Box[() ⇒ NodeSeq]]

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

    definition classes: ProtoUser
  134. def signupMailSubject : String

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

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

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

    The SiteMap mutator function

    The SiteMap mutator function

    definition classes: ProtoUser
  138. def skipEmailValidation : Boolean

    definition classes: ProtoUser
  139. def snarfLastItem : String

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

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

    definition classes: ProtoUser
  143. lazy val testLogginIn : If

    definition classes: ProtoUser
  144. lazy val testSuperUser : If

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

    definition classes: ProtoUser
  146. 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
  147. 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
  148. def toString () : String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: AnyRef → Any
  149. 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
  150. implicit def typeToBridge (in: TheUserType) : UserBridge

    Convert an instance of TheUserType to the Bridge trait

    Convert an instance of TheUserType to the Bridge trait

    attributes: protected implicit
    definition classes: MetaMegaProtoUserProtoUser
  151. def userFromStringId (id: String) : Box[TheUserType]

    Given a String representing the User ID, find the user

    Given a String representing the User ID, find the user

    attributes: protected abstract
    definition classes: MetaMegaProtoUserProtoUser
  152. def userMenu : List[Node]

    definition classes: ProtoUser
  153. 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
  154. 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
  155. def validate (inst: ModelType) : List[FieldError]

    Validates the inst Record by calling validators for each field

    Validates the inst Record by calling validators for each field

    returns

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

    definition classes: MetaRecord
  156. 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
  157. def validateUser (id: String) : NodeSeq

    definition classes: ProtoUser
  158. 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
  159. 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
  160. lazy val validateUserPath : List[String]

    definition classes: ProtoUser
  161. def validateUserSuffix : String

    definition classes: ProtoUser
  162. def wait () : Unit

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

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

    attributes: final
    definition classes: AnyRef
  165. def wrapIt (in: NodeSeq) : NodeSeq

    attributes: protected
    definition classes: ProtoUser

Inherited from ProtoUser

Inherited from MetaRecord[ModelType]

Inherited from AnyRef

Inherited from Any