Interface MGMContext

  • All Implemented Interfaces:
    net.corda.v5.base.types.LayeredPropertyMap

    
    public interface MGMContext
     implements LayeredPropertyMap
                        

    Part of [MemberInfo], information is provided and added by MGM as part of member acceptance and upon updates (for example membership group status updates).

    Contains information such as the membership status, modification time, etc.

    Example usages:

    • Java:
      
      Set<Map.Entry<String, String>> mgmContextEntries = mgmContext.getEntries();
      String status = mgmContext.parse("corda.status", String.class);
      Boolean isMgm = mgmContext.parseOrNull("corda.mgm", Boolean.class);
      Set<String> additionalInformationSet = mgmContext.parseSet("additional.names", String.class);
      List<Long> additionalInformationList = mgmContext.parseList("additional.numbers", Long.class);
      
    • Kotlin:
      
      val mgmContextEntries = mgmContext.entries
      val status = mgmContext.parse("corda.status", String::class.java)
      val isMgm = mgmContext.parseOrNull("corda.mgm", Boolean::class.java)
      val additionalInformationSet = mgmContext.parseSet("additional.names", String::class.java)
      val additionalInformationList = mgmContext.parseList("additional.numbers", Long::class.java)
      

    Properties are exposed either through properties on interfaces in the public APIs, or internally through extension properties.

    • 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
      • Methods inherited from class net.corda.v5.base.types.LayeredPropertyMap

        get, getEntries, parse, parseList, parseOrNull, parseSet
      • Methods inherited from class java.lang.Object

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

    • Method Detail