Package eu.scape_project.planning.services.myexperiment.MyExperimentRESTClient

Examples of eu.scape_project.planning.services.myexperiment.MyExperimentRESTClient.ComponentQuery


     *            the required measure
     * @return a list of workflows
     * @throws PlanningServiceException
     */
    private List<WorkflowInfo> queryMyExperiment(DigitalObject sample, DigitalObject result, String measure) throws PlanningServiceException {
        ComponentQuery q = myExperiment.createComponentQuery();

        String sampleMimetype = sample.getFormatInfo().getMimeType();
        String resultMimetype = result.getFormatInfo().getMimeType();

        q.addHandlesMimetype(sampleMimetype, resultMimetype).addHandlesMimetypeWildcard(sampleMimetype, resultMimetype)
            .addHandlesMimetypes(sampleMimetype, resultMimetype)
            .addHandlesMimetypesWildcard(sampleMimetype, resultMimetype)
            .addInputPort(ComponentConstants.VALUE_LEFT_OBJECT).addInputPort(ComponentConstants.VALUE_RIGHT_OBJECT)
            .addMeasureOutputPort(measure).finishQuery();

View Full Code Here


     */
    public List<IServiceInfo> searchMigrationAction() throws PlanningServiceException {
        List<IServiceInfo> services = new ArrayList<IServiceInfo>();

        // Create query
        ComponentQuery query = myExperimentRESTClient.createComponentQuery();
        query.addProfile(profile).addMigrationPath(sourceMimetype).setMigrationPathTargetPattern(targetMimetype)
            .addInputPort(ComponentConstants.VALUE_SOURCE_OBJECT).addOutputPort(ComponentConstants.VALUE_TARGET_OBJECT)
            .addInstallationEnvironment(environment).addInstallationEnvironmentType(environmentType);

        query.setDependencyLabelPattern(dependencyLabel);
        query.finishQuery();

        List<WorkflowInfo> workflows = myExperimentRESTClient.searchComponents(query);
        for (WorkflowInfo workflow : workflows) {
            MyExperimentActionInfo service = new MyExperimentActionInfo();

View Full Code Here

     * @throws PlanningServiceException
     */
    public List<IServiceInfo> searchObjectQa() throws PlanningServiceException {
        List<IServiceInfo> services = new ArrayList<IServiceInfo>();

        ComponentQuery query = myExperimentRESTClient.createComponentQuery();
        query.addProfile(profile);

        query.addHandlesMimetype(sourceMimetype, targetMimetype)
            .addHandlesMimetypeWildcard(sourceMimetype, targetMimetype)
            .addHandlesMimetypes(sourceMimetype, targetMimetype)
            .addHandlesMimetypesWildcard(sourceMimetype, targetMimetype);

        if (sourceMimetype != null && !sourceMimetype.equals(targetMimetype)) {
            query.addHandlesMimetypes(targetMimetype, sourceMimetype).addHandlesMimetypesWildcard(targetMimetype,
                sourceMimetype);
        }
        query.addInputPort(ComponentConstants.VALUE_LEFT_OBJECT).addInputPort(ComponentConstants.VALUE_RIGHT_OBJECT);
        if (measure != null) {
            query.addMeasureOutputPort(measure);
        }

        query.addInstallationEnvironment(environment).addInstallationEnvironmentType(environmentType)
            .setDependencyLabelPattern(dependencyLabel).finishQuery();

        List<WorkflowInfo> workflows = myExperimentRESTClient.searchComponents(query);
        for (WorkflowInfo workflow : workflows) {
            MyExperimentActionInfo service = new MyExperimentActionInfo();
View Full Code Here

     * @throws PlanningServiceException
     */
    public List<IServiceInfo> searchCc() throws PlanningServiceException {
        List<IServiceInfo> services = new ArrayList<IServiceInfo>();

        ComponentQuery query = myExperimentRESTClient.createComponentQuery();
        query.addProfile(profile).addHandlesMimetype(targetMimetype).addHandlesMimetypeWildcard(targetMimetype)
            .addInputPort(ComponentConstants.VALUE_SOURCE_OBJECT);

        if (measure != null) {
            query.addMeasureOutputPort(measure);
        }

        query.addInstallationEnvironment(environment).addInstallationEnvironmentType(environmentType)
            .setDependencyLabelPattern(dependencyLabel).finishQuery();

        List<WorkflowInfo> workflows = myExperimentRESTClient.searchComponents(query);
        for (WorkflowInfo workflow : workflows) {
            MyExperimentActionInfo service = new MyExperimentActionInfo();
View Full Code Here

TOP

Related Classes of eu.scape_project.planning.services.myexperiment.MyExperimentRESTClient.ComponentQuery

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.