Trait

net.liftweb.mapper

ProtoUser

Related Doc: package mapper

Permalink

trait ProtoUser[T <: ProtoUser[T]] extends KeyedMapper[Long, T] with UserIdAsString

ProtoUser is a base class that gives you a "User" that has a first name, last name, email, etc.

Self Type
T
Linear Supertypes
UserIdAsString, KeyedMapper[Long, T], BaseKeyedMapper, Mapper[T], SourceInfo, Serializable, Serializable, BaseMapper, FieldContainer, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ProtoUser
  2. UserIdAsString
  3. KeyedMapper
  4. BaseKeyedMapper
  5. Mapper
  6. SourceInfo
  7. Serializable
  8. Serializable
  9. BaseMapper
  10. FieldContainer
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

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

    Permalink
    Definition Classes
    Mapper
  2. type KeyedMapperType = T

    Permalink
    Definition Classes
    KeyedMapperBaseKeyedMapper
  3. type MapperType = T

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

    Permalink
    Attributes
    protected
  5. class MyFirstName extends MappedString[T]

    Permalink
    Attributes
    protected
  6. class MyLastName extends MappedString[T]

    Permalink
    Attributes
    protected
  7. class MyMappedLongClass extends MappedLongIndex[T]

    Permalink
    Attributes
    protected
  8. class MyPassword extends MappedPassword[T]

    Permalink
    Attributes
    protected
  9. class MySuperUser extends MappedBoolean[T]

    Permalink
    Attributes
    protected
  10. type TheKeyType = Long

    Permalink
    Definition Classes
    KeyedMapperBaseKeyedMapper

Abstract Value Members

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

    Permalink
    Definition Classes
    KeyedMapperMapper

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 allFieldNames(): Seq[(String, SourceFieldMetadata)]

    Permalink

    Get a list of all the fields

    Get a list of all the fields

    returns

    a list of all the fields

    Definition Classes
    Mapper → SourceInfo
  5. def allFields: Seq[BaseField]

    Permalink
    Definition Classes
    Mapper → FieldContainer
  6. def appendFieldTransform(transform: CssSel): Unit

    Permalink
    Definition Classes
    Mapper
  7. def asHtml: NodeSeq

    Permalink
    Definition Classes
    Mapper
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def asJs: JsExp

    Permalink

    Convert the model to a JavaScript object

    Convert the model to a JavaScript object

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

    Permalink
    Definition Classes
    KeyedMapper
  11. def asValid: Box[T]

    Permalink

    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
  12. def checkNames: Unit

    Permalink
    Definition Classes
    Mapper
  13. def clone(): AnyRef

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

    Permalink
    Definition Classes
    KeyedMapperMapper
  15. def connectionIdentifier: ConnectionIdentifier

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

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

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

    Permalink
    Definition Classes
    Mapper
  19. def dbName: String

    Permalink
    Definition Classes
    MapperBaseMapper
  20. def db_can_delete_?: Boolean

    Permalink

    Can this model object be deleted?

    Can this model object be deleted?

    Definition Classes
    Mapper
  21. def delete_!: Boolean

    Permalink

    Delete the model from the RDBMS

    Delete the model from the RDBMS

    Definition Classes
    Mapper
  22. def dirty_?: Boolean

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

    Permalink

    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
  24. lazy val email: MappedEmail[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")
    }
    

  25. def emailDisplayName: String

    Permalink

    The email first name

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

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

    Permalink
    Definition Classes
    KeyedMapper → AnyRef → Any
  28. def fieldByName[T](fieldName: String): Box[MappedField[T, 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
    Mapper
  29. def fieldMapperTransforms(fieldTransform: (BaseOwnedMappedField[T]) ⇒ NodeSeq): Seq[CssSel]

    Permalink

    Given a function that takes a mapper field and returns a NodeSeq for the field, return, for this mapper instance, a set of CSS selector transforms that will transform a form for those fields into a fully-bound form that will interact with this instance.

    Given a function that takes a mapper field and returns a NodeSeq for the field, return, for this mapper instance, a set of CSS selector transforms that will transform a form for those fields into a fully-bound form that will interact with this instance.

    Definition Classes
    Mapper
  30. def fieldTransforms: Seq[CssSel]

    Permalink

    A list of CSS selector transforms that will help render the fields of this mapper object.

    A list of CSS selector transforms that will help render the fields of this mapper object.

    Definition Classes
    Mapper
  31. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. def findSourceField(name: String): Box[SourceFieldInfo]

    Permalink

    Given a name, look up the field

    Given a name, look up the field

    name

    the name of the field

    returns

    the metadata

    Definition Classes
    Mapper → SourceInfo
  33. lazy val firstName: MappedString[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")
    }
    

  34. def firstNameDisplayName: String

    Permalink

    The string name for the first name field

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

    Permalink

    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, MappedField[_, T], NodeSeq) ⇒ Seq[T]): List[T]

    Permalink

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

    Permalink

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

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

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

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

  42. final def isInstanceOf[T0]: Boolean

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

  44. def lastNameDisplayName: String

    Permalink

    The last name string

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

    Permalink

    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
  46. def mapFieldTitleForm[T](func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ T): List[T]

    Permalink

    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
  47. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  48. def niceName: String

    Permalink
  49. def niceNameWEmailLink: Elem

    Permalink
  50. final def notify(): Unit

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

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

  53. def passwordDisplayName: String

    Permalink

    The display name for the password field

  54. def prependFieldTransform(transform: CssSel): Unit

    Permalink
    Definition Classes
    Mapper
  55. def primaryKeyField: MappedLongIndex[T]

    Permalink
    Definition Classes
    ProtoUserKeyedMapperBaseKeyedMapper
  56. def reload: T

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

    Permalink
    Definition Classes
    Mapper
  58. final def safe_?: Boolean

    Permalink
    Definition Classes
    Mapper
  59. def save(): Boolean

    Permalink
    Definition Classes
    MapperBaseMapper
  60. def saveMe(): T

    Permalink

    Save the instance and return the instance

    Save the instance and return the instance

    Definition Classes
    Mapper
  61. def saved_?: Boolean

    Permalink
    Definition Classes
    Mapper
  62. def shortName: String

    Permalink
  63. lazy val superUser: MappedBoolean[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")
    }
    

  64. def suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp)]

    Permalink

    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
  65. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Permalink
    Definition Classes
    Mapper
  68. def toForm(button: Box[String], redoSnippet: (NodeSeq) ⇒ NodeSeq, onSuccess: (T) ⇒ Unit): NodeSeq

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

    onSuccess

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

    returns

    the form

    Definition Classes
    Mapper
  71. def toHtml: NodeSeq

    Permalink

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

    Permalink
    Definition Classes
    Mapper → AnyRef → Any
  73. def toXml: Elem

    Permalink
    Definition Classes
    Mapper
  74. def userIdAsString: String

    Permalink

    Convert the id to a String

    Convert the id to a String

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

    Permalink
    Definition Classes
    Mapper
  76. final def wait(): Unit

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

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

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

Inherited from UserIdAsString

Inherited from KeyedMapper[Long, T]

Inherited from BaseKeyedMapper

Inherited from Mapper[T]

Inherited from SourceInfo

Inherited from Serializable

Inherited from Serializable

Inherited from BaseMapper

Inherited from FieldContainer

Inherited from AnyRef

Inherited from Any

Ungrouped