cn.authing.sdk.java.dto.DataStatementPermissionDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of authing-java-sdk Show documentation
Show all versions of authing-java-sdk Show documentation
java backend sdk for authing
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;
}
}
}