Trait

net.liftweb.record

MegaProtoUser

Related Doc: package record

Permalink

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

ProtoUser is bare bones. MetaProtoUser contains a bunch more fields including a validated flag, locale, timezone, etc.

Self Type
T
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MegaProtoUser
  2. ProtoUser
  3. Record
  4. FieldContainer
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. class MyEmail extends EmailField[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ProtoUser
  2. class MyFirstName extends StringField[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ProtoUser
  3. class MyLastName extends StringField[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ProtoUser
  4. class MyLocale extends LocaleField[T]

    Permalink
    Attributes
    protected
  5. class MyMappedLongClass extends LongField[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ProtoUser
  6. class MyPassword extends PasswordField[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ProtoUser
  7. class MySuperUser extends BooleanField[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ProtoUser
  8. class MyTimeZone extends TimeZoneField[T]

    Permalink
    Attributes
    protected
  9. class MyUniqueId extends UniqueIdField[T]

    Permalink
    Attributes
    protected
  10. class MyValidated extends BooleanField[T]

    Permalink
    Attributes
    protected

Abstract Value Members

  1. abstract def meta: MetaRecord[T]

    Permalink

    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]

    Permalink
    Attributes
    protected
    Definition Classes
    ProtoUser

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. def allFields: List[Field[_, T]]

    Permalink
    Definition Classes
    RecordFieldContainer
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def asJObject: JObject

    Permalink

    Encode this record instance as a JObject

    Encode this record instance as a JObject

    Definition Classes
    Record
  7. def asJSON: JsExp

    Permalink

    Returns the JSON representation of this record

    Returns the JSON representation of this record

    returns

    a JsObj

    Definition Classes
    Record
  8. def asJValue: JValue

    Permalink

    Encode this record instance as a JValue

    Encode this record instance as a JValue

    Definition Classes
    Record
  9. def asJsExp: JsExp

    Permalink

    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
  10. def clone(): AnyRef

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

    Permalink
    Definition Classes
    Record
  12. def dirty_?: Boolean

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

    Permalink

    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")
    }
    

    Definition Classes
    ProtoUser
  14. def emailDisplayName: String

    Permalink

    The email first name

    The email first name

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

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

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

    Permalink

    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[Field[_, T]]

    Permalink

    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

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

    Permalink

    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")
    }
    

    Definition Classes
    ProtoUser
  21. def firstNameDisplayName: String

    Permalink

    The string name for the first name field

    The string name for the first name field

    Definition Classes
    ProtoUser
  22. final def getClass(): Class[_]

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

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

    Permalink

    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")
    }
    

    Definition Classes
    ProtoUser
  25. final def isInstanceOf[T0]: Boolean

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

    Permalink

    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")
    }
    

    Definition Classes
    ProtoUser
  27. def lastNameDisplayName: String

    Permalink

    The last name string

    The last name string

    Definition Classes
    ProtoUser
  28. lazy val locale: LocaleField[T]

    Permalink

    The locale field for the User.

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

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

  29. def localeDisplayName: String

    Permalink

    The string for the locale field

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

    Permalink
    Definition Classes
    AnyRef
  31. def niceName: String

    Permalink
    Definition Classes
    ProtoUser
  32. def niceNameWEmailLink: Elem

    Permalink
    Definition Classes
    ProtoUser
  33. final def notify(): Unit

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

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

    Permalink

    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")
    }
    

    Definition Classes
    ProtoUser
  36. def passwordDisplayName: String

    Permalink

    The display name for the password field

    The display name for the password field

    Definition Classes
    ProtoUser
  37. def runSafe[T](f: ⇒ T): T

    Permalink
    Definition Classes
    Record
  38. final def safe_?: Boolean

    Permalink

    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
  39. def saveTheRecord(): Box[T]

    Permalink

    Save the instance and return the instance

    Save the instance and return the instance

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

    Permalink

    Set the fields of this record from the given JValue

    Set the fields of this record from the given JValue

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

    Permalink

    Sets the fields of this Record from the given JSON.

    Sets the fields of this Record from the given JSON.

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

    Permalink

    Sets the fields of this Record from the given Req.

    Sets the fields of this Record from the given Req.

    Definition Classes
    Record
  43. def shortName: String

    Permalink
    Definition Classes
    ProtoUser
  44. lazy val superUser: BooleanField[T]

    Permalink

    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")
    }
    

    Definition Classes
    ProtoUser
  45. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  46. lazy val timezone: TimeZoneField[T]

    Permalink

    The time zone field for the User.

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

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

  47. def timezoneDisplayName: String

    Permalink

    The string for the timezone field

  48. def toForm(f: (T) ⇒ Unit): NodeSeq

    Permalink

    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
  49. def toForm(button: Box[String])(f: (T) ⇒ Unit): NodeSeq

    Permalink

    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
  50. def toString(): String

    Permalink
    Definition Classes
    Record → AnyRef → Any
  51. def toXHtml: NodeSeq

    Permalink

    Returns the HTML representation of this Record

    Returns the HTML representation of this Record

    Definition Classes
    Record
  52. lazy val uniqueId: UniqueIdField[T]

    Permalink

    The unique id field for the User.

    The unique id field for the User. This field is used for validation, lost passwords, etc. You can override the behavior of this field:

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

  53. def userIdAsString: String

    Permalink

    Convert the id to a String

    Convert the id to a String

    Definition Classes
    ProtoUser
  54. def validate: List[FieldError]

    Permalink

    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
  55. lazy val validated: BooleanField[T]

    Permalink

    Whether the user has been validated.

    Whether the user has been validated. You can override the behavior of this field:

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

  56. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ProtoUser[T]

Inherited from Record[T]

Inherited from FieldContainer

Inherited from AnyRef

Inherited from Any

Ungrouped