Interface DealState

  • All Implemented Interfaces:
    net.corda.core.contracts.ContractState , net.corda.core.contracts.LinearState

    
    public interface DealState
     implements LinearState
                        

    Interface representing an agreement that exposes various attributes that are common. Implementing it simplifies implementation of general flows that manipulate many agreement types.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract TransactionBuilder generateAgreement(Party notary) Generate a partial transaction representing an agreement (command) to this deal, allowing a general deal/agreement flow to generate the necessary transaction for potential implementations.
      • Methods inherited from class net.corda.core.contracts.LinearState

        getLinearId
      • Methods inherited from class net.corda.core.contracts.ContractState

        getParticipants
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • generateAgreement

         abstract TransactionBuilder generateAgreement(Party notary)

        Generate a partial transaction representing an agreement (command) to this deal, allowing a general deal/agreement flow to generate the necessary transaction for potential implementations.

        TODO: Currently this is the "inception" transaction but in future an offer of some description might be an input state ref

        TODO: This should more likely be a method on the Contract (on a common interface) and the changes to reference a Contract instance from a ContractState are imminent, at which point we can move this out of here.