Package eu.planets_project.tb.impl.services.wrappers

Examples of eu.planets_project.tb.impl.services.wrappers.IdentifyWrapper


                    this.fillComparisonEvent(me, chr, cr);
                    ExperimentInspector.persistExperiment();
                }
               
            } else if(sd.getType().equals(Identify.class.getCanonicalName())) {
                Identify idf = new IdentifyWrapper(surl);
                IdentifyResult ir1 = idf.identify( this.getDob1().getDob(), null);
                this.compareServiceReport = ir1.getReport();
                IdentifyResult ir2 = idf.identify( this.getDob2().getDob(), null);
                this.compareServiceReport = ir2.getReport();
               
                me = this.createMeasurementEvent();
                if( me != null ) {
                    me.setAgent(new MeasurementAgent(idf.describe()));
                    me.setDate(Calendar.getInstance());
                    this.recordIdentifyComparison(me, ir1, this.getDobUri1(), ir2, this.getDobUri2() );
                   
                    ExperimentInspector.persistExperiment();
                }
View Full Code Here


                dpPre = new CharacteriseWrapper(new URL(this.parameters.get(PARAM_PRE_SERVICE)) );
            } else {
                dpPre = null;
            }
            if( this.preIsIdentify() ) {
                idPre = new IdentifyWrapper( new URL(this.parameters.get(PARAM_PRE_SERVICE)) );

            } else {
                idPre = null;
            }
        } catch( MalformedURLException e ) {
            throw new Exception("You did not specify a valid pre-migration service URL!");
        }

        // Also set the post services:
        try {
            if( this.postIsCharacterise() ) {
                dpPost = new CharacteriseWrapper(new URL(this.parameters.get(PARAM_POST_SERVICE)) );
            } else {
                dpPost = null;
            }
            if( this.postIsIdentify() ) {
                idPost = new IdentifyWrapper( new URL(this.parameters.get(PARAM_POST_SERVICE)) );

            } else {
                idPost = null;
            }
        } catch( MalformedURLException e ) {
View Full Code Here

    public void setParameters(HashMap<String, String> parameters)
    throws Exception {
        this.parameters = parameters;
        // Attempt to connect to the Identify service.
        identifierEndpoint = new URL( this.parameters.get(PARAM_SERVICE));
        identifier = new IdentifyWrapper( identifierEndpoint );
    }
View Full Code Here

    }
   
    private IdentifyResult runIdentifyService() {
        if( this.getIdentifyService() == null ) return null;
        try {
            Identify id = new IdentifyWrapper(new URL( this.getIdentifyService()));
            IdentifyResult ir = id.identify(this.getDob().getDob(), null);
            return ir;
        } catch( Exception e ) {
            log.error("FAILED! "+e);
            e.printStackTrace();
            return null;
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.impl.services.wrappers.IdentifyWrapper

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.