net.liftweb.proto

ProtoUser

trait ProtoUser extends AnyRef

A prototypical user class with abstractions to the underlying storage

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ProtoUser
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Type Members

  1. trait FieldPointerBridge extends AnyRef

    Attributes
    protected
  2. type FieldPointerType

    A generic representation of a field.

    A generic representation of a field. For example, this represents the abstract "name" field and is used along with an instance of TheCrudType to compute the BaseField that is the "name" field on the specific instance of TheCrudType

    Attributes
    abstract
  3. case class MenuItem (name: String, path: List[String], loggedIn: Boolean) extends Product with Serializable

    A helper class that holds menu items for the path

  4. type TheUserType

    The underlying record for the User

    The underlying record for the User

    Attributes
    abstract
  5. trait UserBridge extends AnyRef

    Bridges from TheUserType to methods used in this class

Abstract Value Members

  1. implicit def buildFieldBridge (from: FieldPointerType): FieldPointerBridge

    Based on a FieldPointer, build a FieldPointerBridge

    Based on a FieldPointer, build a FieldPointerBridge

    Attributes
    protected implicit abstract
  2. def computeFieldFromPointer (instance: TheUserType, pointer: FieldPointerType): Box[BaseField]

    Given an instance of TheCrudType and FieldPointerType, convert that to an actual instance of a BaseField on the instance of TheCrudType

    Given an instance of TheCrudType and FieldPointerType, convert that to an actual instance of a BaseField on the instance of TheCrudType

    Attributes
    protected abstract
  3. def createNewUserInstance (): TheUserType

    Create a new instance of the User

    Create a new instance of the User

    Attributes
    protected abstract
  4. def editFields : List[FieldPointerType]

    The list of fields presented to the user for editing

    The list of fields presented to the user for editing

    Attributes
    abstract
  5. def findUserByUniqueId (id: String): Box[TheUserType]

    Given a unique id, find the user

    Given a unique id, find the user

    Attributes
    protected abstract
  6. def findUserByUserName (username: String): Box[TheUserType]

    Given an username (probably email address), find the user

    Given an username (probably email address), find the user

    Attributes
    protected abstract
  7. def signupFields : List[FieldPointerType]

    The list of fields presented to the user at sign-up

    The list of fields presented to the user at sign-up

    Attributes
    abstract
  8. implicit def typeToBridge (in: TheUserType): UserBridge

    Convert an instance of TheUserType to the Bridge trait

    Convert an instance of TheUserType to the Bridge trait

    Attributes
    protected implicit abstract
  9. def userFromStringId (id: String): Box[TheUserType]

    Given a String representing the User ID, find the user

    Given a String representing the User ID, find the user

    Attributes
    protected abstract

Concrete Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. object AddUserMenusAfter extends LocParam[Any] with Product with Serializable

    Insert this LocParam into your menu if you want the User's menu items to be inserted at the same level and after the item

  7. object AddUserMenusHere extends LocParam[Any] with Product with Serializable

    replace the menu that has this LocParam with the User's menu items

  8. object AddUserMenusUnder extends LocParam[Any] with Product with Serializable

    Insert this LocParam into your menu if you want the User's menu items to be children of that menu

  9. lazy val ItemList : List[MenuItem]

  10. def actionsAfterSignup (theUser: TheUserType, func: () ⇒ Nothing): Nothing

    Override this method to do something else after the user signs up

    Override this method to do something else after the user signs up

    Attributes
    protected
  11. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  12. var autologinFunc : Box[() ⇒ Unit]

    This function is given a chance to log in a user programmatically when needed

  13. def basePath : List[String]

    The base path for the user related URLs.

    The base path for the user related URLs. Override this method to change the base path

  14. def bccEmail : Box[String]

  15. def capturePreLoginState (): () ⇒ Unit

    If there's any state that you want to capture pre-login to be set post-login (the session is destroyed), then set the state here.

    If there's any state that you want to capture pre-login to be set post-login (the session is destroyed), then set the state here. Just make a function that captures the state... that function will be applied post login.

    Attributes
    protected
  16. def changePassword : NodeSeq

  17. def changePasswordMenuLoc : Box[Menu]

    The menu item for changing password (make this "Empty" to disable)

  18. def changePasswordMenuLocParams : List[LocParam[Unit]]

    The LocParams for the menu item for changing password.

    The LocParams for the menu item for changing password. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!

    Attributes
    protected
  19. lazy val changePasswordPath : List[String]

    The computed path for change password screen

  20. def changePasswordSuffix : String

    The path suffix for the change password screen

  21. def changePasswordXhtml : Elem

  22. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. def createUserMenuLoc : Box[Menu]

    The menu item for creating the user/sign up (make this "Empty" to disable)

  24. def createUserMenuLocParams : List[LocParam[Unit]]

    The LocParams for the menu item for creating the user/sign up.

    The LocParams for the menu item for creating the user/sign up. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!

    Attributes
    protected
  25. def currentUser : Box[TheUserType]

  26. def currentUserId : Box[String]

  27. def destroySessionOnLogin : Boolean

    By default, destroy the session on login.

    By default, destroy the session on login. Change this is some of the session information needs to be preserved.

    Attributes
    protected
  28. def edit : NodeSeq

  29. object editFunc extends RequestVar[Box[() ⇒ NodeSeq]]

  30. lazy val editPath : List[String]

    The computed path for the edit screen

  31. def editSuffix : String

    The path suffix for the edit screen

  32. def editUserMenuLoc : Box[Menu]

    The menu item for editing the user (make this "Empty" to disable)

  33. def editUserMenuLocParams : List[LocParam[Unit]]

    The LocParams for the menu item for editing the user.

    The LocParams for the menu item for editing the user. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!

    Attributes
    protected
  34. def editXhtml (user: TheUserType): Elem

  35. def emailFrom : String

  36. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  37. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  38. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  39. def generateResetEmailBodies (user: TheUserType, resetLink: String): List[MailBodyType]

    Generate the mail bodies to send with the password reset link.

    Generate the mail bodies to send with the password reset link. By default, just an HTML mail body is generated by calling passwordResetMailBody but you can send additional or alternative mail by overriding this method.

    Attributes
    protected
  40. def generateValidationEmailBodies (user: TheUserType, resetLink: String): List[MailBodyType]

    Generate the mail bodies to send with the valdiation link.

    Generate the mail bodies to send with the valdiation link. By default, just an HTML mail body is generated by calling signupMailBody but you can send additional or alternative mail by override this method.

    Attributes
    protected
  41. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  42. def globalUserLocParams : List[LocParam[Unit]]

    If you want to include a LocParam (e.

    If you want to include a LocParam (e.g. LocGroup) on all the User menus, add them here

    Attributes
    protected
  43. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  44. def homePage : String

    The application's home page

  45. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  46. def localForm (user: TheUserType, ignorePassword: Boolean, fields: List[FieldPointerType]): NodeSeq

    Attributes
    protected
  47. def logUserIdIn (id: String): Unit

  48. def logUserIn (who: TheUserType): Unit

  49. def logUserIn (who: TheUserType, postLogin: () ⇒ Nothing): Nothing

  50. def logUserOut (): Unit

  51. def loggedIn_? : Boolean

  52. def login : NodeSeq

  53. def loginFirst : If

    A Menu.

    A Menu.LocParam for testing if the user is logged in and if they're not, redirect them to the login page

  54. def loginMenuLoc : Box[Menu]

    The menu item for login (make this "Empty" to disable)

  55. def loginMenuLocParams : List[LocParam[Unit]]

    The LocParams for the menu item for login.

    The LocParams for the menu item for login. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!

    Attributes
    protected
  56. def loginPageURL : String

    Return the URL of the "login" page

  57. lazy val loginPath : List[String]

    The computed path for the login screen

  58. object loginRedirect extends SessionVar[Box[String]]

    If you want to redirect a user to a different page after login, put the page here

  59. def loginSuffix : String

    The path suffix for the login screen

  60. def loginXhtml : Elem

  61. def logout : Nothing

  62. def logoutCurrentUser : Unit

  63. def logoutMenuLoc : Box[Menu]

    The menu item for logout (make this "Empty" to disable)

  64. def logoutMenuLocParams : List[LocParam[Unit]]

    The LocParams for the menu item for logout.

    The LocParams for the menu item for logout. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!

    Attributes
    protected
  65. lazy val logoutPath : List[String]

    The computed pat for logout

  66. def logoutSuffix : String

    The path suffix for the logout screen

  67. def lostPassword : NodeSeq

  68. def lostPasswordMenuLoc : Box[Menu]

    The menu item for lost password (make this "Empty" to disable)

  69. def lostPasswordMenuLocParams : List[LocParam[Unit]]

    The LocParams for the menu item for lost password.

    The LocParams for the menu item for lost password. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!

    Attributes
    protected
  70. lazy val lostPasswordPath : List[String]

    The computed path for the lost password screen

  71. def lostPasswordSuffix : String

    The path suffix for the lost password screen

  72. def lostPasswordXhtml : Elem

  73. def menuNameSuffix : String

    If you have more than 1 ProtoUser in your application, you'll need to distinguish the menu names.

    If you have more than 1 ProtoUser in your application, you'll need to distinguish the menu names. Do so by changing the menu name suffix so that there are no name clashes

    Attributes
    protected
  74. def menus : List[Menu]

    An alias for the sitemap property

  75. def mutateUserOnEdit (user: TheUserType): TheUserType

    If there's any mutation to do to the user on retrieval for editting, override this method and mutate the user.

    If there's any mutation to do to the user on retrieval for editting, override this method and mutate the user. This can be used to pull query parameters from the request and assign certain fields. Issue #722

    user

    the user to mutate

    returns

    the mutated user

    Attributes
    protected
  76. def mutateUserOnSignup (user: TheUserType): TheUserType

    If there's any mutation to do to the user on creation for signup, override this method and mutate the user.

    If there's any mutation to do to the user on creation for signup, override this method and mutate the user. This can be used to pull query parameters from the request and assign certain fields. . Issue #722

    user

    the user to mutate

    returns

    the mutated user

    Attributes
    protected
  77. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  78. def niceName (inst: TheUserType): String

    Get a nice name for the user

  79. def niceNameWEmailLink (inst: TheUserType): Elem

    Get an email link for the user

  80. def notLoggedIn_? : Boolean

    Inverted loggedIn_?

  81. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  82. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  83. var onLogIn : List[(TheUserType) ⇒ Unit]

  84. var onLogOut : List[(Box[TheUserType]) ⇒ Unit]

  85. def passwordReset (id: String): NodeSeq

  86. def passwordResetEmailSubject : String

  87. def passwordResetMailBody (user: TheUserType, resetLink: String): Elem

  88. lazy val passwordResetPath : List[String]

    The computed path for the reset password screen

  89. def passwordResetSuffix : String

    The path suffix for the reset password screen

  90. def passwordResetXhtml : Elem

  91. def resetPasswordMenuLoc : Box[Menu]

    The menu item for resetting the password (make this "Empty" to disable)

  92. def resetPasswordMenuLocParams : List[LocParam[Unit]]

    The LocParams for the menu item for resetting the password.

    The LocParams for the menu item for resetting the password. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!

    Attributes
    protected
  93. def screenWrap : Box[Node]

    What template are you going to wrap the various nodes in

  94. def sendPasswordReset (email: String): Unit

    Send password reset email to the user.

    Send password reset email to the user. The XHTML version of the mail body is generated by calling passwordResetMailBody. You can customize the mail sent to users by overriding generateResetEmailBodies to send non-HTML mail or alternative mail bodies.

  95. def sendValidationEmail (user: TheUserType): Unit

    Send validation email to the user.

    Send validation email to the user. The XHTML version of the mail body is generated by calling signupMailBody. You can customize the mail sent to users by override generateValidationEmailBodies to send non-HTML mail or alternative mail bodies.

  96. def shortName (inst: TheUserType): String

    Get a nice name for the user

  97. lazy val signUpPath : List[String]

    The computed path for the sign up screen

  98. def signUpSuffix : String

    The path suffix for the sign up screen

  99. def signup : NodeSeq

  100. object signupFunc extends RequestVar[Box[() ⇒ NodeSeq]]

    Attributes
    protected
  101. def signupMailBody (user: TheUserType, validationLink: String): Elem

  102. def signupMailSubject : String

  103. def signupXhtml (user: TheUserType): Elem

  104. lazy val sitemap : List[Menu]

  105. def sitemapMutator : (SiteMap) ⇒ SiteMap

    The SiteMap mutator function

  106. def skipEmailValidation : Boolean

  107. def snarfLastItem : String

    Attributes
    protected
  108. def superUser_? : Boolean

    Is there a user logged in and are they a superUser?

  109. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  110. def testLoggedIn (page: String): Boolean

  111. lazy val testLogginIn : If

    A Menu.

    A Menu.LocParam to test if the user is logged in

  112. lazy val testSuperUser : If

    A Menu.

    A Menu.LocParam to test if the user is a super user

  113. def thePath (end: String): List[String]

    Calculate the path given a suffix by prepending the basePath to the suffix

    Calculate the path given a suffix by prepending the basePath to the suffix

    Attributes
    protected
  114. def toString (): String

    Definition Classes
    AnyRef → Any
  115. def userMenu : List[Node]

  116. def userNameFieldString : String

    How do we prompt the user for the username.

    How do we prompt the user for the username. By default, it's S.??("email.address"), you can can change it to something else

  117. def userNameNotFoundString : String

    The string that's generated when the user name is not found.

    The string that's generated when the user name is not found. By default: S.??("email.address.not.found")

  118. def validateSignup (user: TheUserType): List[FieldError]

    Override this method to validate the user signup (eg by adding captcha verification)

  119. def validateUser (id: String): NodeSeq

  120. def validateUserMenuLoc : Box[Menu]

    The menu item for validating a user (make this "Empty" to disable)

  121. def validateUserMenuLocParams : List[LocParam[Unit]]

    The LocParams for the menu item for validating a user.

    The LocParams for the menu item for validating a user. Overwrite in order to add custom LocParams. Attention: Not calling super will change the default behavior!

    Attributes
    protected
  122. lazy val validateUserPath : List[String]

    The calculated path to the user validation screen

  123. def validateUserSuffix : String

    The path suffix for the validate user screen

  124. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  127. def wrapIt (in: NodeSeq): NodeSeq

    Attributes
    protected

Inherited from AnyRef

Inherited from Any