cn.authing.sdk.java.dto.ResourceAuthorizedTargetDto 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 ResourceAuthorizedTargetDto {
/**
* 主体类型
*/
@JsonProperty("targetType")
private TargetType targetType;
/**
* 主体唯一标志符
*/
@JsonProperty("targetIdentifier")
private String targetIdentifier;
/**
* 操作列表
*/
@JsonProperty("actions")
private List actions;
public TargetType getTargetType() {
return targetType;
}
public void setTargetType(TargetType targetType) {
this.targetType = targetType;
}
public String getTargetIdentifier() {
return targetIdentifier;
}
public void setTargetIdentifier(String targetIdentifier) {
this.targetIdentifier = targetIdentifier;
}
public List getActions() {
return actions;
}
public void setActions(List actions) {
this.actions = actions;
}
/**
* 主体类型
*/
public static enum TargetType {
@JsonProperty("USER")
USER("USER"),
@JsonProperty("ROLE")
ROLE("ROLE"),
@JsonProperty("GROUP")
GROUP("GROUP"),
@JsonProperty("DEPARTMENT")
DEPARTMENT("DEPARTMENT"),
;
private String value;
TargetType(String value) {
this.value = value;
}
public String getValue() {
return value;
}
}
}