This commit is contained in:
许晓东
2021-09-03 19:20:02 +08:00
parent b347566dad
commit 4d26a97b63
8 changed files with 240 additions and 8 deletions

View File

@@ -0,0 +1,37 @@
package com.xuxd.kafka.console.beans.dto;
import com.xuxd.kafka.console.beans.AclEntry;
import lombok.Data;
/**
* kafka-console-ui.
*
* @author xuxd
* @date 2021-09-03 19:07:11
**/
@Data
public class AddAuthDTO {
private String resourceType;
private String resourceName = null;
private String username = null;
private String host;
private String operation;
private String permissionType;
public AclEntry toAclEntry() {
AclEntry entry = new AclEntry();
entry.setResourceType(resourceType);
entry.setName(resourceName);
entry.setPrincipal(username);
entry.setHost(host);
entry.setOperation(operation);
entry.setPermissionType(permissionType);
return entry;
}
}