case class ConnectionOperation(username: String, channel: String, chaincode: String, walletPath: Path, networkDescriptionPath: Path) extends ConnectionOperationTrait with Product with Serializable
- Attributes
- protected[de.upb.cs.uc4.hyperledger]
- Alphabetic
- By Inheritance
- ConnectionOperation
- Serializable
- Product
- Equals
- ConnectionOperationTrait
- ConnectionTrait
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ConnectionOperation(username: String, channel: String, chaincode: String, walletPath: Path, networkDescriptionPath: Path)
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
- def approveOperation(operationId: String): String
Submits the "approveOperation" query.
Submits the "approveOperation" query.
- operationId
Identifier for the operation to approve.
- returns
OperationData after the transaction.
- Definition Classes
- ConnectionOperation → ConnectionOperationTrait
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val chaincode: String
- Definition Classes
- ConnectionOperation → ConnectionTrait
- val channel: String
- Definition Classes
- ConnectionOperation → ConnectionTrait
- 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
- ConnectionOperationTrait → ConnectionTrait
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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 getOperations(operationIds: List[String], existingEnrollmentId: String, missingEnrollmentId: String, initiatorEnrollmentId: String, involvedEnrollmentId: String, states: List[String]): String
Submits the "getOperations" query.
Submits the "getOperations" query.
- operationIds
Filter for the operationIds - leave empty to ignore filter
- existingEnrollmentId
Filter for the existingApprovals List - leave empty to ignore filter
- missingEnrollmentId
Filter for the missingApprovals List - leave empty to ignore filter
- initiatorEnrollmentId
Filter for the initiator - leave empty to ignore filter
- involvedEnrollmentId
Logical OR filter for the existingEnrollmentId, missingEnrollmentId and initiatorEnrollmentId - leave empty to ignore filter
- states
Filter for the operation state - leave empty to ignore filter
- returns
Success_state
- Definition Classes
- ConnectionOperation → ConnectionOperationTrait
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- def getProposalApproveOperation(certificate: String, affiliation: String = AFFILIATION, operationId: String): Array[Byte]
Retrieves a proposal for the designated query
Retrieves a proposal for the designated query
- operationId
Identifier for the operation to approve.
- returns
OperationData after the transaction.
- Definition Classes
- ConnectionOperation → ConnectionOperationTrait
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- def getProposalInitiateOperation(certificate: String, affiliation: String = AFFILIATION, initiator: String, contractName: String, transactionName: String, params: Array[String]): Array[Byte]
Retrieves a proposal for the designated query
Retrieves a proposal for the designated query
- initiator
Information about the initiator.
- contractName
Information about the transaction.
- transactionName
Information about the transaction.
- params
Information about the transaction.
- returns
OperationData after the transaction.
- Definition Classes
- ConnectionOperation → ConnectionOperationTrait
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- def getProposalRejectOperation(certificate: String, affiliation: String = AFFILIATION, operationId: String, rejectMessage: String): Array[Byte]
Retrieves a proposal for the designated query
Retrieves a proposal for the designated query
- operationId
Identifier for the operation to reject.
- rejectMessage
The given reason to reject.
- returns
OperationData after the transaction.
- Definition Classes
- ConnectionOperation → ConnectionOperationTrait
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- 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 initiateOperation(initiator: String, contractName: String, transactionName: String, params: String*): String
Submits the "proposeTransaction" query.
Submits the "proposeTransaction" query.
- initiator
Information about the initiator.
- contractName
Information about the transaction.
- transactionName
Information about the transaction.
- params
Information about the transaction.
- returns
OperationData after the transaction.
- Definition Classes
- ConnectionOperation → ConnectionOperationTrait
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- 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
- val networkDescriptionPath: Path
- Definition Classes
- ConnectionOperation → ConnectionTrait
- 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
- ConnectionOperation → ConnectionTrait
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def rejectOperation(operationId: String, rejectMessage: String): String
Submits the "rejectOperation" query.
Submits the "rejectOperation" query.
- operationId
Identifier for the operation to reject.
- rejectMessage
The given reason to reject.
- returns
OperationData after the transaction.
- Definition Classes
- ConnectionOperation → ConnectionOperationTrait
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- 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
- val username: String
- Definition Classes
- ConnectionOperation → ConnectionTrait
- 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()
- val walletPath: Path
- Definition Classes
- ConnectionOperation → ConnectionTrait
- 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])