Package eu.planets_project.tb.gui.backing

Examples of eu.planets_project.tb.gui.backing.ServiceBrowser$ServiceTreeItem


    }
   

    public List<SelectItem> getMigrationServiceList() {
        log.info("IN: getMigrationServiceList");
        ServiceBrowser sb = (ServiceBrowser)JSFUtil.getManagedObject("ServiceBrowser");
       
        String input = this.getInputFormat();
        if( ! this.isInputSet() ) input = null;
        String output = this.getOutputFormat();
        if( ! this.isOutputSet() ) output = null;
       
        List<ServiceDescription> sdl = sb.getMigrationServices( input, output );
       
        log.info("OUT: getMigrationServiceList");
        return ServiceBrowser.mapServicesToSelectList( sdl );
    }
View Full Code Here


    /**
     * @return Return available Input Formats consistent with the current Service and Output.
     */
    public List<SelectItem> getInputFormatList() {
        log.info("IN: getInputFormatList");
        ServiceBrowser sb = (ServiceBrowser)JSFUtil.getManagedObject("ServiceBrowser");
       
        String endpoint = this.getMigrationService();
        if( ! this.isServiceSet() ) endpoint = null;
        String output = this.getOutputFormat();
        if( ! this.isOutputSet() ) output = null;
       
        Set<Format> inputFormats = sb.getMigrationInputFormats(endpoint, output);

        log.info("OUT: getInputFormatList");
        return ServiceBrowser.mapFormatsToSelectList(inputFormats);
    }
View Full Code Here

    /**
     * @return Return available Output Formats consistent with the current Service and Input.
     */
    public List<SelectItem> getOutputFormatList() {
        log.info("IN: getOutputFormatList");
        ServiceBrowser sb = (ServiceBrowser)JSFUtil.getManagedObject("ServiceBrowser");
       
        String endpoint = this.getMigrationService();
        if( ! this.isServiceSet() ) endpoint = null;
        String input = this.getInputFormat();
        if( ! this.isInputSet() ) input = null;
       
        Set<Format> outputFormats = sb.getMigrationOutputFormats(endpoint, input);

        log.info("OUT: getOutputFormatList");
        return ServiceBrowser.mapFormatsToSelectList(outputFormats);
    }
View Full Code Here

      }

      if (tmpComponent != null && (tmpComponent instanceof UIData)) {
        Object tmpRowData = ((UIData) tmpComponent).getRowData();
        if (tmpRowData instanceof FormatBean ) {
            ServiceBrowser sb = (ServiceBrowser)JSFUtil.getManagedObject("ServiceBrowser");
            FormatBean fb = (FormatBean) tmpRowData;
            if( fb.equals( sb.getSelectedOutputFormat() ) ) {
                sb.setSelectedOutputFormat(null);
            } else {
                sb.setSelectedOutputFormat( fb );
            }
        }
      }
    }
View Full Code Here

      }

      if (tmpComponent != null && (tmpComponent instanceof UIData)) {
        Object tmpRowData = ((UIData) tmpComponent).getRowData();
        if (tmpRowData instanceof ServiceRecordBean ) {
            ServiceBrowser sb = (ServiceBrowser)JSFUtil.getManagedObject("ServiceBrowser");
            ServiceRecordBean srb = (ServiceRecordBean) tmpRowData;
            if( srb.equals( sb.getSelectedServiceRecord() ) ) {
                sb.setSelectedServiceRecord(null);
            } else {
                sb.setSelectedServiceRecord( srb );
            }               
        }
      }
    }
View Full Code Here

   
    private Map<URL,ServiceDescription> getCompareServices() {
        Map<URL,ServiceDescription> map = new HashMap<URL,ServiceDescription>();
       
        // Find all services:
        ServiceBrowser sb = (ServiceBrowser)JSFUtil.getManagedObject("ServiceBrowser");
        List<ServiceDescription> sdl = sb.getCompareServices();
        sdl.addAll(sb.getCharacteriseServices());
        sdl.addAll(sb.getIdentifyServices());

        // Create map:
        for( ServiceDescription sd : sdl ) {
            map.put(sd.getEndpoint(), sd);
        }
View Full Code Here

        log.info("Looking up service: " + this.serviceName);
        this.srbs = new ArrayList<ServiceRecordBean>();
        if( this.serviceName == null ) return;
       
        // Get the service browser:
        ServiceBrowser sb = (ServiceBrowser)JSFUtil.getManagedObject("ServiceBrowser");
       
        // Need a consistent way of getting the full record...
        for( ServiceRecordBean srb : sb.getAllServicesAndRecords() ) {
            if( this.serviceName.equals(srb.getName()) ) {
                log.info("Found matching Service Record Bean: "+srb.getName()+" : "+srb.getServiceRecord() );
                 this.srbs.add(srb);
            }
        }
View Full Code Here

    private void lookForServiceByHash() {
        log.info("Looking up service by hash: " + this.serviceHash);
        if( this.serviceHash == null ) return;
       
        // Get the service browser:
        ServiceBrowser sb = (ServiceBrowser)JSFUtil.getManagedObject("ServiceBrowser");
       
        // Need a consistent way of getting the full record...
        for( ServiceRecordBean srb : sb.getAllServicesAndRecords() ) {
            if( this.serviceHash.equals(srb.getServiceHash()) ) {
                log.info("Found matching Service Record Bean: "+srb.getName()+" : "+srb.getServiceRecord() );
                 this.srb = srb;
            }
        }
View Full Code Here

      }

      if (tmpComponent != null && (tmpComponent instanceof UIData)) {
        Object tmpRowData = ((UIData) tmpComponent).getRowData();
        if (tmpRowData instanceof FormatBean ) {
            ServiceBrowser sb = (ServiceBrowser)JSFUtil.getManagedObject("ServiceBrowser");
            FormatBean fb = (FormatBean) tmpRowData;
            if( fb.equals( sb.getSelectedInputFormat() )) {
                sb.setSelectedInputFormat(null);
            } else {
                sb.setSelectedInputFormat( fb );
            }
        }
      }
    }
View Full Code Here

    /**
     * @return
     */
    public List<SelectItem> getCharacteriseServiceList() {
        log.info("IN: getCharacteriseServiceList");
        ServiceBrowser sb = (ServiceBrowser)JSFUtil.getManagedObject("ServiceBrowser");
/*
        String input = this.getInputFormat();
        if( ! this.isInputSet() ) input = null;
        String output = this.getOutputFormat();
        if( ! this.isOutputSet() ) output = null;
*/
        List<ServiceDescription> sdl = sb.getCharacteriseServices();

        return ServiceBrowser.mapServicesToSelectList( sdl );
    }
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.gui.backing.ServiceBrowser$ServiceTreeItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.