Examples of PublishWorkflowNamesList


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

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

        PublishWorkflowNamesList workflowNamesList =
                response.getEntity(PublishWorkflowNamesList.class);
        List<String> publishWorkflowNames = workflowNamesList.getPublishWorkflowNames();
        return publishWorkflowNames;
    }
View Full Code Here

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

    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response getPublishedWorkflowNames() {
        AiravataRegistry2 airavataRegistry = RegPoolUtils.acquireRegistry(context);
        try {
            List<String> publishedWorkflowNames = airavataRegistry.getPublishedWorkflowNames();
            PublishWorkflowNamesList publishWorkflowNamesList = new PublishWorkflowNamesList();
            publishWorkflowNamesList.setPublishWorkflowNames(publishedWorkflowNames);
            if (publishedWorkflowNames.size() != 0) {
                Response.ResponseBuilder builder = Response.status(Response.Status.OK);
                builder.entity(publishWorkflowNamesList);
                return builder.build();
            } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.