Trait

net.liftmodules.salatauth

LoginManager

Related Doc: package salatauth

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Permalink

    Search user by given ID

    Search user by given ID

    id

    user id to be searched

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

    Permalink

    Returns ID of the given user

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

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

    Permalink

    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)
  6. def clone(): AnyRef

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

    Permalink

    Returns currently logged in user

  8. def currentUserId: Box[UserIdType]

    Permalink

    Currently logged in user id

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

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

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

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

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

    Permalink

    Checks if the current user has permission

    Checks if the current user has permission

    permission

    required permission

  14. def hasRole(role: String): Boolean

    Permalink

    Checks if the current user has specified role

    Checks if the current user has specified role

    role

    required role

  15. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  17. def isLoggedIn: Boolean

    Permalink

    Checks if there any user logged in.

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

    Permalink

    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

  19. def logUserOut(): Unit

    Permalink

    Log user out

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

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

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

    Permalink

    List of additional actions to be performed on user login

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

    Permalink

    List of additional actions to be performed on user logout.

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

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. def userAuthenticateded: Boolean

    Permalink

    Returns if the current user was authenticated

  28. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped