trait ConnectionGroupTrait extends ConnectionTrait
- Alphabetic
- By Inheritance
- ConnectionGroupTrait
- ConnectionTrait
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def addUserToGroup(enrollmentId: String, groupId: String): String
Submits the "addUserToGroup" query.
Submits the "addUserToGroup" query.
- enrollmentId
Information about the enrollmentId.
- groupId
Information about the groupId.
- returns
ledger state
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- abstract val chaincode: String
- Definition Classes
- ConnectionTrait
- abstract val channel: String
- Definition Classes
- ConnectionTrait
- abstract def getAllGroups: String
Submits the "getAllGroups" query.
Submits the "getAllGroups" query.
- returns
list of admissions matching the filters.
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- abstract def getGroupsForUser(enrollmentId: String): String
Submits the "getGroupsForUser" query.
Submits the "getGroupsForUser" query.
- enrollmentId
enrollmentId to filter for.
- returns
list of admissions matching the filters.
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- abstract def getProposalAddUserToGroup(certificate: String, affiliation: String = AFFILIATION, enrollmentId: String, groupId: String): (String, Array[Byte])
Retrieves a proposal for the designated query Also submits an approval for the transaction as the current user (admin).
Retrieves a proposal for the designated query Also submits an approval for the transaction as the current user (admin).
- enrollmentId
Information about the enrollmentId.
- groupId
Information about the groupId.
- returns
Proposal and transactionId
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- abstract def getProposalGetAllGroups(certificate: String, affiliation: String = AFFILIATION): (String, Array[Byte])
Retrieves a proposal for the designated query Also submits an approval for the transaction as the current user (admin).
Retrieves a proposal for the designated query Also submits an approval for the transaction as the current user (admin).
- returns
Proposal and transactionId
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- abstract def getProposalGetGroupsForUser(certificate: String, affiliation: String = AFFILIATION, enrollmentId: String): (String, Array[Byte])
Retrieves a proposal for the designated query Also submits an approval for the transaction as the current user (admin).
Retrieves a proposal for the designated query Also submits an approval for the transaction as the current user (admin).
- enrollmentId
enrollmentId to filter for.
- returns
Proposal and transactionId
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- abstract def getProposalGetUsersForGroup(certificate: String, affiliation: String = AFFILIATION, groupId: String): (String, Array[Byte])
Retrieves a proposal for the designated query Also submits an approval for the transaction as the current user (admin).
Retrieves a proposal for the designated query Also submits an approval for the transaction as the current user (admin).
- groupId
groupId to filter for.
- returns
Proposal and transactionId
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- abstract def getProposalRemoveUserFromAllGroups(certificate: String, affiliation: String = AFFILIATION, enrollmentId: String): (String, Array[Byte])
Retrieves a proposal for the designated query Also submits an approval for the transaction as the current user (admin).
Retrieves a proposal for the designated query Also submits an approval for the transaction as the current user (admin).
- enrollmentId
enrollmentId to remove.
- returns
Proposal and transactionId
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- abstract def getProposalRemoveUserFromGroup(certificate: String, affiliation: String = AFFILIATION, enrollmentId: String, groupId: String): (String, Array[Byte])
Retrieves a proposal for the designated query Also submits an approval for the transaction as the current user (admin).
Retrieves a proposal for the designated query Also submits an approval for the transaction as the current user (admin).
- enrollmentId
enrollmentId to remove.
- groupId
groupId from which user is removed.
- returns
Proposal and transactionId
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- abstract def getUsersForGroup(groupId: String): String
Submits the "getUsersForGroup" query.
Submits the "getUsersForGroup" query.
- groupId
groupId to filter for.
- returns
list of admissions matching the filters.
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- abstract val networkDescriptionPath: Path
- Definition Classes
- ConnectionTrait
- abstract def removeUserFromAllGroups(enrollmentId: String): String
Submits the "removeUserFromAllGroups" query.
Submits the "removeUserFromAllGroups" query.
- enrollmentId
enrollmentId to remove from all groups.
- returns
Success_state
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- abstract def removeUserFromGroup(enrollmentId: String, groupId: String): String
Submits the "removeUserFromGroup" query.
Submits the "removeUserFromGroup" query.
- enrollmentId
enrollmentId to remove.
- groupId
groupId from which user is removed.
- returns
Success_state
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- abstract val username: String
- Definition Classes
- ConnectionTrait
- abstract val walletPath: Path
- Definition Classes
- ConnectionTrait
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val AFFILIATION: String
- Definition Classes
- ConnectionTrait
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def close(): Unit
- Definition Classes
- ConnectionTrait → AutoCloseable
- lazy val contract: ContractImpl
- Definition Classes
- ConnectionTrait
- final val contractName: String
- Definition Classes
- ConnectionGroupTrait → ConnectionTrait
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def executeTransaction(jsonOperationData: String, timeoutMilliseconds: Int = 30000, timeoutAttempts: Int = Int.MaxValue): String
Submits a given approval transaction and it's corresponding "real" transaction
Submits a given approval transaction and it's corresponding "real" transaction
- jsonOperationData
operationData json containing transactionInfo
- returns
Tuple containing (approvalResult, realTransactionResult)
- Definition Classes
- ConnectionTrait
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- lazy val gateway: GatewayImpl
- Definition Classes
- ConnectionTrait
- def getChaincodeVersion: String
Gets the version returned by the designated contract.
Gets the version returned by the designated contract. By default all contracts return the version of the chaincode.
- returns
String containing versionInfo
- Definition Classes
- ConnectionTrait
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getUnsignedTransaction(proposalBytes: Array[Byte], signatureBytes: Array[Byte]): Array[Byte]
Trades a proposal plus signature for a new transaction that can be signed.
Trades a proposal plus signature for a new transaction that can be signed.
- proposalBytes
The original proposal for which a transaction shall be created
- signatureBytes
The signature of the original proposal
- returns
The newly created transaction.
- Definition Classes
- ConnectionTrait
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def internalApproveAsCurrentAndGetProposalProposeTransaction(certificate: String, affiliation: String, transactionName: String, params: String*): (String, Array[Byte])
- Attributes
- protected
- Definition Classes
- ConnectionTrait
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.NetworkExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- lazy val operationsConnection: Option[ConnectionOperationTrait]
- Definition Classes
- ConnectionTrait
- def submitSignedTransaction(transactionBytes: Array[Byte], signature: Array[Byte]): String
Submits a given approval transaction and it's corresponding "real" transaction
Submits a given approval transaction and it's corresponding "real" transaction
- transactionBytes
approvalTransaction bytes submitted
- signature
the signature authenticating the user
- returns
Tuple containing (approvalResult, realTransactionResult)
- Definition Classes
- ConnectionTrait
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def timeoutAttempts(newVal: Int): ConnectionTrait
- Definition Classes
- ConnectionTrait
- val timeoutAttempts: Int
- Definition Classes
- ConnectionTrait
- final def timeoutMilliseconds(newVal: Int): ConnectionTrait
- Definition Classes
- ConnectionTrait
- val timeoutMilliseconds: Int
- Definition Classes
- ConnectionTrait
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wrapEvaluateTransaction(transactionName: String, params: String*): String
Wrapper for an evaluation transaction Translates the result byte-array to a string and throws an error if said string contains an error.
Wrapper for an evaluation transaction Translates the result byte-array to a string and throws an error if said string contains an error.
- transactionName
transaction to call
- params
parameters to feed into transaction
- returns
result as a string
- Attributes
- protected
- Definition Classes
- ConnectionTrait
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait])
- final def wrapSubmitTransaction(transient: Boolean, transactionName: String, params: String*): String
Wrapper for a submission transaction Translates the result byte-array to a string and throws an error if said string contains an error.
Wrapper for a submission transaction Translates the result byte-array to a string and throws an error if said string contains an error.
- transient
boolean flag to determine transaction to be transient or not.
- transactionName
transaction to call
- params
parameters to feed into transaction
- returns
result as a string
- Attributes
- protected
- Definition Classes
- ConnectionTrait
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait])