net.liftweb.mapper

MegaProtoUser

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
ProtoUser[T], UserIdAsString, KeyedMapper[Long, T], BaseKeyedMapper, Mapper[T], Serializable, Serializable, BaseMapper, FieldContainer, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. MegaProtoUser
  2. ProtoUser
  3. UserIdAsString
  4. KeyedMapper
  5. BaseKeyedMapper
  6. Mapper
  7. Serializable
  8. Serializable
  9. BaseMapper
  10. FieldContainer
  11. AnyRef
  12. Any
Visibility
  1. Public
  2. All

Type Members

  1. type FieldPF = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]

    Definition Classes
    Mapper
  2. type KeyedMapperType = T

    Definition Classes
    KeyedMapperBaseKeyedMapper
  3. type MapperType = T

    Definition Classes
    MapperBaseMapper
  4. class MyEmail extends MappedEmail[T]

    Attributes
    protected
  5. class MyFirstName extends MappedString[T]

    Attributes
    protected
  6. class MyLastName extends MappedString[T]

    Attributes
    protected
  7. class MyLocale extends MappedLocale[T]

    Attributes
    protected
  8. class MyMappedLongClass extends MappedLongIndex[T]

    Attributes
    protected
  9. class MyPassword extends MappedPassword[T]

    Attributes
    protected
  10. class MySuperUser extends MappedBoolean[T]

    Attributes
    protected
  11. class MyTimeZone extends MappedTimeZone[T]

    Attributes
    protected
  12. class MyUniqueId extends MappedUniqueId[T]

    Attributes
    protected
  13. class MyValidated extends MappedBoolean[T]

    Attributes
    protected
  14. type TheKeyType = Long

    Definition Classes
    KeyedMapperBaseKeyedMapper

Abstract Value Members

  1. abstract def getSingleton: KeyedMetaMapper[Long, T]

    Definition Classes
    KeyedMapperMapper

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: Seq[BaseField]

    Definition Classes
    MapperFieldContainer
  7. def appendField(pf: FieldPF): Unit

    Definition Classes
    Mapper
  8. def asHtml: NodeSeq

    Definition Classes
    Mapper
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def asJs: JsExp

    Convert the model to a JavaScript object

    Convert the model to a JavaScript object

    Definition Classes
    Mapper
  11. def asSafeJs(f: KeyObfuscator): JsExp

    Definition Classes
    KeyedMapper
  12. def asValid: Box[T]

    Returns the instance in a Full Box if the instance is valid, otherwise returns a Failure with the validation errors

    Returns the instance in a Full Box if the instance is valid, otherwise returns a Failure with the validation errors

    Definition Classes
    Mapper
  13. def checkNames: Unit

    Definition Classes
    Mapper
  14. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def comparePrimaryKeys(other: T): Boolean

    Definition Classes
    KeyedMapperMapper
  16. def connectionIdentifier: ConnectionIdentifier

    Definition Classes
    Mapper
  17. def connectionIdentifier(id: ConnectionIdentifier): T

    Definition Classes
    Mapper
  18. def countryField: Box[MappedCountry[T]]

    Definition Classes
    Mapper
  19. def dbCalculateConnectionIdentifier: PartialFunction[T, ConnectionIdentifier]

    Definition Classes
    Mapper
  20. def dbName: String

    Definition Classes
    MapperBaseMapper
  21. def db_can_delete_?: Boolean

    Can this model object be deleted?

    Can this model object be deleted?

    Definition Classes
    Mapper
  22. def delete_!: Boolean

    Delete the model from the RDBMS

    Delete the model from the RDBMS

    Definition Classes
    Mapper
  23. def dirty_?: Boolean

    Definition Classes
    Mapper
  24. def doPostCommit(func: () ⇒ Unit): T

    Append a function to perform after the commit happens

    Append a function to perform after the commit happens

    func

    - the function to perform after the commit happens

    Definition Classes
    Mapper
  25. lazy val email: MappedEmail[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")
    }
    

    Definition Classes
    ProtoUser
  26. def emailDisplayName: String

    The email first name

    The email first name

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

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

    Definition Classes
    KeyedMapper → AnyRef → Any
  29. def fieldByName[T](fieldName: String): Box[MappedField[T, T]]

    Find the field by name

    Find the field by name

    fieldName

    -- the name of the field to find

    returns

    Box[MappedField]

    Definition Classes
    Mapper
  30. def fieldMapperPF(transform: (BaseOwnedMappedField[T]) ⇒ NodeSeq): FieldPF

    Definition Classes
    Mapper
  31. def fieldPF: FieldPF

    Definition Classes
    Mapper
  32. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. lazy val firstName: MappedString[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")
    }
    

    Definition Classes
    ProtoUser
  34. def firstNameDisplayName: String

    The string name for the first name field

    The string name for the first name field

    Definition Classes
    ProtoUser
  35. def flatMapFieldTitleForm[T](func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ Seq[T]): List[T]

    flat map the fields titles and forms to generate a list

    flat map the fields titles and forms to generate a list

    func

    called with displayHtml, fieldId, form

    Definition Classes
    Mapper
  36. def flatMapFieldTitleForm2[T](func: (NodeSeq, net.liftweb.mapper.MappedField[_, T], NodeSeq) ⇒ Seq[T]): List[T]

    flat map the fields titles and forms to generate a list

    flat map the fields titles and forms to generate a list

    func

    called with displayHtml, fieldId, form

    Definition Classes
    Mapper
  37. def formFields: List[net.liftweb.mapper.MappedField[_, T]]

    Get the fields (in order) for displaying a form

    Get the fields (in order) for displaying a form

    Definition Classes
    Mapper
  38. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    KeyedMapper → AnyRef → Any
  40. def htmlLine: NodeSeq

    Definition Classes
    Mapper
  41. lazy val id: MappedLongIndex[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")
    }
    

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

    Definition Classes
    Any
  43. lazy val lastName: MappedString[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")
    }
    

    Definition Classes
    ProtoUser
  44. def lastNameDisplayName: String

    The last name string

    The last name string

    Definition Classes
    ProtoUser
  45. lazy val locale: MyLocale

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

  46. def localeDisplayName: String

    The string for the locale field

  47. def localeField: Box[MappedLocale[T]]

    If there's a field in this record that defines the locale, return it

    If there's a field in this record that defines the locale, return it

    Definition Classes
    Mapper
  48. def mapFieldTitleForm[T](func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ T): List[T]

    map the fields titles and forms to generate a list

    map the fields titles and forms to generate a list

    func

    called with displayHtml, fieldId, form

    Definition Classes
    Mapper
  49. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  50. def niceName: String

    Definition Classes
    ProtoUser
  51. def niceNameWEmailLink: Elem

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

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

    Definition Classes
    AnyRef
  54. lazy val password: MappedPassword[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")
    }
    

    Definition Classes
    ProtoUser
  55. def passwordDisplayName: String

    The display name for the password field

    The display name for the password field

    Definition Classes
    ProtoUser
  56. def prependField(pf: FieldPF): Unit

    Definition Classes
    Mapper
  57. def primaryKeyField: MappedLongIndex[T]

    Definition Classes
    ProtoUserKeyedMapperBaseKeyedMapper
  58. def reload: T

    Definition Classes
    KeyedMapper
  59. def runSafe[T](f: ⇒ T): T

    Definition Classes
    Mapper
  60. final def safe_?: Boolean

    Definition Classes
    Mapper
  61. def save(): Boolean

    Definition Classes
    MapperBaseMapper
  62. def saveMe(): T

    Save the instance and return the instance

    Save the instance and return the instance

    Definition Classes
    Mapper
  63. def saved_?: Boolean

    Definition Classes
    Mapper
  64. def shortName: String

    Definition Classes
    ProtoUser
  65. lazy val superUser: MappedBoolean[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")
    }
    

    Definition Classes
    ProtoUser
  66. def suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp)]

    If the instance calculates any additional fields for JSON object, put the calculated fields here

    If the instance calculates any additional fields for JSON object, put the calculated fields here

    Definition Classes
    Mapper
  67. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  68. implicit def thisToMappee(in: Mapper[T]): T

    Definition Classes
    Mapper
  69. def timeZoneField: Box[MappedTimeZone[T]]

    Definition Classes
    Mapper
  70. lazy val timezone: MyTimeZone

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

  71. def timezoneDisplayName: String

    The string for the timezone field

  72. def toForm(button: Box[String], redoSnippet: (NodeSeq) ⇒ NodeSeq, onSuccess: (T) ⇒ Unit): NodeSeq

    Definition Classes
    Mapper
  73. def toForm(button: Box[String], f: (T) ⇒ Any): 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
    Mapper
  74. def toForm(button: Box[String], onSuccess: String): 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

    onSuccess

    - redirect to the URL if the model validates, otherwise display the errors

    returns

    the form

    Definition Classes
    Mapper
  75. def toHtml: NodeSeq

    Present the model as a HTML using the same formatting as toForm

    Present the model as a HTML using the same formatting as toForm

    returns

    the html view of the model

    Definition Classes
    Mapper
  76. def toString(): String

    Definition Classes
    Mapper → AnyRef → Any
  77. def toXml: Elem

    Definition Classes
    Mapper
  78. lazy val uniqueId: MappedUniqueId[T]

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

  79. def userIdAsString: String

    Convert the id to a String

    Convert the id to a String

    Definition Classes
    ProtoUserUserIdAsString
  80. def validate: List[FieldError]

    Definition Classes
    Mapper
  81. lazy val validated: MappedBoolean[T]

    The has the user been validated.

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

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

  82. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ProtoUser[T]

Inherited from UserIdAsString

Inherited from KeyedMapper[Long, T]

Inherited from BaseKeyedMapper

Inherited from Mapper[T]

Inherited from Serializable

Inherited from Serializable

Inherited from BaseMapper

Inherited from FieldContainer

Inherited from AnyRef

Inherited from Any