All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.authing.sdk.java.dto.DataStatementPermissionDto Maven / Gradle / Ivy

There is a newer version: 3.1.10
Show newest version
package cn.authing.sdk.java.dto;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;


public class DataStatementPermissionDto {
    /**
     * 数据资源权限操作:ALLOW(允许)/DENY(拒绝)
     */
    @JsonProperty("effect")
    private Effect effect;
    /**
     * 资源权限列表,字符串数据资源和数组数据资源,没有 path 路径
     */
    @JsonProperty("permissions")
    private List permissions;

    public Effect getEffect() {
        return effect;
    }
    public void setEffect(Effect effect) {
        this.effect = effect;
    }

    public List getPermissions() {
        return permissions;
    }
    public void setPermissions(List permissions) {
        this.permissions = permissions;
    }


    /**
     * 数据资源权限操作:ALLOW(允许)/DENY(拒绝)
     */
    public static enum Effect {

        @JsonProperty("DENY")
        DENY("DENY"),

        @JsonProperty("ALLOW")
        ALLOW("ALLOW"),
        ;

        private String value;

        Effect(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy