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
- UserIdAsString
- KeyedMapper
- BaseKeyedMapper
- Mapper
- SourceInfo
- Serializable
- Serializable
- BaseMapper
- FieldContainer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
FieldPF = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]
- Definition Classes
- Mapper
-
type
KeyedMapperType = T
- Definition Classes
- KeyedMapper → BaseKeyedMapper
-
type
MapperType = T
- Definition Classes
- Mapper → BaseMapper
-
class
MyLocale extends MappedLocale[T]
- Attributes
- protected
-
class
MyTimeZone extends MappedTimeZone[T]
- Attributes
- protected
-
class
MyUniqueId extends MappedUniqueId[T]
- Attributes
- protected
-
class
MyValidated extends MappedBoolean[T]
- Attributes
- protected
-
type
TheKeyType = Long
- Definition Classes
- KeyedMapper → BaseKeyedMapper
-
class
MyEmail extends MappedEmail[T]
- Attributes
- protected
- Definition Classes
- ProtoUser
-
class
MyFirstName extends MappedString[T]
- Attributes
- protected
- Definition Classes
- ProtoUser
-
class
MyLastName extends MappedString[T]
- Attributes
- protected
- Definition Classes
- ProtoUser
-
class
MyMappedLongClass extends MappedLongIndex[T]
- Attributes
- protected
- Definition Classes
- ProtoUser
-
class
MyPassword extends MappedPassword[T]
- Attributes
- protected
- Definition Classes
- ProtoUser
-
class
MySuperUser extends MappedBoolean[T]
- Attributes
- protected
- Definition Classes
- ProtoUser
Abstract Value Members
-
abstract
def
getSingleton: KeyedMetaMapper[Long, T]
- Definition Classes
- KeyedMapper → Mapper
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
allFieldNames(): Seq[(String, SourceFieldMetadata)]
Get a list of all the fields
-
def
allFields: Seq[BaseField]
- Definition Classes
- Mapper → FieldContainer
-
def
appendFieldTransform(transform: CssSel): Unit
- Definition Classes
- Mapper
-
def
asHtml: NodeSeq
- Definition Classes
- Mapper
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJs: JsExp
Convert the model to a JavaScript object
Convert the model to a JavaScript object
- Definition Classes
- Mapper
-
def
asSafeJs(f: KeyObfuscator): JsExp
- Definition Classes
- KeyedMapper
-
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
-
def
checkNames: Unit
- Definition Classes
- Mapper
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
comparePrimaryKeys(other: T): Boolean
- Definition Classes
- KeyedMapper → Mapper
-
def
connectionIdentifier: ConnectionIdentifier
- Definition Classes
- Mapper
-
def
connectionIdentifier(id: ConnectionIdentifier): T
- Definition Classes
- Mapper
-
def
countryField: Box[MappedCountry[T]]
- Definition Classes
- Mapper
-
def
dbCalculateConnectionIdentifier: PartialFunction[T, ConnectionIdentifier]
- Definition Classes
- Mapper
-
def
dbName: String
- Definition Classes
- Mapper → BaseMapper
-
def
db_can_delete_?: Boolean
Can this model object be deleted?
Can this model object be deleted?
- Definition Classes
- Mapper
-
def
delete_!: Boolean
Delete the model from the RDBMS
Delete the model from the RDBMS
- Definition Classes
- Mapper
-
def
dirty_?: Boolean
- Definition Classes
- Mapper
-
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
-
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
-
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
- KeyedMapper → AnyRef → Any
-
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
-
def
fieldMapperTransforms(fieldTransform: (BaseOwnedMappedField[T]) ⇒ NodeSeq): Seq[CssSel]
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
-
def
fieldTransforms: Seq[CssSel]
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
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findSourceField(name: String): Box[SourceFieldInfo]
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
-
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
-
def
firstNameDisplayName: String
The string name for the first name field
The string name for the first name field
- Definition Classes
- ProtoUser
-
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
-
def
flatMapFieldTitleForm2[T](func: (NodeSeq, 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
-
def
formFields: List[MappedField[_, T]]
Get the fields (in order) for displaying a form
Get the fields (in order) for displaying a form
- Definition Classes
- Mapper
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- KeyedMapper → AnyRef → Any
-
def
htmlLine: NodeSeq
- Definition Classes
- Mapper
-
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
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
def
lastNameDisplayName: String
The last name string
The last name string
- Definition Classes
- ProtoUser
-
lazy val
locale: T.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") }
-
def
localeDisplayName: String
The string for the locale field
-
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
-
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
-
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
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
def
passwordDisplayName: String
The display name for the password field
The display name for the password field
- Definition Classes
- ProtoUser
-
def
prependFieldTransform(transform: CssSel): Unit
- Definition Classes
- Mapper
-
def
primaryKeyField: MappedLongIndex[T]
- Definition Classes
- ProtoUser → KeyedMapper → BaseKeyedMapper
-
def
reload: T
- Definition Classes
- KeyedMapper
-
def
runSafe[T](f: ⇒ T): T
- Definition Classes
- Mapper
-
final
def
safe_?: Boolean
- Definition Classes
- Mapper
-
def
save(): Boolean
- Definition Classes
- Mapper → BaseMapper
-
def
saveMe(): T
Save the instance and return the instance
Save the instance and return the instance
- Definition Classes
- Mapper
-
def
saved_?: Boolean
- Definition Classes
- Mapper
-
def
shortName: String
- Definition Classes
- ProtoUser
-
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
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
implicit
def
thisToMappee(in: Mapper[T]): T
- Definition Classes
- Mapper
-
def
timeZoneField: Box[MappedTimeZone[T]]
- Definition Classes
- Mapper
-
lazy val
timezone: T.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") }
-
def
timezoneDisplayName: String
The string for the timezone field
-
def
toForm(button: Box[String], redoSnippet: (NodeSeq) ⇒ NodeSeq, onSuccess: (T) ⇒ Unit): NodeSeq
- Definition Classes
- Mapper
-
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
-
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
-
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
-
def
toString(): String
- Definition Classes
- Mapper → AnyRef → Any
-
def
toXml: Elem
- Definition Classes
- Mapper
-
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") }
-
def
userIdAsString: String
Convert the id to a String
Convert the id to a String
- Definition Classes
- ProtoUser → UserIdAsString
-
def
validate: List[FieldError]
- Definition Classes
- Mapper
-
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") }
-
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
- @native() @throws( ... )