Search in sources :

Example 11 with UiExtensionService

use of org.onosproject.ui.UiExtensionService in project onos by opennetworkinglab.

the class UiGeoMapListCommand method doExecute.

@Override
protected void doExecute() {
    UiExtensionService uxs = get(UiExtensionService.class);
    uxs.getExtensions().forEach(ext -> {
        UiTopoMapFactory mapFactory = ext.topoMapFactory();
        if (mapFactory != null) {
            mapFactory.geoMaps().forEach(m -> print("%s", m));
        }
    });
}
Also used : UiExtensionService(org.onosproject.ui.UiExtensionService) UiTopoMapFactory(org.onosproject.ui.UiTopoMapFactory)

Aggregations

UiExtensionService (org.onosproject.ui.UiExtensionService)11 GET (javax.ws.rs.GET)6 Produces (javax.ws.rs.Produces)5 ByteArrayInputStream (java.io.ByteArrayInputStream)4 InputStream (java.io.InputStream)4 SequenceInputStream (java.io.SequenceInputStream)4 Path (javax.ws.rs.Path)4 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)3 ServiceNotFoundException (org.onlab.osgi.ServiceNotFoundException)3 ArrayNode (com.fasterxml.jackson.databind.node.ArrayNode)2 UiExtension (org.onosproject.ui.UiExtension)2 UiSessionToken (org.onosproject.ui.UiSessionToken)2 UiTokenService (org.onosproject.ui.UiTokenService)2 UiTopoMapFactory (org.onosproject.ui.UiTopoMapFactory)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 SimpleModule (com.fasterxml.jackson.databind.module.SimpleModule)1 IOException (java.io.IOException)1 HashMap (java.util.HashMap)1 IpAddress (org.onlab.packet.IpAddress)1 ClusterService (org.onosproject.cluster.ClusterService)1