| 程序包 | 说明 |
|---|---|
| org.apache.iotdb.db.auth.entity | |
| org.apache.iotdb.db.utils |
| 限定符和类型 | 字段和说明 |
|---|---|
static Comparator<PathPrivilege> |
PathPrivilege.REFERENCE_DESCENT_SORTER
Sort PathPrivilege by referenceCnt in descent order.
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<PathPrivilege> |
Role.getPrivilegeList() |
List<PathPrivilege> |
User.getPrivilegeList() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Role.setPrivilegeList(List<PathPrivilege> privilegeList) |
void |
User.setPrivilegeList(List<PathPrivilege> privilegeList) |
| 限定符和类型 | 方法和说明 |
|---|---|
static PathPrivilege |
IOUtils.readPathPrivilege(DataInputStream inputStream,
String encoding,
ThreadLocal<byte[]> strBufferLocal)
Read a PathPrivilege from the given stream.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
IOUtils.writePathPrivilege(OutputStream outputStream,
PathPrivilege pathPrivilege,
String encoding,
ThreadLocal<ByteBuffer> encodingBufferLocal)
Write a PathPrivilege to the given stream.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
AuthUtils.addPrivilege(String path,
int privilegeId,
List<PathPrivilege> privilegeList)
add privilege.
|
static boolean |
AuthUtils.checkPrivilege(String path,
int privilegeId,
List<PathPrivilege> privilegeList)
check privilege.
|
static Set<Integer> |
AuthUtils.getPrivileges(String path,
List<PathPrivilege> privilegeList)
get privileges.
|
static boolean |
AuthUtils.hasPrivilege(String path,
int privilegeId,
List<PathPrivilege> privilegeList)
check if series path has this privilege.
|
static void |
AuthUtils.removePrivilege(String path,
int privilegeId,
List<PathPrivilege> privilegeList)
remove privilege.
|
Copyright © 2022 The Apache Software Foundation. All rights reserved.