Class PermissionManager
java.lang.Object
org.apache.iotdb.confignode.manager.PermissionManager
Manager permission read and operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckRoleOfUser(String username, String rolename) voidcheckUserPrivilegeGrantOpt(String username, List<PartialPath> paths, int permission) checkUserPrivileges(String username, List<PartialPath> paths, int permission) fetchAuthizedPTree(String username, int permission) operatePermission(AuthorPlan authorPlan, boolean isGeneratedByPipe) Write permission.queryPermission(AuthorReadPlan authorPlan) Query for permissions.
-
Constructor Details
-
PermissionManager
-
-
Method Details
-
operatePermission
Write permission.- Parameters:
authorPlan- AuthorReqisGeneratedByPipe- whether the plan is operated by pipe receiver- Returns:
- TSStatus
-
queryPermission
Query for permissions.- Parameters:
authorPlan- AuthorReq- Returns:
- PermissionInfoResp
-
login
-
checkUserPrivileges
public TPermissionInfoResp checkUserPrivileges(String username, List<PartialPath> paths, int permission) -
fetchAuthizedPTree
public TAuthizedPatternTreeResp fetchAuthizedPTree(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
-
checkUserPathPrivilege
public void checkUserPathPrivilege()
-