类 AuthorInfo
- java.lang.Object
-
- org.apache.iotdb.confignode.persistence.AuthorInfo
-
- 所有已实现的接口:
org.apache.iotdb.commons.snapshot.SnapshotProcessor
public class AuthorInfo extends java.lang.Object implements org.apache.iotdb.commons.snapshot.SnapshotProcessor
-
-
构造器概要
构造器 构造器 说明 AuthorInfo()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.apache.iotdb.common.rpc.thrift.TSStatusauthorNonQuery(AuthorPlan authorPlan)org.apache.iotdb.confignode.rpc.thrift.TPermissionInfoRespcheckUserPrivileges(java.lang.String username, java.util.List<java.lang.String> paths, int permission)voidclear()PermissionInfoRespexecuteListRolePrivileges(AuthorPlan plan)PermissionInfoRespexecuteListRoles(AuthorPlan plan)PermissionInfoRespexecuteListUserPrivileges(AuthorPlan plan)PermissionInfoRespexecuteListUsers(AuthorPlan plan)org.apache.iotdb.confignode.rpc.thrift.TPermissionInfoRespgetUserPermissionInfo(java.lang.String username)Save the user's permission information,Bring back the DataNode for cachingorg.apache.iotdb.confignode.rpc.thrift.TPermissionInfoResplogin(java.lang.String username, java.lang.String password)voidprocessLoadSnapshot(java.io.File snapshotDir)booleanprocessTakeSnapshot(java.io.File snapshotDir)
-
-
-
方法详细资料
-
login
public org.apache.iotdb.confignode.rpc.thrift.TPermissionInfoResp login(java.lang.String username, java.lang.String password)
-
checkUserPrivileges
public org.apache.iotdb.confignode.rpc.thrift.TPermissionInfoResp checkUserPrivileges(java.lang.String username, java.util.List<java.lang.String> paths, int permission)
-
authorNonQuery
public org.apache.iotdb.common.rpc.thrift.TSStatus authorNonQuery(AuthorPlan authorPlan)
-
executeListUsers
public PermissionInfoResp executeListUsers(AuthorPlan plan) throws org.apache.iotdb.commons.auth.AuthException
- 抛出:
org.apache.iotdb.commons.auth.AuthException
-
executeListRoles
public PermissionInfoResp executeListRoles(AuthorPlan plan) throws org.apache.iotdb.commons.auth.AuthException
- 抛出:
org.apache.iotdb.commons.auth.AuthException
-
executeListRolePrivileges
public PermissionInfoResp executeListRolePrivileges(AuthorPlan plan) throws org.apache.iotdb.commons.auth.AuthException
- 抛出:
org.apache.iotdb.commons.auth.AuthException
-
executeListUserPrivileges
public PermissionInfoResp executeListUserPrivileges(AuthorPlan plan) throws org.apache.iotdb.commons.auth.AuthException
- 抛出:
org.apache.iotdb.commons.auth.AuthException
-
processTakeSnapshot
public boolean processTakeSnapshot(java.io.File snapshotDir) throws org.apache.thrift.TException, java.io.IOException- 指定者:
processTakeSnapshot在接口中org.apache.iotdb.commons.snapshot.SnapshotProcessor- 抛出:
org.apache.thrift.TExceptionjava.io.IOException
-
processLoadSnapshot
public void processLoadSnapshot(java.io.File snapshotDir) throws org.apache.thrift.TException, java.io.IOException- 指定者:
processLoadSnapshot在接口中org.apache.iotdb.commons.snapshot.SnapshotProcessor- 抛出:
org.apache.thrift.TExceptionjava.io.IOException
-
clear
public void clear() throws org.apache.iotdb.commons.auth.AuthException- 抛出:
org.apache.iotdb.commons.auth.AuthException
-
getUserPermissionInfo
public org.apache.iotdb.confignode.rpc.thrift.TPermissionInfoResp getUserPermissionInfo(java.lang.String username) throws org.apache.iotdb.commons.auth.AuthExceptionSave the user's permission information,Bring back the DataNode for caching- 参数:
username- The username of the user that needs to be cached- 抛出:
org.apache.iotdb.commons.auth.AuthException
-
-