Class PermActor


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

      Constructors 
      Constructor Description
      PermActor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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> fetch​(String key)  
      io.vertx.core.Future<io.vertx.core.json.JsonArray> fetchAsync​(String roleId)  
      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)  
    • Constructor Detail

      • PermActor

        public PermActor()
    • Method Detail

      • 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)