类 PermissionService
java.lang.Object
org.fisco.bcos.sdk.contract.precompiled.permission.PermissionService
public class PermissionService
extends java.lang.Object
-
构造器概要
构造器 构造器 说明 PermissionService(Client client, CryptoKeyPair credential)
-
方法概要
修饰符和类型 方法 说明 RetCode
grantCNSManager(java.lang.String userAddress)
RetCode
grantDeployAndCreateManager(java.lang.String userAddress)
RetCode
grantNodeManager(java.lang.String userAddress)
RetCode
grantPermission(java.lang.String tableName, java.lang.String userAddress)
RetCode
grantPermissionManager(java.lang.String userAddress)
RetCode
grantSysConfigManager(java.lang.String userAddress)
RetCode
grantWrite(java.lang.String contractAddress, java.lang.String userAddress)
java.util.List<PermissionInfo>
listCNSManager()
java.util.List<PermissionInfo>
listDeployAndCreateManager()
java.util.List<PermissionInfo>
listNodeManager()
java.util.List<PermissionInfo>
listPermissionManager()
java.util.List<PermissionInfo>
listSysConfigManager()
static java.util.List<PermissionInfo>
parsePermissionInfo(java.lang.String permissionInfo)
java.util.List<PermissionInfo>
queryPermission(java.lang.String contractAddress)
java.util.List<PermissionInfo>
queryPermissionByTableName(java.lang.String tableName)
RetCode
revokeCNSManager(java.lang.String userAddress)
RetCode
revokeDeployAndCreateManager(java.lang.String userAddress)
RetCode
revokeNodeManager(java.lang.String userAddress)
RetCode
revokePermission(java.lang.String tableName, java.lang.String userAddress)
RetCode
revokePermissionManager(java.lang.String userAddress)
RetCode
revokeSysConfigManager(java.lang.String userAddress)
RetCode
revokeWrite(java.lang.String contractAddress, java.lang.String userAddress)
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
PermissionService
-
-
方法详细资料
-
grantPermission
public RetCode grantPermission(java.lang.String tableName, java.lang.String userAddress) throws ContractException -
revokePermission
public RetCode revokePermission(java.lang.String tableName, java.lang.String userAddress) throws ContractException -
parsePermissionInfo
public static java.util.List<PermissionInfo> parsePermissionInfo(java.lang.String permissionInfo) throws com.fasterxml.jackson.core.JsonProcessingException- 抛出:
com.fasterxml.jackson.core.JsonProcessingException
-
queryPermission
public java.util.List<PermissionInfo> queryPermission(java.lang.String contractAddress) throws ContractException -
grantWrite
public RetCode grantWrite(java.lang.String contractAddress, java.lang.String userAddress) throws ContractException -
revokeWrite
public RetCode revokeWrite(java.lang.String contractAddress, java.lang.String userAddress) throws ContractException -
queryPermissionByTableName
public java.util.List<PermissionInfo> queryPermissionByTableName(java.lang.String tableName) throws ContractException -
grantDeployAndCreateManager
-
revokeDeployAndCreateManager
-
listDeployAndCreateManager
-
grantPermissionManager
-
revokePermissionManager
-
listPermissionManager
-
grantNodeManager
-
revokeNodeManager
-
listNodeManager
-
grantCNSManager
-
revokeCNSManager
-
listCNSManager
-
grantSysConfigManager
-
revokeSysConfigManager
-
listSysConfigManager
-