Class AuthorInfo
java.lang.Object
org.apache.iotdb.confignode.persistence.AuthorInfo
- All Implemented Interfaces:
SnapshotProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorNonQuery(AuthorPlan authorPlan) checkRoleOfUser(String username, String rolename) voidcheckUserPrivilegeGrantOpt(String username, List<PartialPath> paths, int permission) checkUserPrivileges(String username, List<PartialPath> paths, int permission) voidclear()generateAuthizedPTree(String username, int permission) getUserPermissionInfo(String username) Save the user's permission information,Bring back the DataNode for cachingvoidprocessLoadSnapshot(File snapshotDir) booleanprocessTakeSnapshot(File snapshotDir)
-
Constructor Details
-
AuthorInfo
public AuthorInfo()
-
-
Method Details
-
login
-
checkUserPrivileges
public TPermissionInfoResp checkUserPrivileges(String username, List<PartialPath> paths, int permission) -
authorNonQuery
-
executeListUsers
- Throws:
AuthException
-
executeListRoles
- Throws:
AuthException
-
executeListRolePrivileges
- Throws:
AuthException
-
executeListUserPrivileges
- Throws:
AuthException
-
generateAuthizedPTree
public TAuthizedPatternTreeResp generateAuthizedPTree(String username, int permission) throws AuthException - Throws:
AuthException
-
checkUserPrivilegeGrantOpt
public TPermissionInfoResp checkUserPrivilegeGrantOpt(String username, List<PartialPath> paths, int permission) throws AuthException - Throws:
AuthException
-
checkRoleOfUser
- Throws:
AuthException
-
processTakeSnapshot
public boolean processTakeSnapshot(File snapshotDir) throws org.apache.thrift.TException, IOException - Specified by:
processTakeSnapshotin interfaceSnapshotProcessor- Throws:
org.apache.thrift.TExceptionIOException
-
processLoadSnapshot
- Specified by:
processLoadSnapshotin interfaceSnapshotProcessor- Throws:
org.apache.thrift.TExceptionIOException
-
clear
- Throws:
AuthException
-
getUserPermissionInfo
Save the user's permission information,Bring back the DataNode for caching- Parameters:
username- The username of the user that needs to be cached- Throws:
AuthException
-
checkUserPathPrivilege
public void checkUserPathPrivilege()
-