Class ScUser

java.lang.Object
io.vertx.tp.rbac.logged.ScUser

public class ScUser extends Object
Data in Session for current user Connect to Pool: vertx-web.sessions.habitus for each user session
Author:
Lang
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.vertx.core.Future<ScUser>
    login(io.vertx.core.json.JsonObject data)
     
    static ScUser
    login(io.vertx.ext.auth.User user)
     
    static ScUser
    login(String habitus)
     
    static io.vertx.core.Future<Boolean>
    logout(String habitus)
     
    io.vertx.core.Future<io.vertx.core.json.JsonObject>
     
    io.vertx.core.Future<io.vertx.core.json.JsonObject>
     
    io.vertx.core.Future<io.vertx.core.json.JsonObject>
    profile(io.vertx.core.json.JsonObject profileData)
     
    io.vertx.core.Future<io.vertx.core.json.JsonObject>
     
    io.vertx.core.Future<io.vertx.core.json.JsonArray>
    roles(String profileName)
     
     
    io.vertx.core.Future<io.vertx.core.json.JsonObject>
     
    io.vertx.core.Future<io.vertx.core.json.JsonObject>
    view(String viewKey)
     
    io.vertx.core.Future<io.vertx.core.json.JsonObject>
    view(String viewKey, io.vertx.core.json.JsonObject viewData)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • login

      public static io.vertx.core.Future<ScUser> login(io.vertx.core.json.JsonObject data)
    • login

      public static ScUser login(String habitus)
    • login

      public static ScUser login(io.vertx.ext.auth.User user)
    • logout

      public static io.vertx.core.Future<Boolean> logout(String habitus)
    • user

      public String user()
    • view

      public io.vertx.core.Future<io.vertx.core.json.JsonObject> view()
    • view

      public io.vertx.core.Future<io.vertx.core.json.JsonObject> view(String viewKey)
    • view

      public io.vertx.core.Future<io.vertx.core.json.JsonObject> view(String viewKey, io.vertx.core.json.JsonObject viewData)
    • profile

      public io.vertx.core.Future<io.vertx.core.json.JsonObject> profile()
    • permissions

      public io.vertx.core.Future<io.vertx.core.json.JsonObject> permissions()
    • roles

      public io.vertx.core.Future<io.vertx.core.json.JsonObject> roles()
    • roles

      public io.vertx.core.Future<io.vertx.core.json.JsonArray> roles(String profileName)
    • profile

      public io.vertx.core.Future<io.vertx.core.json.JsonObject> profile(io.vertx.core.json.JsonObject profileData)