use of org.web3j.quorum.Quorum in project quorum-acceptance-tests by ConsenSys.
the class PermissionService method removeRole.
public Observable<ExecStatusInfo> removeRole(QuorumNetworkProperty.Node node, String org, String role) {
Quorum client = connectionFactory().getConnection(node);
String fromAccount = accountService.getDefaultAccountAddress(node).blockingFirst();
return client.quorumPermissionRemoveRole(org, role, new PrivateTransaction(fromAccount, null, DEFAULT_GAS_LIMIT, null, BigInteger.ZERO, null, null, null)).flowable().toObservable();
}
use of org.web3j.quorum.Quorum in project quorum-acceptance-tests by ConsenSys.
the class PermissionService method updateOrgStatus.
public Observable<ExecStatusInfo> updateOrgStatus(QuorumNetworkProperty.Node node, String org, int status) {
Quorum client = connectionFactory().getConnection(node);
String fromAccount = accountService.getDefaultAccountAddress(node).blockingFirst();
return client.quorumPermissionUpdateOrgStatus(org, status, new PrivateTransaction(fromAccount, null, DEFAULT_GAS_LIMIT, null, BigInteger.ZERO, null, null, null)).flowable().toObservable();
}
use of org.web3j.quorum.Quorum in project quorum-acceptance-tests by ConsenSys.
the class PermissionService method recoverBlacklistedNode.
public Observable<ExecStatusInfo> recoverBlacklistedNode(QuorumNetworkProperty.Node node, String org, String enode) {
Quorum client = connectionFactory().getConnection(node);
String fromAccount = accountService.getDefaultAccountAddress(node).blockingFirst();
return client.quorumPermissionRecoverBlackListedNode(org, enode, new PrivateTransaction(fromAccount, null, DEFAULT_GAS_LIMIT, null, BigInteger.ZERO, null, null, null)).flowable().toObservable();
}
use of org.web3j.quorum.Quorum in project quorum-acceptance-tests by ConsenSys.
the class PermissionService method updateNode.
public Observable<ExecStatusInfo> updateNode(QuorumNetworkProperty.Node node, String org, String enode, int status) {
Quorum client = connectionFactory().getConnection(node);
String fromAccount = accountService.getDefaultAccountAddress(node).blockingFirst();
return client.quorumPermissionUpdateNodeStatus(org, enode, status, new PrivateTransaction(fromAccount, null, DEFAULT_GAS_LIMIT, null, BigInteger.ZERO, null, null, null)).flowable().toObservable();
}
use of org.web3j.quorum.Quorum in project quorum-acceptance-tests by ConsenSys.
the class PermissionService method approveAdminRoleAssignment.
public Observable<ExecStatusInfo> approveAdminRoleAssignment(QuorumNetworkProperty.Node node, String address, String org) {
Quorum client = connectionFactory().getConnection(node);
String fromAccount = accountService.getDefaultAccountAddress(node).blockingFirst();
return client.quorumPermissionApproveAdminRole(org, address, new PrivateTransaction(fromAccount, null, DEFAULT_GAS_LIMIT, null, BigInteger.ZERO, null, null, null)).flowable().toObservable();
}
Aggregations