Package net.corda.v5.membership
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.