public Collection < String > getChaincodeNamespaceTypes ( ) throws ProposalException { final Lifecycle . QueryNamespaceDefinitionsResult queryNamespaceDefinitionsResult = parsePayload ( ) ; if ( queryNamespaceDefinitionsResult == null ) { return Collections . emptySet ( ) ; } final Map < String , Lifecycle . QueryNamespaceDefinitionsResult . Namespace > namespacesMap = queryNamespaceDefinitionsResult . getNamespacesMap ( ) ; if ( null == namespacesMap ) { return Collections . emptySet ( ) ; } final Set < String > ret = new HashSet <> ( ) ; namespacesMap . forEach ( ( s , namespace ) -> { if ( "Chaincode" . equalsIgnoreCase ( namespace . getType ( ) ) ) { ret . add ( s ) ; } } ) ; return Collections . unmodifiableSet ( ret ) ; }
The names of chaincode that have been committed .