Package org.apache.airavata.rest.mappings.resourcemappings

Examples of org.apache.airavata.rest.mappings.resourcemappings.ExperimentDataList


    @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public Response getExperimentByUser(@QueryParam("username") String username) {
        AiravataRegistry2 airavataRegistry = RegPoolUtils.acquireRegistry(context);
        try {
            List<ExperimentData> experimentDataList = airavataRegistry.getExperimentByUser(username);
            ExperimentDataList experimentData = new ExperimentDataList();
            List<ExperimentDataImpl> experimentDatas = new ArrayList<ExperimentDataImpl>();
            for (ExperimentData anExperimentDataList : experimentDataList) {
                experimentDatas.add((ExperimentDataImpl)anExperimentDataList);
            }
            experimentData.setExperimentDataList(experimentDatas);
            if (experimentDataList.size() != 0) {
                Response.ResponseBuilder builder = Response.status(Response.Status.OK);
                builder.entity(experimentData);
                return builder.build();
            } else {
View Full Code Here


    public Response getAllExperimentMetaInformation(@QueryParam("user") String user) {
        AiravataRegistry2 airavataRegistry = RegPoolUtils.acquireRegistry(context);
        try {
            List<ExperimentData> allExperimentMetaInformation =
                    airavataRegistry.getAllExperimentMetaInformation(user);
            ExperimentDataList experimentDataList = new ExperimentDataList();
            List<ExperimentDataImpl> experimentDatas = new ArrayList<ExperimentDataImpl>();
            for (ExperimentData experimentData : allExperimentMetaInformation) {
                experimentDatas.add((ExperimentDataImpl)experimentData);
            }
            experimentDataList.setExperimentDataList(experimentDatas);
            if (allExperimentMetaInformation.size() != 0) {
                Response.ResponseBuilder builder = Response.status(Response.Status.OK);
                builder.entity(experimentDataList);
                return builder.build();
            } else {
View Full Code Here

                                      @QueryParam("experimentNameRegex") String experimentNameRegex) {
        AiravataRegistry2 airavataRegistry = RegPoolUtils.acquireRegistry(context);
        try {
            List<ExperimentData> experimentDataList =
                    airavataRegistry.searchExperiments(user, experimentNameRegex);
            ExperimentDataList experimentData = new ExperimentDataList();
            List<ExperimentDataImpl> experimentDatas = new ArrayList<ExperimentDataImpl>();
            for (ExperimentData experimentData1 : experimentDataList) {
                experimentDatas.add((ExperimentDataImpl)experimentData1);
            }
            experimentData.setExperimentDataList(experimentDatas);
            if (experimentDataList.size() != 0) {
                Response.ResponseBuilder builder = Response.status(Response.Status.OK);
                builder.entity(experimentData);
                return builder.build();
            } else {
View Full Code Here

            logger.error(response.getEntity(String.class));
            throw new RuntimeException("Failed : HTTP error code : "
                    + status);
        }

        ExperimentDataList experimentDataList = response.getEntity(ExperimentDataList.class);
        List<ExperimentDataImpl> dataList = experimentDataList.getExperimentDataList();

        for (ExperimentDataImpl experimentData : dataList) {
            experimentDatas.add(experimentData);
        }
        return experimentDatas;
View Full Code Here

            logger.error(response.getEntity(String.class));
            throw new RuntimeException("Failed : HTTP error code : "
                    + status);
        }

        ExperimentDataList experimentDataList = response.getEntity(ExperimentDataList.class);
        List<ExperimentDataImpl> dataList = experimentDataList.getExperimentDataList();

        for (ExperimentDataImpl experimentData : dataList) {
            experimentDatas.add(experimentData);
        }
        return experimentDatas;
View Full Code Here

            logger.error(response.getEntity(String.class));
            throw new RuntimeException("Failed : HTTP error code : "
                    + status);
        }

        ExperimentDataList experimentDataList = response.getEntity(ExperimentDataList.class);
        List<ExperimentDataImpl> dataList = experimentDataList.getExperimentDataList();

        for (ExperimentDataImpl experimentData : dataList) {
            experimentDatas.add(experimentData);
        }
        return experimentDatas;
View Full Code Here

            logger.error(response.getEntity(String.class));
            throw new RuntimeException("Failed : HTTP error code : "
                    + status);
        }

        ExperimentDataList experimentDataList = response.getEntity(ExperimentDataList.class);
        List<ExperimentData> dataList = experimentDataList.getExperimentDataList();

        for (ExperimentData experimentData : dataList) {
            experimentDatas.add(experimentData);
        }
        return experimentDatas;
View Full Code Here

            logger.error(response.getEntity(String.class));
            throw new RuntimeException("Failed : HTTP error code : "
                    + status);
        }

        ExperimentDataList experimentDataList = response.getEntity(ExperimentDataList.class);
        List<ExperimentData> dataList = experimentDataList.getExperimentDataList();

        for (ExperimentData experimentData : dataList) {
            experimentDatas.add(experimentData);
        }
        return experimentDatas;
View Full Code Here

            logger.error(response.getEntity(String.class));
            throw new RuntimeException("Failed : HTTP error code : "
                    + status);
        }

        ExperimentDataList experimentDataList = response.getEntity(ExperimentDataList.class);
        List<ExperimentData> dataList = experimentDataList.getExperimentDataList();

        for (ExperimentData experimentData : dataList) {
            experimentDatas.add(experimentData);
        }
        return experimentDatas;
View Full Code Here

    @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public Response getExperimentByUser(@QueryParam("username") String username) {
        AiravataRegistry2 airavataRegistry = RegPoolUtils.acquireRegistry(context);
        try {
            List<ExperimentData> experimentDataList = airavataRegistry.getExperimentByUser(username);
            ExperimentDataList experimentData = new ExperimentDataList();
            List<ExperimentData> experimentDatas = new ArrayList<ExperimentData>();
            for (ExperimentData anExperimentDataList : experimentDataList) {
                experimentDatas.add(anExperimentDataList);
            }
            experimentData.setExperimentDataList(experimentDatas);
            if (experimentDataList.size() != 0) {
                Response.ResponseBuilder builder = Response.status(Response.Status.OK);
                builder.entity(experimentData);
                return builder.build();
            } else {
View Full Code Here

TOP

Related Classes of org.apache.airavata.rest.mappings.resourcemappings.ExperimentDataList

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.