Search in sources :

Example 1 with ServiceIdNode

use of org.eclipse.ecf.remoteserviceadmin.ui.rsa.model.ServiceIdNode in project ecf by eclipse.

the class RemoteServiceAdminView method updateExports.

private void updateExports(ExportedServicesRootNode exportedRoot) {
    RemoteServiceAdmin rsa = getLocalRSA();
    if (rsa != null && exportedRoot != null) {
        exportedRoot.clearChildren();
        List<ExportRegistration> exportRegistrations = rsa.getExportedRegistrations();
        for (ExportRegistration er : exportRegistrations) {
            ExportRegistrationNode exportRegistrationNode = new ExportRegistrationNode(er);
            ExportReference eRef = (ExportReference) er.getExportReference();
            if (eRef != null) {
                exportRegistrationNode.addChild(new ServiceIdNode(eRef.getExportedService(), Messages.RSAView_SERVICE_ID_LABEL));
                EndpointDescription ed = (EndpointDescription) eRef.getExportedEndpoint();
                if (ed != null)
                    exportRegistrationNode.addChild(new EndpointDescriptionRSANode(ed));
            }
            exportedRoot.addChild(exportRegistrationNode);
        }
    }
}
Also used : RemoteServiceAdmin(org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin) ServiceIdNode(org.eclipse.ecf.remoteserviceadmin.ui.rsa.model.ServiceIdNode) ExportRegistration(org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.ExportRegistration) ExportReference(org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.ExportReference) EndpointDescriptionRSANode(org.eclipse.ecf.remoteserviceadmin.ui.rsa.model.EndpointDescriptionRSANode) ExportRegistrationNode(org.eclipse.ecf.remoteserviceadmin.ui.rsa.model.ExportRegistrationNode) EndpointDescription(org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescription)

Example 2 with ServiceIdNode

use of org.eclipse.ecf.remoteserviceadmin.ui.rsa.model.ServiceIdNode in project ecf by eclipse.

the class RemoteServiceAdminView method updateImports.

private void updateImports(ImportedEndpointsRootNode importedRoot) {
    RemoteServiceAdmin rsa = getLocalRSA();
    if (rsa != null && importedRoot != null) {
        importedRoot.clearChildren();
        List<ImportRegistration> importRegistrations = rsa.getImportedRegistrations();
        for (ImportRegistration ir : importRegistrations) {
            ImportRegistrationNode importRegistrationNode = new ImportRegistrationNode(ir);
            ImportReference iRef = (ImportReference) ir.getImportReference();
            if (iRef != null) {
                importRegistrationNode.addChild(new ServiceIdNode(iRef.getImportedService(), Messages.RSAView_PROXY_SERVICE_ID_LABEL));
                EndpointDescription ed = (EndpointDescription) iRef.getImportedEndpoint();
                if (ed != null)
                    importRegistrationNode.addChild(new EndpointDescriptionRSANode(ed, ir));
            }
            importedRoot.addChild(importRegistrationNode);
        }
    }
}
Also used : RemoteServiceAdmin(org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin) ImportReference(org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.ImportReference) ServiceIdNode(org.eclipse.ecf.remoteserviceadmin.ui.rsa.model.ServiceIdNode) ImportRegistrationNode(org.eclipse.ecf.remoteserviceadmin.ui.rsa.model.ImportRegistrationNode) EndpointDescriptionRSANode(org.eclipse.ecf.remoteserviceadmin.ui.rsa.model.EndpointDescriptionRSANode) EndpointDescription(org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescription) ImportRegistration(org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.ImportRegistration)

Aggregations

EndpointDescription (org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescription)2 RemoteServiceAdmin (org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin)2 EndpointDescriptionRSANode (org.eclipse.ecf.remoteserviceadmin.ui.rsa.model.EndpointDescriptionRSANode)2 ServiceIdNode (org.eclipse.ecf.remoteserviceadmin.ui.rsa.model.ServiceIdNode)2 ExportReference (org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.ExportReference)1 ExportRegistration (org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.ExportRegistration)1 ImportReference (org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.ImportReference)1 ImportRegistration (org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin.ImportRegistration)1 ExportRegistrationNode (org.eclipse.ecf.remoteserviceadmin.ui.rsa.model.ExportRegistrationNode)1 ImportRegistrationNode (org.eclipse.ecf.remoteserviceadmin.ui.rsa.model.ImportRegistrationNode)1