net.liftweb.mapper.ProtoUser

trait ProtoUser

trait ProtoUser[T <: ProtoUser[T]]

 extends KeyedMapper[Long, T] with UserIdAsString




Source: ProtoUser.scala(32)

Direct Known Subclasses

MegaProtoUser,

 Fields

asHtml def asHtml NodeSeq Mapper
asJSON def asJSON
Create a JSON representation of this model object
String Mapper
asJs def asJs
Convert the model to a JavaScript object
JsExp Mapper
connectionIdentifier def connectionIdentifier ConnectionIdentifier Mapper
countryField def countryField Box[MappedCountry[A]] Mapper
dbCalculateConnectionIdentifier def dbCalculateConnectionIdentifier PartialFunction[A, ConnectionIdentifier] Mapper
db_can_delete_? def db_can_delete_?
Can this model object be deleted?
Boolean Mapper
delete_! def delete_!
Delete the model from the RDBMS
Boolean Mapper
dirty_? def dirty_? Boolean Mapper
email object email

 extends MappedEmail[T]
emailDisplayName def emailDisplayName String
fieldPF def fieldPF PartialFunction Mapper
firstName object firstName

 extends MappedString[T]
firstNameDisplayName def firstNameDisplayName String
formFields def formFields
Get the fields (in order) for displaying a form
List[MappedField[Any, A]] Mapper
getSingleton abstract def getSingleton KeyedMetaMapper[KeyType, OwnerType] KeyedMapper
htmlLine def htmlLine NodeSeq Mapper
id object id

 extends MappedLongIndex[T]
lastName object lastName

 extends MappedString[T]
lastNameDisplayName def lastNameDisplayName String
localeField def localeField
If there's a field in this record that defines the locale, return it
Box[MappedLocale[A]] Mapper
niceName def niceName String
niceNameWEmailLink def niceNameWEmailLink Elem
password object password

 extends MappedPassword[T]
passwordDisplayName def passwordDisplayName String
primaryKeyField override def primaryKeyField id
reload def reload OwnerType KeyedMapper
safe_? final def safe_? Boolean Mapper
saved_? def saved_? Boolean Mapper
shortName def shortName String
superUser object superUser

 extends MappedBoolean[T]
timeZoneField def timeZoneField Box[MappedTimeZone[A]] Mapper
toXml def toXml Elem Mapper
userIdAsString def userIdAsString String
validate def validate List[FieldError] Mapper

 Methods

!= final def !=(arg0 : Any) Boolean Any
!= final def !=(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Any) Boolean Any
appendField def appendField(pf : PartialFunction) Unit Mapper
asInstanceOf final def asInstanceOf[T0] T0 Any
asJSON def asJSON(sb : StringBuilder)
Append the JSON representation of this model object to the string builder [details]
param
the - string builder to append the JSON representation of this model to
return
- the StringBuilder
StringBuilder Mapper
asSafeJs def asSafeJs(f : KeyObfuscator) JsExp KeyedMapper
checkNames def checkNames Unit Mapper
clone protected def clone Object AnyRef
comparePrimaryKeys override def comparePrimaryKeys(other : OwnerType) Boolean KeyedMapper
connectionIdentifier def connectionIdentifier(id : ConnectionIdentifier) A Mapper
doPostCommit def doPostCommit(func : () => Unit)
Append a function to perform after the commit happens [details]
param
func - - the function to perform after the commit happens
A Mapper
eq final def eq(arg0 : Object) Boolean AnyRef
equals override def equals(other : Any) Boolean KeyedMapper
fieldByName def fieldByName[T](fieldName : String)
Find the field by name [details]
param
fieldName - -- the name of the field to find
return
- Box[MappedField]
Box[MappedField[T, A]] Mapper
fieldMapperPF def fieldMapperPF(transform : (BaseOwnedMappedField[A]) => NodeSeq) PartialFunction Mapper
finalize protected def finalize Unit AnyRef
flatMapFieldTitleForm def flatMapFieldTitleForm[T](func : (NodeSeq, Box[NodeSeq], NodeSeq) => Seq[T])
flat map the fields titles and forms to generate a list [details]
param
func - called with displayHtml, fieldId, form
List[T] Mapper
getClass final def getClass Class[Any] AnyRef
hashCode def hashCode Int AnyRef
isInstanceOf final def isInstanceOf[T0] Boolean Any
mapFieldTitleForm def mapFieldTitleForm[T](func : (NodeSeq, Box[NodeSeq], NodeSeq) => T)
map the fields titles and forms to generate a list [details]
param
func - called with displayHtml, fieldId, form
List[T] Mapper
ne final def ne(arg0 : Object) Boolean AnyRef
notify final def notify Unit AnyRef
notifyAll final def notifyAll Unit AnyRef
prependField def prependField(pf : PartialFunction) Unit Mapper
runSafe def runSafe[T](f : => T) T Mapper
save def save Boolean Mapper
saveMe def saveMe
Save the instance and return the instance
A Mapper
suplementalJs def suplementalJs(ob : Box[KeyObfuscator])
If the instance calculates any additional fields for JSON object, put the calculated fields here
List[(String, JsExp)] Mapper
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
thisToMappee implicit def thisToMappee(in : Mapper[A]) A Mapper
toForm def toForm(button : Box[String], redoSnippet : (NodeSeq) => NodeSeq, onSuccess : (A) => Unit) NodeSeq Mapper
toForm def toForm(button : Box[String], f : (A) => Any)
Present the model as a form and execute the function on submission of the form [details]
param
f - - the function to execute on form submission
button - - If it's Full, put a submit button on the form with the value of the parameter
return
- the form
NodeSeq Mapper
toForm def toForm(button : Box[String], onSuccess : String)
Present the model as a form and execute the function on submission of the form [details]
param
onSuccess - - redirect to the URL if the model validates, otherwise display the errors
button - - If it's Full, put a submit button on the form with the value of the parameter
return
- the form
NodeSeq Mapper
toString override def toString String Mapper
wait final def wait(arg0 : Long) Unit AnyRef
wait final def wait Unit AnyRef
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2007-2009 Lift Team. All Rights Reserved.