Convert the model to a JavaScript object
Convert the model to a JavaScript object
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
Can this model object be deleted?
Can this model object be deleted?
Delete the model from the RDBMS
Delete the model from the RDBMS
Append a function to perform after the commit happens
Append a function to perform after the commit happens
- the function to perform after the commit happens
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") }
The email first name
The email first name
Find the field by name
Find the field by name
-- the name of the field to find
Box[MappedField]
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") }
The string name for the first name field
The string name for the first name field
flat map the fields titles and forms to generate a list
flat map the fields titles and forms to generate a list
called with displayHtml, fieldId, form
flat map the fields titles and forms to generate a list
flat map the fields titles and forms to generate a list
called with displayHtml, fieldId, form
Get the fields (in order) for displaying a form
Get the fields (in order) for displaying a form
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") }
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") }
The last name string
The last name string
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") }
The string for the locale field
The string for the locale field
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
map the fields titles and forms to generate a list
map the fields titles and forms to generate a list
called with displayHtml, fieldId, form
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") }
The display name for the password field
The display name for the password field
Regular expression to get user roles names
User Roles LDAP search filter
Save the instance and return the instance
Save the instance and return the instance
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") }
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
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") }
The string for the timezone field
The string for the timezone field
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
- If it's Full, put a submit button on the form with the value of the parameter
- the function to execute on form submission
the form
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
- If it's Full, put a submit button on the form with the value of the parameter
- redirect to the URL if the model validates, otherwise display the errors
the form
Present the model as a HTML using the same formatting as toForm
Present the model as a HTML using the same formatting as toForm
the html view of the model
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") }
Convert the id to a String
Convert the id to a String
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") }
(Since version 2.6) Use appendFieldTransform with CssSels instead.
(Since version 2.6) Use fieldMapperTransforms with CssSels instead.
(Since version 2.6) Use fieldTransforms with CssSels instead.
(Since version 2.6) Use prependFieldTransform with CssSels instead.