net.liftweb.record

ProtoUser

trait ProtoUser[T <: ProtoUser[T]] extends Record[T]

ProtoUser provides a "User" with a first name, last name, email, etc.

Self Type
T
Linear Supertypes
Record[T], FieldContainer, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ProtoUser
  2. Record
  3. FieldContainer
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Type Members

  1. class MyEmail extends EmailField[T]

    Attributes
    protected
  2. class MyFirstName extends StringField[T]

    Attributes
    protected
  3. class MyLastName extends StringField[T]

    Attributes
    protected
  4. class MyMappedLongClass extends LongField[T]

    Attributes
    protected
  5. class MyPassword extends PasswordField[T]

    Attributes
    protected
  6. class MySuperUser extends BooleanField[T]

    Attributes
    protected

Abstract Value Members

  1. abstract def meta: MetaRecord[T]

    The meta record (the object that contains the meta result for this type)

    The meta record (the object that contains the meta result for this type)

    Definition Classes
    Record
  2. abstract def valUnique(errorMsg: ⇒ String)(email: String): List[FieldError]

    Attributes
    protected

Concrete Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def allFields: List[net.liftweb.record.Field[_, T]]

    Definition Classes
    RecordFieldContainer
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def asJSON: JsExp

    Returns the JSON representation of this record

    Returns the JSON representation of this record

    returns

    a JsObj

    Definition Classes
    Record
  9. def asJValue: JObject

    Encode this record instance as a JObject

    Encode this record instance as a JObject

    Definition Classes
    Record
  10. def asJsExp: JsExp

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

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

    returns

    a JsObj

    Definition Classes
    Record
  11. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def copy: T

    Definition Classes
    Record
  13. lazy val email: EmailField[T]

    The email field for the User.

    The email field for the User. You can override the behavior of this field:

    override lazy val email = new MyEmail(this, 48) {
      println("I am doing something different")
    }
    

  14. def emailDisplayName: String

    The email first name

  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(other: Any): Boolean

    Definition Classes
    Record → AnyRef → Any
  17. def fieldByName(fieldName: String): Box[net.liftweb.record.Field[_, T]]

    Find the field by name

    Find the field by name

    fieldName

    -- the name of the field to find

    returns

    Box[MappedField]

    Definition Classes
    Record
  18. def fields(): List[net.liftweb.record.Field[_, T]]

    Get the fields defined on the meta object for this record instance

    Get the fields defined on the meta object for this record instance

    Definition Classes
    Record
  19. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. lazy val firstName: StringField[T]

    The first name field for the User.

    The first name field for the User. You can override the behavior of this field:

    override lazy val firstName = new MyFirstName(this, 32) {
      println("I am doing something different")
    }
    

  21. def firstNameDisplayName: String

    The string name for the first name field

  22. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. lazy val id: LongField[T]

    The primary key field for the User.

    The primary key field for the User. You can override the behavior of this field:

    override lazy val id = new MyMappedLongClass(this) {
      println("I am doing something different")
    }
    

  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. lazy val lastName: StringField[T]

    The last field for the User.

    The last field for the User. You can override the behavior of this field:

    override lazy val lastName = new MyLastName(this, 32) {
      println("I am doing something different")
    }
    

  27. def lastNameDisplayName: String

    The last name string

  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. def niceName: String

  30. def niceNameWEmailLink: Elem

  31. final def notify(): Unit

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

    Definition Classes
    AnyRef
  33. lazy val password: PasswordField[T]

    The password field for the User.

    The password field for the User. You can override the behavior of this field:

    override lazy val password = new MyPassword(this) {
      println("I am doing something different")
    }
    

  34. def passwordDisplayName: String

    The display name for the password field

  35. def runSafe[T](f: ⇒ T): T

    Definition Classes
    Record
  36. final def safe_?: Boolean

    Is it safe to make changes to the record (or should we check access control?)

    Is it safe to make changes to the record (or should we check access control?)

    Definition Classes
    Record
  37. def saveTheRecord(): Box[T]

    Save the instance and return the instance

    Save the instance and return the instance

    Definition Classes
    Record
  38. def setFieldsFromJSON(json: String): Box[Unit]

    Sets the fields of this Record from the given JSON.

    Sets the fields of this Record from the given JSON.

    Definition Classes
    Record
  39. def setFieldsFromJValue(jvalue: JValue): Box[Unit]

    Set the fields of this record from the given JValue

    Set the fields of this record from the given JValue

    Definition Classes
    Record
  40. def setFieldsFromJsonString(json: String): Box[Unit]

    Sets the fields of this Record from the given JSON.

    Sets the fields of this Record from the given JSON.

    Definition Classes
    Record
  41. def setFieldsFromReq(req: Req): Unit

    Sets the fields of this Record from the given Req.

    Sets the fields of this Record from the given Req.

    Definition Classes
    Record
  42. def shortName: String

  43. lazy val superUser: BooleanField[T]

    The superuser field for the User.

    The superuser field for the User. You can override the behavior of this field:

    override lazy val superUser = new MySuperUser(this) {
      println("I am doing something different")
    }
    

  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. def toForm(f: (T) ⇒ Unit): NodeSeq

    Present the model as a form and execute the function on submission of the form

    Present the model as a form and execute the function on submission of the form

    f

    - the function to execute on form submission

    returns

    the form

    Definition Classes
    Record
  46. def toForm(button: Box[String])(f: (T) ⇒ Unit): NodeSeq

    Present the model as a form and execute the function on submission of the form

    Present the model as a form and execute the function on submission of the form

    button

    - If it's Full, put a submit button on the form with the value of the parameter

    f

    - the function to execute on form submission

    returns

    the form

    Definition Classes
    Record
  47. def toString(): String

    Definition Classes
    Record → AnyRef → Any
  48. def toXHtml: NodeSeq

    Returns the HTML representation of this Record

    Returns the HTML representation of this Record

    Definition Classes
    Record
  49. def userIdAsString: String

    Convert the id to a String

  50. def validate: List[FieldError]

    Validates this Record by calling validators for each field

    Validates this 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
    Record
  51. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Record[T]

Inherited from FieldContainer

Inherited from AnyRef

Inherited from Any