Packages

case class ConnectionGroup(username: String, channel: String, chaincode: String, walletPath: Path, networkDescriptionPath: Path) extends ConnectionGroupTrait with Product with Serializable

Attributes
protected[de.upb.cs.uc4.hyperledger]
Linear Supertypes
Serializable, Product, Equals, ConnectionGroupTrait, ConnectionTrait, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConnectionGroup
  2. Serializable
  3. Product
  4. Equals
  5. ConnectionGroupTrait
  6. ConnectionTrait
  7. AutoCloseable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConnectionGroup(username: String, channel: String, chaincode: String, walletPath: Path, networkDescriptionPath: Path)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val AFFILIATION: String
    Definition Classes
    ConnectionTrait
  5. 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

    Definition Classes
    ConnectionGroupConnectionGroupTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val chaincode: String
    Definition Classes
    ConnectionGroupConnectionTrait
  8. val channel: String
    Definition Classes
    ConnectionGroupConnectionTrait
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. final def close(): Unit
    Definition Classes
    ConnectionTrait → AutoCloseable
  11. lazy val contract: ContractImpl
    Definition Classes
    ConnectionTrait
  12. final val contractName: String
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. 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])
  15. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. lazy val gateway: GatewayImpl
    Definition Classes
    ConnectionTrait
  17. def getAllGroups: String

    Submits the "getAllGroups" query.

    Submits the "getAllGroups" query.

    returns

    list of admissions matching the filters.

    Definition Classes
    ConnectionGroupConnectionGroupTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  18. 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
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. 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.

    Definition Classes
    ConnectionGroupConnectionGroupTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  21. 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

    Definition Classes
    ConnectionGroupConnectionGroupTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  22. 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

    Definition Classes
    ConnectionGroupConnectionGroupTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  23. 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

    Definition Classes
    ConnectionGroupConnectionGroupTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  24. 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

    Definition Classes
    ConnectionGroupConnectionGroupTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  25. 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

    Definition Classes
    ConnectionGroupConnectionGroupTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  26. 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

    Definition Classes
    ConnectionGroupConnectionGroupTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  27. 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
  28. 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.

    Definition Classes
    ConnectionGroupConnectionGroupTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  29. 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])
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. val networkDescriptionPath: Path
    Definition Classes
    ConnectionGroupConnectionTrait
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. lazy val operationsConnection: Option[ConnectionOperationTrait]
    Definition Classes
    ConnectionTrait
  36. def productElementNames: Iterator[String]
    Definition Classes
    Product
  37. def removeUserFromAllGroups(enrollmentId: String): String

    Submits the "removeUserFromAllGroups" query.

    Submits the "removeUserFromAllGroups" query.

    enrollmentId

    enrollmentId to remove from all groups.

    returns

    Success_state

    Definition Classes
    ConnectionGroupConnectionGroupTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  38. 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

    Definition Classes
    ConnectionGroupConnectionGroupTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  39. 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])
  40. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  41. final def timeoutAttempts(newVal: Int): ConnectionTrait
    Definition Classes
    ConnectionTrait
  42. val timeoutAttempts: Int
    Definition Classes
    ConnectionTrait
  43. final def timeoutMilliseconds(newVal: Int): ConnectionTrait
    Definition Classes
    ConnectionTrait
  44. val timeoutMilliseconds: Int
    Definition Classes
    ConnectionTrait
  45. val username: String
    Definition Classes
    ConnectionGroupConnectionTrait
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  49. val walletPath: Path
    Definition Classes
    ConnectionGroupConnectionTrait
  50. 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])
  51. 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])

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ConnectionGroupTrait

Inherited from ConnectionTrait

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped