cn.authing.sdk.java.dto.GetAuthorizedResourcesDto 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 GetAuthorizedResourcesDto {
/**
* 目标对象类型:
* - `USER`: 用户
* - `ROLE`: 角色
* - `GROUP`: 分组
* - `DEPARTMENT`: 部门
*
*/
@JsonProperty("targetType")
private String targetType;
/**
* 目标对象的唯一标志符:
* - 如果是用户,为用户的 ID,如 `6343b98b7cfxxx9366e9b7c`
* - 如果是角色,为角色的 code,如 `admin`
* - 如果是分组,为分组的 code,如 `developer`
* - 如果是部门,为部门的 ID,如 `6343bafc019xxxx889206c4c`
*
*/
@JsonProperty("targetIdentifier")
private String targetIdentifier;
/**
* 所属权限分组(权限空间)的 Code,不传获取默认权限分组。
*/
@JsonProperty("namespace")
private String namespace;
/**
* 限定资源类型,如数据、API、按钮、菜单
*/
@JsonProperty("resourceType")
private String resourceType;
/**
* 限定查询的资源列表,如果指定,只会返回所指定的资源列表。
*
* resourceList 参数支持前缀匹配,例如:
* - 授权了一个资源为 `books:123`,可以通过 `books:*` 来匹配;
* - 授权了一个资源为 `books:fictions_123`,可以通过 `books:fictions_` 来匹配;
*
*/
@JsonProperty("resourceList")
private String resourceList;
/**
* 是否获取被拒绝的资源
*/
@JsonProperty("withDenied")
private Boolean withDenied;
public String getTargetType() {
return targetType;
}
public void setTargetType(String targetType) {
this.targetType = targetType;
}
public String getTargetIdentifier() {
return targetIdentifier;
}
public void setTargetIdentifier(String targetIdentifier) {
this.targetIdentifier = targetIdentifier;
}
public String getNamespace() {
return namespace;
}
public void setNamespace(String namespace) {
this.namespace = namespace;
}
public String getResourceType() {
return resourceType;
}
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
public String getResourceList() {
return resourceList;
}
public void setResourceList(String resourceList) {
this.resourceList = resourceList;
}
public Boolean getWithDenied() {
return withDenied;
}
public void setWithDenied(Boolean withDenied) {
this.withDenied = withDenied;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy