Package eu.planets_project.tb.api

Examples of eu.planets_project.tb.api.TestbedManager


    public void setEref(ArrayList<String> eref) {
      this.eref = eref;
    }
   
    public Collection<SelectItem> getAllExperimentsSelectItems() {
        TestbedManager testbedMan = (TestbedManager)JSFUtil.getManagedObject("TestbedManager")
       
        ArrayList<SelectItem> expList = new ArrayList<SelectItem>();
        Collection<Experiment> allExps = testbedMan.getAllExperiments();
        for( Experiment exp : allExps ) {
            SelectItem item = new SelectItem();
            item.setValue( ""+exp.getEntityID() );
            item.setLabel(exp.getExperimentSetup().getBasicProperties().getExperimentName());
            if( exp.getEntityID() != this.getID() )
View Full Code Here


    public List<Experiment> autocompleteExperiments(Object query ) {
        if( query == null) return null;
        // look for matching users:
        String qs = (String) query;
        log.debug("Looking for experiments that match " + qs );
        TestbedManager testbedMan = (TestbedManager)JSFUtil.getManagedObject("TestbedManager")
        List<Experiment> allExps = testbedMan.searchAllExperiments(qs);
        log.debug("Found "+allExps.size()+" matching experiment(s).");
        return allExps;
    }
View Full Code Here

                FacesContext ctx = FacesContext.getCurrentInstance();
                ctx.addMessage("ename",fmsg);
                return false;
            }
            log.info("Creating a new experiment.");
            TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
            long expId = testbedMan.registerExperiment(exp);
            expBean.setID(expId);
            expBean.setExperiment(testbedMan.getExperiment(expId));
        }
        log.debug("Created experiment if necessary, now passing it back.");   
        return true;
    }
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.api.TestbedManager

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.