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
- Alphabetic
- By Inheritance
- MegaProtoUser
- ProtoUser
- Record
- FieldContainer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
MyLocale
extends LocaleField[T]
- Attributes
- protected
-
class
MyTimeZone
extends TimeZoneField[T]
- Attributes
- protected
-
class
MyUniqueId
extends UniqueIdField[T]
- Attributes
- protected
-
class
MyValidated
extends BooleanField[T]
- Attributes
- protected
-
class
MyEmail
extends EmailField[T]
- Attributes
- protected
- Definition Classes
- ProtoUser
-
class
MyFirstName
extends StringField[T]
- Attributes
- protected
- Definition Classes
- ProtoUser
-
class
MyLastName
extends StringField[T]
- Attributes
- protected
- Definition Classes
- ProtoUser
-
class
MyMappedLongClass
extends LongField[T]
- Attributes
- protected
- Definition Classes
- ProtoUser
-
class
MyPassword
extends PasswordField[T]
- Attributes
- protected
- Definition Classes
- ProtoUser
-
class
MySuperUser
extends BooleanField[T]
- Attributes
- protected
- Definition Classes
- ProtoUser
Abstract Value Members
-
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
-
abstract
def
valUnique(errorMsg: ⇒ String)(email: String): List[FieldError]
- Attributes
- protected
- Definition Classes
- ProtoUser
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
allFields: List[Field[_, T]]
- Definition Classes
- Record → FieldContainer
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJObject: JObject
Encode this record instance as a JObject
Encode this record instance as a JObject
- Definition Classes
- Record
-
def
asJSON: JsExp
Returns the JSON representation of this record
-
def
asJValue: JValue
Encode this record instance as a JValue
Encode this record instance as a JValue
- Definition Classes
- Record
-
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
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
copy: T
- Definition Classes
- Record
-
def
dirty_?: Boolean
- Definition Classes
- Record
-
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") }
- Definition Classes
- ProtoUser
-
def
emailDisplayName: String
The email first name
The email first name
- Definition Classes
- ProtoUser
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- Record → AnyRef → Any
-
def
fieldByName(fieldName: String): Box[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
-
def
fields(): List[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
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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") }
- Definition Classes
- ProtoUser
-
def
firstNameDisplayName: String
The string name for the first name field
The string name for the first name field
- Definition Classes
- ProtoUser
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
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") }
- Definition Classes
- ProtoUser
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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") }
- Definition Classes
- ProtoUser
-
def
lastNameDisplayName: String
The last name string
The last name string
- Definition Classes
- ProtoUser
-
lazy val
locale: LocaleField[T]
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") }
-
def
localeDisplayName: String
The string for the locale field
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
niceName: String
- Definition Classes
- ProtoUser
-
def
niceNameWEmailLink: Elem
- Definition Classes
- ProtoUser
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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") }
- Definition Classes
- ProtoUser
-
def
passwordDisplayName: String
The display name for the password field
The display name for the password field
- Definition Classes
- ProtoUser
-
def
runSafe[T](f: ⇒ T): T
- Definition Classes
- Record
-
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
-
def
saveTheRecord(): Box[T]
Save the instance and return the instance
Save the instance and return the instance
- Definition Classes
- Record
-
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
-
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
-
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
-
def
shortName: String
- Definition Classes
- ProtoUser
-
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") }
- Definition Classes
- ProtoUser
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
lazy val
timezone: TimeZoneField[T]
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") }
-
def
timezoneDisplayName: String
The string for the timezone field
-
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
-
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
-
def
toString(): String
- Definition Classes
- Record → AnyRef → Any
-
def
toXHtml: NodeSeq
Returns the HTML representation of this Record
Returns the HTML representation of this Record
- Definition Classes
- Record
-
lazy val
uniqueId: UniqueIdField[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") }
-
def
userIdAsString: String
Convert the id to a String
Convert the id to a String
- Definition Classes
- ProtoUser
-
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
-
lazy val
validated: BooleanField[T]
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") }
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )