Class PermActor

java.lang.Object
cn.vertxup.rbac.api.PermActor

@Queue public class PermActor extends Object
Author:
Lang
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vertx.core.Future<io.vertx.core.json.JsonObject>
    add(io.vertx.core.json.JsonObject body)
     
    io.vertx.core.Future<io.vertx.core.json.JsonArray>
    calculate(io.vertx.up.commune.config.XHeader header)
     
    io.vertx.core.Future<Boolean>
    delete(String key, io.vertx.ext.auth.User user)
     
    io.vertx.core.Future<io.vertx.core.json.JsonObject>
    edit(String key, io.vertx.core.json.JsonObject body)
     
    io.vertx.core.Future<io.vertx.core.json.JsonObject>
     
    io.vertx.core.Future<io.vertx.core.json.JsonArray>
     
    io.vertx.core.Future<io.vertx.core.json.JsonObject>
    saveDefinition(io.vertx.core.json.JsonObject processed, io.vertx.up.commune.config.XHeader header, io.vertx.ext.auth.User user)
     
    io.vertx.core.Future<io.vertx.core.json.JsonArray>
    savePerm(String roleId, io.vertx.core.json.JsonArray permissions)
     
    io.vertx.core.Future<io.vertx.core.json.JsonObject>
    searchUnReady(io.vertx.core.json.JsonObject query, io.vertx.up.commune.config.XHeader header)
     

    Methods inherited from class java.lang.Object

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

    • PermActor

      public PermActor()
  • Method Details

    • calculate

      @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-PERMISSION/GROUP") public io.vertx.core.Future<io.vertx.core.json.JsonArray> calculate(io.vertx.up.commune.config.XHeader header)
    • saveDefinition

      @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-PERMISSION/DEFINITION/SAVING") public io.vertx.core.Future<io.vertx.core.json.JsonObject> saveDefinition(io.vertx.core.json.JsonObject processed, io.vertx.up.commune.config.XHeader header, io.vertx.ext.auth.User user)
    • fetchAsync

      @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-PERMISSION/BY/ROLE") public io.vertx.core.Future<io.vertx.core.json.JsonArray> fetchAsync(String roleId)
    • savePerm

      @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-PERMISSION/SAVING") public io.vertx.core.Future<io.vertx.core.json.JsonArray> savePerm(String roleId, io.vertx.core.json.JsonArray permissions)
    • searchUnReady

      @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-PERMISSION/UN-READY") public io.vertx.core.Future<io.vertx.core.json.JsonObject> searchUnReady(io.vertx.core.json.JsonObject query, io.vertx.up.commune.config.XHeader header)
    • fetch

      @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-PERMISSION/CRUD/READ") public io.vertx.core.Future<io.vertx.core.json.JsonObject> fetch(String key)
    • add

      @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-PERMISSION/CRUD/CREATE") public io.vertx.core.Future<io.vertx.core.json.JsonObject> add(io.vertx.core.json.JsonObject body)
    • edit

      @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-PERMISSION/CRUD/UPDATE") public io.vertx.core.Future<io.vertx.core.json.JsonObject> edit(String key, io.vertx.core.json.JsonObject body)
    • delete

      @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-PERMISSION/CRUD/DELETE") public io.vertx.core.Future<Boolean> delete(String key, io.vertx.ext.auth.User user)