net.liftmodules.salatauth

LoginManager

trait LoginManager[UserType <: ProtoUser, UserIdType] extends AnyRef

Base login manager

In most cases you should use this trait as basic for your login mananges.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LoginManager
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def findUserById(id: UserIdType): Option[UserType]

    Search user by given ID

    Search user by given ID

    id

    user id to be searched

  2. abstract def getUserId(user: UserType): UserIdType

    Returns ID of the given user

Concrete Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def checkSession(req: Box[Req])(implicit m: Manifest[UserIdType]): Unit

    Check if there is an existing session and log user in if it's not expired.

    Check if there is an existing session and log user in if it's not expired. Usually you should setup it as early stateful hook:

    LiftRules.earlyInStateful.append(MyLoginManager.checkSession)
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def currentUser: Box[UserType]

    Returns currently logged in user

  10. def currentUserId: Box[UserIdType]

    Currently logged in user id

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hasPermission(permission: Permission): Boolean

    Checks if the current user has permission

    Checks if the current user has permission

    permission

    required permission

  16. def hasRole(role: String): Boolean

    Checks if the current user has specified role

    Checks if the current user has specified role

    role

    required role

  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def isLoggedIn: Boolean

    Checks if there any user logged in.

  20. def logUserIn(user: UserType, authenticate: Boolean = false, remember: Boolean = false)(implicit m: Manifest[UserIdType]): Unit

    Log user in to system

    Log user in to system

    user

    user to be logged in

    authenticate

    shows if user was authenticated

    remember

    shows if the session shall be created

  21. def logUserOut(): Unit

    Log user out

  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. def onLogIn: List[(UserType) ⇒ Unit]

    List of additional actions to be performed on user login

  26. def onLogOut: List[(Box[UserType]) ⇒ Unit]

    List of additional actions to be performed on user logout.

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. def userAuthenticateded: Boolean

    Returns if the current user was authenticated

  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped