airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r1406912 - in /airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest: resources/ utils/
Date Thu, 08 Nov 2012 04:01:14 GMT
Author: chathuri
Date: Thu Nov  8 04:01:13 2012
New Revision: 1406912

URL: http://svn.apache.org/viewvc?rev=1406912&view=rev
Log:
adding constants to resource paths

Added:
    airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/utils/ResourcePathConstants.java
Modified:
    airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ConfigurationRegistryResource.java
    airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/DescriptorRegistryResource.java
    airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ExperimentRegistryResource.java
    airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ProjectRegistryResource.java
    airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ProvenanceRegistryResource.java
    airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/PublishWorkflowRegistryResource.java
    airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/UserWorkflowRegistryResource.java

Modified: airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ConfigurationRegistryResource.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ConfigurationRegistryResource.java?rev=1406912&r1=1406911&r2=1406912&view=diff
==============================================================================
--- airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ConfigurationRegistryResource.java (original)
+++ airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ConfigurationRegistryResource.java Thu Nov  8 04:01:13 2012
@@ -24,6 +24,7 @@ package org.apache.airavata.services.reg
 import org.apache.airavata.registry.api.AiravataRegistry2;
 import org.apache.airavata.services.registry.rest.resourcemappings.ConfigurationList;
 import org.apache.airavata.services.registry.rest.resourcemappings.URLList;
+import org.apache.airavata.services.registry.rest.utils.ResourcePathConstants;
 import org.apache.airavata.services.registry.rest.utils.RestServicesConstants;
 
 import javax.servlet.ServletContext;
@@ -41,7 +42,7 @@ import java.util.List;
  * This class is a REST interface to all the methods related to Configuration which are exposed by
  * Airavata Registry API
  */
-@Path("/registry/api/congfigregistry")
+@Path(ResourcePathConstants.ConfigResourcePathConstants.CONFIGURATION_REGISTRY_RESOURCE)
 public class ConfigurationRegistryResource {
     private AiravataRegistry2 airavataRegistry;
 
@@ -57,7 +58,7 @@ public class ConfigurationRegistryResour
      * @param key configuration key
      * @return HTTP Response
      */
-    @Path("get/configuration")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.GET_CONFIGURATION)
     @GET
     @Produces(MediaType.TEXT_PLAIN)
     public Response getConfiguration(@QueryParam("key") String key) {
@@ -87,7 +88,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @GET
-    @Path("get/configurationlist")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.GET_CONFIGURATION_LIST)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getConfigurationList(@QueryParam("key") String key) {
         try {
@@ -124,7 +125,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @POST
-    @Path("save/configuration")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.SAVE_CONFIGURATION)
     @Produces(MediaType.TEXT_PLAIN)
     @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
     public Response setConfiguration(@FormParam("key") String key,
@@ -154,7 +155,7 @@ public class ConfigurationRegistryResour
      * @return  HTTP response
      */
     @POST
-    @Path("update/configuration")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.UPDATE_CONFIGURATION)
     @Produces(MediaType.TEXT_PLAIN)
     public Response addConfiguration(@FormParam("key") String key,
                                      @FormParam("value") String value,
@@ -180,7 +181,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @DELETE
-    @Path("delete/allconfiguration")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.DELETE_ALL_CONFIGURATION)
     @Produces(MediaType.TEXT_PLAIN)
     public Response removeAllConfiguration(@QueryParam("key") String key) {
         try {
@@ -203,7 +204,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @DELETE
-    @Path("delete/configuration")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.DELETE_CONFIGURATION)
     @Produces(MediaType.TEXT_PLAIN)
     public Response removeConfiguration(@QueryParam("key") String key, @QueryParam("value") String value) {
         try {
@@ -224,7 +225,7 @@ public class ConfigurationRegistryResour
      * @return  HTTP response
      */
     @GET
-    @Path("get/gfac/urilist")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.GET_GFAC_URI_LIST)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getGFacURIs() {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -257,7 +258,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @GET
-    @Path("get/workflowinterpreter/urilist")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.GET_WFINTERPRETER_URI_LIST)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getWorkflowInterpreterURIs() {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -290,7 +291,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @GET
-    @Path("get/eventingservice/uri")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.GET_EVENTING_URI)
     @Produces(MediaType.TEXT_PLAIN)
     public Response getEventingServiceURI() {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -317,7 +318,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @GET
-    @Path("get/messagebox/uri")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.GET_MESSAGE_BOX_URI)
     @Produces(MediaType.TEXT_PLAIN)
     public Response getMessageBoxURI() {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -345,7 +346,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @POST
-    @Path("add/gfacuri")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.ADD_GFAC_URI)
     @Produces(MediaType.TEXT_PLAIN)
     public Response addGFacURI(@FormParam("uri") String uri) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -368,7 +369,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @POST
-    @Path("add/workflowinterpreteruri")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.ADD_WFINTERPRETER_URI)
     @Produces(MediaType.TEXT_PLAIN)
     public Response addWorkflowInterpreterURI(@FormParam("uri") String uri) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -391,7 +392,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @POST
-    @Path("add/eventinguri")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.ADD_EVENTING_URI)
     @Produces(MediaType.TEXT_PLAIN)
     public Response setEventingURI(@FormParam("uri") String uri) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -414,7 +415,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @POST
-    @Path("add/msgboxuri")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.ADD_MESSAGE_BOX_URI)
     @Produces(MediaType.TEXT_PLAIN)
     public Response setMessageBoxURI(@FormParam("uri") String uri) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -438,7 +439,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @POST
-    @Path("add/gfacuri/date")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.ADD_GFAC_URI_DATE)
     @Produces(MediaType.TEXT_PLAIN)
     public Response addGFacURIByDate(@FormParam("uri") String uri, @FormParam("date") String date) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -464,7 +465,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @POST
-    @Path("add/workflowinterpreteruri/date")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.ADD_WFINTERPRETER_URI_DATE)
     @Produces(MediaType.TEXT_PLAIN)
     public Response addWorkflowInterpreterURI(@FormParam("uri") String uri, @FormParam("date") String date) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -490,7 +491,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @POST
-    @Path("add/eventinguri/date")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.ADD_EVENTING_URI_DATE)
     @Produces(MediaType.TEXT_PLAIN)
     public Response setEventingURIByDate(@FormParam("uri") String uri, @FormParam("date") String date) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -516,7 +517,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @POST
-    @Path("add/msgboxuri/date")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.ADD_MSG_BOX_URI_DATE)
     @Produces(MediaType.TEXT_PLAIN)
     public Response setMessageBoxURIByDate(@FormParam("uri") String uri, @FormParam("date") String date) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -541,7 +542,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @DELETE
-    @Path("delete/gfacuri")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.DELETE_GFAC_URI)
     @Produces(MediaType.TEXT_PLAIN)
     public Response removeGFacURI(@QueryParam("uri") String uri) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -563,7 +564,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @DELETE
-    @Path("delete/allgfacuris")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.DELETE_ALL_GFAC_URIS)
     @Produces(MediaType.TEXT_PLAIN)
     public Response removeAllGFacURI() {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -585,7 +586,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @DELETE
-    @Path("delete/workflowinterpreteruri")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.DELETE_WFINTERPRETER_URI)
     @Produces(MediaType.TEXT_PLAIN)
     public Response removeWorkflowInterpreterURI(@QueryParam("uri") String uri) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -607,7 +608,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @DELETE
-    @Path("delete/allworkflowinterpreteruris")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.DELETE_ALL_WFINTERPRETER_URIS)
     @Produces(MediaType.TEXT_PLAIN)
     public Response removeAllWorkflowInterpreterURI() {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -628,7 +629,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @DELETE
-    @Path("delete/eventinguri")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.DELETE_EVENTING_URI)
     @Produces(MediaType.TEXT_PLAIN)
     public Response unsetEventingURI() {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -649,7 +650,7 @@ public class ConfigurationRegistryResour
      * @return HTTP response
      */
     @DELETE
-    @Path("delete/msgboxuri")
+    @Path(ResourcePathConstants.ConfigResourcePathConstants.DELETE_MSG_BOX_URI)
     @Produces(MediaType.TEXT_PLAIN)
     public Response unsetMessageBoxURI() {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);

Modified: airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/DescriptorRegistryResource.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/DescriptorRegistryResource.java?rev=1406912&r1=1406911&r2=1406912&view=diff
==============================================================================
--- airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/DescriptorRegistryResource.java (original)
+++ airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/DescriptorRegistryResource.java Thu Nov  8 04:01:13 2012
@@ -31,6 +31,7 @@ import org.apache.airavata.registry.api.
 import org.apache.airavata.registry.api.exception.gateway.MalformedDescriptorException;
 import org.apache.airavata.services.registry.rest.resourcemappings.*;
 import org.apache.airavata.services.registry.rest.utils.DescriptorUtil;
+import org.apache.airavata.services.registry.rest.utils.ResourcePathConstants;
 import org.apache.airavata.services.registry.rest.utils.RestServicesConstants;
 
 import javax.servlet.ServletContext;
@@ -44,9 +45,9 @@ import java.util.Map;
 
 /**
  * This class is the REST interface for all the operation regarding descriptors that are
- * exposed from Airavata Registry API
+ * exposed from Airavatas Registry API
  */
-@Path("/registry/api/descriptors")
+@Path(ResourcePathConstants.DecResourcePathConstants.DESC_RESOURCE_PATH)
 public class DescriptorRegistryResource {
     private AiravataRegistry2 airavataRegistry;
 
@@ -64,7 +65,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("hostdescriptor/exist")
+    @Path(ResourcePathConstants.DecResourcePathConstants.HOST_DESC_EXISTS)
     @Produces(MediaType.TEXT_PLAIN)
     public Response isHostDescriptorExists(@QueryParam("hostDescriptorName") String hostDescriptorName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -93,7 +94,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("hostdescriptor/save")
+    @Path(ResourcePathConstants.DecResourcePathConstants.HOST_DESC_SAVE)
     @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response addHostDescriptor(HostDescriptor host) {
@@ -121,7 +122,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("hostdescriptor/update")
+    @Path(ResourcePathConstants.DecResourcePathConstants.HOST_DESC_UPDATE)
     @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response updateHostDescriptor(HostDescriptor host) {
@@ -150,7 +151,7 @@ public class DescriptorRegistryResource 
      * @return   HTTP response
      */
     @GET
-    @Path("host/description")
+    @Path(ResourcePathConstants.DecResourcePathConstants.HOST_DESC)
     @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getHostDescriptor(@QueryParam("hostName") String hostName) {
@@ -181,7 +182,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @DELETE
-    @Path("hostdescriptor/delete")
+    @Path(ResourcePathConstants.DecResourcePathConstants.HOST_DESC_DELETE)
     @Produces(MediaType.TEXT_PLAIN)
     public Response removeHostDescriptor(@QueryParam("hostName") String hostName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -206,7 +207,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/hostdescriptors")
+    @Path(ResourcePathConstants.DecResourcePathConstants.GET_HOST_DESCS)
     @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getHostDescriptors() {
@@ -241,7 +242,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/hostdescriptor/names")
+    @Path(ResourcePathConstants.DecResourcePathConstants.GET_HOST_DESCS_NAMES)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getHostDescriptorNames() {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -275,7 +276,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("servicedescriptor/exist")
+    @Path(ResourcePathConstants.DecResourcePathConstants.SERVICE_DESC_EXISTS)
     @Produces(MediaType.TEXT_PLAIN)
     public Response isServiceDescriptorExists(@QueryParam("serviceDescriptorName") String serviceDescriptorName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -304,7 +305,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("servicedescriptor/save")
+    @Path(ResourcePathConstants.DecResourcePathConstants.SERVICE_DESC_SAVE)
     @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response addJSONServiceDescriptor(ServiceDescriptor service) {
@@ -332,7 +333,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("servicedescriptor/update")
+    @Path(ResourcePathConstants.DecResourcePathConstants.SERVICE_DESC_UPDATE)
     @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response updateServiceDescriptor(ServiceDescriptor service) {
@@ -361,7 +362,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("servicedescriptor/description")
+    @Path(ResourcePathConstants.DecResourcePathConstants.SERVICE_DESC)
     @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getServiceDescriptor(@QueryParam("serviceName") String serviceName) {
@@ -391,7 +392,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @DELETE
-    @Path("servicedescriptor/delete")
+    @Path(ResourcePathConstants.DecResourcePathConstants.SERVICE_DESC_DELETE)
     @Produces(MediaType.TEXT_PLAIN)
     public Response removeServiceDescriptor(@QueryParam("serviceName") String serviceName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -416,7 +417,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/servicedescriptors")
+    @Path(ResourcePathConstants.DecResourcePathConstants.GET_SERVICE_DESCS)
     @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getServiceDescriptors() {
@@ -455,7 +456,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("applicationdescriptor/exist")
+    @Path(ResourcePathConstants.DecResourcePathConstants.APP_DESC_SAVE)
     @Produces(MediaType.TEXT_PLAIN)
     public Response isApplicationDescriptorExists(@QueryParam("serviceName") String serviceName,
                                                   @QueryParam("hostName") String hostName,
@@ -487,7 +488,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("applicationdescriptor/build/save")
+    @Path(ResourcePathConstants.DecResourcePathConstants.APP_DESC_BUILD_SAVE)
     @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     public Response addApplicationDescriptor(ApplicationDescriptor applicationDescriptor) {
@@ -539,7 +540,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("applicationdescriptor/update")
+    @Path(ResourcePathConstants.DecResourcePathConstants.APP_DESC_UPDATE)
     @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     public Response udpateApplicationDescriptorByDescriptors(ApplicationDescriptor applicationDescriptor) {
@@ -595,7 +596,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("applicationdescriptor/description")
+    @Path(ResourcePathConstants.DecResourcePathConstants.APP_DESC_DESCRIPTION)
     @Produces("text/xml")
     public Response getApplicationDescriptor(@QueryParam("serviceName") String serviceName,
                                              @QueryParam("hostName") String hostName,
@@ -632,7 +633,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("applicationdescriptors/alldescriptors/host/service")
+    @Path(ResourcePathConstants.DecResourcePathConstants.APP_DESC_ALL_DESCS_HOST_SERVICE)
     @Produces("text/xml")
     public Response getApplicationDescriptors(@QueryParam("serviceName") String serviceName,
                                               @QueryParam("hostName") String hostName) {
@@ -667,7 +668,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("applicationdescriptor/alldescriptors/service")
+    @Path(ResourcePathConstants.DecResourcePathConstants.APP_DESC_ALL_DESCS_SERVICE)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getApplicationDescriptors(@QueryParam("serviceName") String serviceName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -714,7 +715,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("applicationdescriptor/alldescriptors")
+    @Path(ResourcePathConstants.DecResourcePathConstants.APP_DESC_ALL_DESCRIPTORS)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getApplicationDescriptors() {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -763,7 +764,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("applicationdescriptor/names")
+    @Path(ResourcePathConstants.DecResourcePathConstants.APP_DESC_NAMES)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getApplicationDescriptorNames() {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -805,7 +806,7 @@ public class DescriptorRegistryResource 
      * @return HTTP response
      */
     @DELETE
-    @Path("applicationdescriptor/delete")
+    @Path(ResourcePathConstants.DecResourcePathConstants.APP_DESC_DELETE)
     @Produces(MediaType.TEXT_PLAIN)
     public Response removeApplicationDescriptor(@QueryParam("serviceName") String serviceName,
                                                 @QueryParam("hostName") String hostName,

Modified: airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ExperimentRegistryResource.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ExperimentRegistryResource.java?rev=1406912&r1=1406911&r2=1406912&view=diff
==============================================================================
--- airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ExperimentRegistryResource.java (original)
+++ airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ExperimentRegistryResource.java Thu Nov  8 04:01:13 2012
@@ -29,6 +29,7 @@ import org.apache.airavata.registry.api.
 import org.apache.airavata.registry.api.exception.worker.ExperimentDoesNotExistsException;
 import org.apache.airavata.registry.api.exception.worker.WorkspaceProjectDoesNotExistsException;
 import org.apache.airavata.services.registry.rest.resourcemappings.ExperimentList;
+import org.apache.airavata.services.registry.rest.utils.ResourcePathConstants;
 import org.apache.airavata.services.registry.rest.utils.RestServicesConstants;
 
 import javax.servlet.ServletContext;
@@ -46,7 +47,7 @@ import java.util.List;
  * This class is a REST interface all the methods related to experiments that are exposed by
  * Airavata Registry API
  */
-@Path("/registry/api/experimentregistry")
+@Path(ResourcePathConstants.ExperimentResourcePathConstants.EXP_RESOURCE_PATH)
 public class ExperimentRegistryResource {
     private AiravataRegistry2 airavataRegistry;
 
@@ -63,7 +64,7 @@ public class ExperimentRegistryResource 
      * @return HTTP response
      */
     @DELETE
-    @Path("delete/experiment")
+    @Path(ResourcePathConstants.ExperimentResourcePathConstants.DELETE_EXP)
     @Produces(MediaType.TEXT_PLAIN)
     public Response removeExperiment(@QueryParam("experimentId") String experimentId) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -85,7 +86,7 @@ public class ExperimentRegistryResource 
      *
      */
     @GET
-    @Path("get/experiments/all")
+    @Path(ResourcePathConstants.ExperimentResourcePathConstants.GET_APP_EXPS)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getExperiments(){
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -119,7 +120,7 @@ public class ExperimentRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/experiments/project")
+    @Path(ResourcePathConstants.ExperimentResourcePathConstants.GET_EXPS_BY_PROJECT)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getExperimentsByProject(@QueryParam("projectName") String projectName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -154,7 +155,7 @@ public class ExperimentRegistryResource 
      * @return  HTTP response
      */
     @GET
-    @Path("get/experiments/date")
+    @Path(ResourcePathConstants.ExperimentResourcePathConstants.GET_EXPS_BY_DATE)
     @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getExperimentsByDate(@QueryParam("fromDate") String fromDate,
@@ -199,7 +200,7 @@ public class ExperimentRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/experiments/project/date")
+    @Path(ResourcePathConstants.ExperimentResourcePathConstants.GET_EXPS_PER_PROJECT_BY_DATE)
     @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getExperimentsByProjectDate(@QueryParam("projectName") String projectName,
@@ -245,7 +246,7 @@ public class ExperimentRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("add/experiment")
+    @Path(ResourcePathConstants.ExperimentResourcePathConstants.ADD_EXP)
     @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
     @Produces(MediaType.TEXT_PLAIN)
     public Response addExperiment(@FormParam("projectName") String projectName,
@@ -292,7 +293,7 @@ public class ExperimentRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("experiment/exist")
+    @Path(ResourcePathConstants.ExperimentResourcePathConstants.EXP_EXISTS)
     @Produces(MediaType.TEXT_PLAIN)
     public Response isExperimentExists(@QueryParam("experimentId") String experimentId) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -320,7 +321,7 @@ public class ExperimentRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("experiment/notexist/create")
+    @Path(ResourcePathConstants.ExperimentResourcePathConstants.EXP_EXISTS_CREATE)
     @Produces(MediaType.TEXT_PLAIN)
     public Response isExperimentExistsThenCreate(@QueryParam("experimentId") String experimentId,
                                                  @QueryParam("createIfNotPresent") String createIfNotPresent) {

Modified: airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ProjectRegistryResource.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ProjectRegistryResource.java?rev=1406912&r1=1406911&r2=1406912&view=diff
==============================================================================
--- airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ProjectRegistryResource.java (original)
+++ airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ProjectRegistryResource.java Thu Nov  8 04:01:13 2012
@@ -27,6 +27,7 @@ import org.apache.airavata.registry.api.
 import org.apache.airavata.registry.api.exception.worker.WorkspaceProjectAlreadyExistsException;
 import org.apache.airavata.registry.api.exception.worker.WorkspaceProjectDoesNotExistsException;
 import org.apache.airavata.services.registry.rest.resourcemappings.WorkspaceProjectList;
+import org.apache.airavata.services.registry.rest.utils.ResourcePathConstants;
 import org.apache.airavata.services.registry.rest.utils.RestServicesConstants;
 
 import javax.servlet.ServletContext;
@@ -40,7 +41,7 @@ import java.util.List;
  * This class is a REST interface for all the operations related to Project that are exposed in
  * Airavata Registry API
  */
-@Path("/registry/api/projectregistry")
+@Path(ResourcePathConstants.ProjectResourcePathConstants.REGISTRY_API_PROJECTREGISTRY)
 public class ProjectRegistryResource {
     private AiravataRegistry2 airavataRegistry;
 
@@ -57,7 +58,7 @@ public class ProjectRegistryResource {
      * @return HTTP response
      */
     @GET
-    @Path("project/exist")
+    @Path(ResourcePathConstants.ProjectResourcePathConstants.PROJECT_EXIST)
     @Produces(MediaType.TEXT_PLAIN)
     public Response isWorkspaceProjectExists(@QueryParam("projectName") String projectName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -87,7 +88,7 @@ public class ProjectRegistryResource {
      * @return HTTP response
      */
     @POST
-    @Path("project/exist")
+    @Path(ResourcePathConstants.ProjectResourcePathConstants.PROJECT_EXIST_CREATE)
     @Produces(MediaType.TEXT_PLAIN)
     public Response isWorkspaceProjectExists(@FormParam("projectName") String projectName,
                                              @FormParam("createIfNotExists") String createIfNotExists) {
@@ -120,7 +121,7 @@ public class ProjectRegistryResource {
      * @return HTTP response
      */
     @POST
-    @Path("add/project")
+    @Path(ResourcePathConstants.ProjectResourcePathConstants.ADD_PROJECT)
     @Produces(MediaType.TEXT_PLAIN)
     public Response addWorkspaceProject(@FormParam("projectName") String projectName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -147,7 +148,7 @@ public class ProjectRegistryResource {
      * @return HTTP response
      */
     @POST
-    @Path("update/project")
+    @Path(ResourcePathConstants.ProjectResourcePathConstants.UPDATE_PROJECT)
     @Produces(MediaType.TEXT_PLAIN)
     public Response updateWorkspaceProject(@FormParam("projectName") String projectName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -174,7 +175,7 @@ public class ProjectRegistryResource {
      * @return HTTP response
      */
     @DELETE
-    @Path("delete/project")
+    @Path(ResourcePathConstants.ProjectResourcePathConstants.DELETE_PROJECT)
     @Produces(MediaType.TEXT_PLAIN)
     public Response deleteWorkspaceProject(@QueryParam("projectName") String projectName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -200,7 +201,7 @@ public class ProjectRegistryResource {
      * @return HTTP response
      */
     @GET
-    @Path("get/project")
+    @Path(ResourcePathConstants.ProjectResourcePathConstants.GET_PROJECT)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getWorkspaceProject(@QueryParam("projectName") String projectName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -231,7 +232,7 @@ public class ProjectRegistryResource {
      * @return HTTP response
      */
     @GET
-    @Path("get/projects")
+    @Path(ResourcePathConstants.ProjectResourcePathConstants.GET_PROJECTS)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getWorkspaceProjects() {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);

Modified: airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ProvenanceRegistryResource.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ProvenanceRegistryResource.java?rev=1406912&r1=1406911&r2=1406912&view=diff
==============================================================================
--- airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ProvenanceRegistryResource.java (original)
+++ airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/ProvenanceRegistryResource.java Thu Nov  8 04:01:13 2012
@@ -28,6 +28,7 @@ import org.apache.airavata.registry.api.
 import org.apache.airavata.services.registry.rest.resourcemappings.ExperimentDataList;
 import org.apache.airavata.services.registry.rest.resourcemappings.ExperimentIDList;
 import org.apache.airavata.services.registry.rest.resourcemappings.WorkflowInstancesList;
+import org.apache.airavata.services.registry.rest.utils.ResourcePathConstants;
 import org.apache.airavata.services.registry.rest.utils.RestServicesConstants;
 
 import javax.servlet.ServletContext;
@@ -46,7 +47,7 @@ import java.util.List;
  * This class is the REST interface for all the provenance data related methods that are exposed
  * by Airavata Registry API
  */
-@Path("/registry/api/provenanceregistry")
+@Path(ResourcePathConstants.ProvenanceResourcePathConstants.REGISTRY_API_PROVENANCEREGISTRY)
 public class ProvenanceRegistryResource {
     private AiravataRegistry2 airavataRegistry;
 
@@ -64,7 +65,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("update/experiment")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_EXPERIMENT)
     @Produces(MediaType.TEXT_PLAIN)
     public Response updateExperimentExecutionUser(@FormParam("experimentId") String experimentId,
                                                   @FormParam("user") String user) {
@@ -87,7 +88,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/experiment/executionuser")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.GET_EXPERIMENT_EXECUTIONUSER)
     @Produces(MediaType.TEXT_PLAIN)
     public Response getExperimentExecutionUser(@QueryParam("experimentId") String experimentId) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -115,7 +116,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/experiment/name")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.GET_EXPERIMENT_NAME)
     @Produces(MediaType.TEXT_PLAIN)
     public Response getExperimentName(@QueryParam("experimentId") String experimentId) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -144,7 +145,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("update/experimentname")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_EXPERIMENTNAME)
     @Produces(MediaType.TEXT_PLAIN)
     public Response updateExperimentName(@FormParam("experimentId") String experimentId,
                                          @FormParam("experimentName") String experimentName) {
@@ -167,7 +168,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/experimentmetadata")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.GET_EXPERIMENTMETADATA)
     @Produces(MediaType.TEXT_PLAIN)
     public Response getExperimentMetadata(@QueryParam("experimentId") String experimentId) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -196,7 +197,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("update/experimentmetadata")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_EXPERIMENTMETADATA)
     @Produces(MediaType.TEXT_PLAIN)
     public Response updateExperimentMetadata(@FormParam("experimentId") String experimentId,
                                              @FormParam("metadata") String metadata) {
@@ -220,7 +221,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/workflowtemplatename")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.GET_WORKFLOWTEMPLATENAME)
     @Produces(MediaType.TEXT_PLAIN)
     public Response getWorkflowExecutionTemplateName(@QueryParam("workflowInstanceId") String workflowInstanceId) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -249,7 +250,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("update/workflowinstancetemplatename")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_WORKFLOWINSTANCETEMPLATENAME)
     @Produces(MediaType.TEXT_PLAIN)
     public Response setWorkflowInstanceTemplateName(@FormParam("workflowInstanceId") String workflowInstanceId,
                                                     @FormParam("templateName") String templateName) {
@@ -272,7 +273,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/experimentworkflowinstances")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.GET_EXPERIMENTWORKFLOWINSTANCES)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getExperimentWorkflowInstances(@QueryParam("experimentId") String experimentId) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -306,7 +307,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("workflowinstance/exist/check")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.WORKFLOWINSTANCE_EXIST_CHECK)
     @Produces(MediaType.TEXT_PLAIN)
     public Response isWorkflowInstanceExists(@QueryParam("instanceId") String instanceId) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -337,7 +338,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("workflowinstance/exist/create")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.WORKFLOWINSTANCE_EXIST_CREATE)
     @Produces(MediaType.TEXT_PLAIN)
     public Response isWorkflowInstanceExistsThenCreate(@QueryParam("instanceId") String instanceId,
                                                        @QueryParam("createIfNotPresent") boolean createIfNotPresent) {
@@ -367,7 +368,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("update/workflowinstancestatus/instanceid")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_WORKFLOWINSTANCESTATUS_INSTANCEID)
     @Produces(MediaType.TEXT_PLAIN)
     public Response updateWorkflowInstanceStatusByInstance(@FormParam("instanceId") String instanceId,
                                                            @FormParam("executionStatus") String executionStatus) {
@@ -393,7 +394,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("update/workflowinstancestatus")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_WORKFLOWINSTANCESTATUS)
     @Produces(MediaType.TEXT_PLAIN)
     public Response updateWorkflowInstanceStatus(@FormParam("workflowInstanceId") String workflowInstanceId,
                                                  @FormParam("executionStatus") String executionStatus,
@@ -426,7 +427,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/workflowinstancestatus")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.GET_WORKFLOWINSTANCESTATUS)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getWorkflowInstanceStatus(@QueryParam("instanceId") String instanceId) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -456,7 +457,7 @@ public class ProvenanceRegistryResource 
      * @return  HTTP response
      */
     @POST
-    @Path("update/workflownodeinput")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_WORKFLOWNODEINPUT)
     @Produces(MediaType.TEXT_PLAIN)
     public Response updateWorkflowNodeInput(@FormParam("nodeID") String nodeID,
                                             @FormParam("workflowInstanceId") String workflowInstanceID,
@@ -485,7 +486,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("update/workflownodeoutput")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_WORKFLOWNODEOUTPUT)
     @Produces(MediaType.TEXT_PLAIN)
     public Response updateWorkflowNodeOutput(@FormParam("nodeID") String nodeID,
                                              @FormParam("workflowInstanceId") String workflowInstanceID,
@@ -661,7 +662,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/experiment")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.GET_EXPERIMENT)
     @Produces(MediaType.APPLICATION_XML)
     public Response getExperiment(@QueryParam("experimentId") String experimentId) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -689,7 +690,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/experimentId/user")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.GET_EXPERIMENT_ID_USER)
     @Produces(MediaType.APPLICATION_XML)
     public Response getExperimentIdByUser(@QueryParam("username") String username) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -720,7 +721,7 @@ public class ProvenanceRegistryResource 
      *
      */
     @GET
-    @Path("get/experiment/user")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.GET_EXPERIMENT_USER)
     @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
     public Response getExperimentByUser(@QueryParam("username") String username){
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -756,7 +757,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @POST
-    @Path("update/workflownode/status")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_WORKFLOWNODE_STATUS)
     @Produces(MediaType.TEXT_PLAIN)
     public Response updateWorkflowNodeStatus(@FormParam("workflowInstanceId") String workflowInstanceId,
                                              @FormParam("nodeId") String nodeId,
@@ -782,7 +783,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/workflownode/status")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.GET_WORKFLOWNODE_STATUS)
     @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     public Response getWorkflowNodeStatus(@QueryParam("workflowInstanceId") String workflowInstanceId,
                                           @QueryParam("nodeId") String nodeId){
@@ -814,7 +815,7 @@ public class ProvenanceRegistryResource 
      * @return  HTTP response
      */
     @GET
-    @Path("get/workflownode/starttime")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.GET_WORKFLOWNODE_STARTTIME)
     @Produces(MediaType.TEXT_PLAIN)
     public Response getWorkflowNodeStartTime(@QueryParam("workflowInstanceId") String workflowInstanceId,
                                              @QueryParam("nodeId") String nodeId) {
@@ -845,7 +846,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/workflow/starttime")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.GET_WORKFLOW_STARTTIME)
     @Produces(MediaType.TEXT_PLAIN)
     public Response getWorkflowStartTime(@QueryParam("workflowInstanceId") String workflowInstanceId) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -875,7 +876,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("update/workflownode/gramdata")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_WORKFLOWNODE_GRAMDATA)
     @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     @Produces(MediaType.TEXT_PLAIN)
     public Response updateWorkflowNodeGramData(WorkflowNodeGramData workflowNodeGramData) {
@@ -899,7 +900,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("get/workflowinstancedata")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.GET_WORKFLOWINSTANCEDATA)
     @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     public Response getWorkflowInstanceData(@QueryParam("workflowInstanceId") String workflowInstanceId) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -928,7 +929,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("workflowinstance/exist")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.WORKFLOWINSTANCE_EXIST)
     @Produces(MediaType.TEXT_PLAIN)
     public Response isWorkflowInstanceNodePresent(@QueryParam("workflowInstanceId") String workflowInstanceId,
                                                   @QueryParam("nodeId") String nodeId){
@@ -959,7 +960,7 @@ public class ProvenanceRegistryResource 
      * @return HTTP response
      */
     @GET
-    @Path("workflowinstance/nodeData")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.WORKFLOWINSTANCE_NODE_DATA)
     @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     public Response getWorkflowInstanceNodeData(@QueryParam("workflowInstanceId") String workflowInstanceId,
                                                 @QueryParam("nodeId") String nodeId) {
@@ -991,7 +992,7 @@ public class ProvenanceRegistryResource 
      * @return  HTTP response
      */
     @POST
-    @Path("add/workflowinstance")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.ADD_WORKFLOWINSTANCE)
     @Produces(MediaType.TEXT_PLAIN)
     public Response addWorkflowInstance(@FormParam("experimentId") String experimentId,
                                         @FormParam("workflowInstanceId") String workflowInstanceId,
@@ -1017,7 +1018,7 @@ public class ProvenanceRegistryResource 
      * @return  HTTP response
      */
     @POST
-    @Path("update/workflownodetype")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_WORKFLOWNODETYPE)
     @Produces(MediaType.TEXT_PLAIN)
     public Response updateWorkflowNodeType(@FormParam("workflowInstanceId") String workflowInstanceId,
                                            @FormParam("nodeId") String nodeId,
@@ -1050,7 +1051,7 @@ public class ProvenanceRegistryResource 
      * @return  HTTP response
      */
     @POST
-    @Path("add/workflowinstancenode")
+    @Path(ResourcePathConstants.ProvenanceResourcePathConstants.ADD_WORKFLOWINSTANCENODE)
     @Produces(MediaType.TEXT_PLAIN)
     public Response addWorkflowInstanceNode(@FormParam("workflowInstanceId") String workflowInstanceId,
                                             @FormParam("nodeId") String nodeId) {

Modified: airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/PublishWorkflowRegistryResource.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/PublishWorkflowRegistryResource.java?rev=1406912&r1=1406911&r2=1406912&view=diff
==============================================================================
--- airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/PublishWorkflowRegistryResource.java (original)
+++ airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/PublishWorkflowRegistryResource.java Thu Nov  8 04:01:13 2012
@@ -29,6 +29,7 @@ import org.apache.airavata.registry.api.
 import org.apache.airavata.services.registry.rest.resourcemappings.PublishWorkflowNamesList;
 import org.apache.airavata.services.registry.rest.resourcemappings.Workflow;
 import org.apache.airavata.services.registry.rest.resourcemappings.WorkflowList;
+import org.apache.airavata.services.registry.rest.utils.ResourcePathConstants;
 import org.apache.airavata.services.registry.rest.utils.RestServicesConstants;
 
 import javax.servlet.ServletContext;
@@ -44,7 +45,7 @@ import java.util.Map;
  * This class is the REST interface for all the operations related to published workflows that has
  * been exposed by Airavata Registry API
  */
-@Path("/registry/api/publishwfregistry")
+@Path(ResourcePathConstants.PublishedWFConstants.REGISTRY_API_PUBLISHWFREGISTRY)
 public class PublishWorkflowRegistryResource {
     private AiravataRegistry2 airavataRegistry;
 
@@ -59,7 +60,7 @@ public class PublishWorkflowRegistryReso
      * @return HTTP response
      */
     @GET
-    @Path("publishwf/exist")
+    @Path(ResourcePathConstants.PublishedWFConstants.PUBLISHWF_EXIST)
     @Produces(MediaType.TEXT_PLAIN)
     public Response isPublishedWorkflowExists(@QueryParam("workflowname") String workflowname) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -88,7 +89,7 @@ public class PublishWorkflowRegistryReso
      * @return HTTP response
      */
     @POST
-    @Path("publish/workflow")
+    @Path(ResourcePathConstants.PublishedWFConstants.PUBLISH_WORKFLOW)
     @Produces(MediaType.TEXT_PLAIN)
     public Response publishWorkflow(@FormParam("workflowName") String workflowName,
                                     @FormParam("publishWorkflowName") String publishWorkflowName)  {
@@ -119,7 +120,7 @@ public class PublishWorkflowRegistryReso
      * @return HTTP response
      */
     @POST
-    @Path("publish/default/workflow")
+    @Path(ResourcePathConstants.PublishedWFConstants.PUBLISH_DEFAULT_WORKFLOW)
     @Produces(MediaType.TEXT_PLAIN)
     public Response publishWorkflow(@FormParam("workflowName") String workflowName){
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -149,7 +150,7 @@ public class PublishWorkflowRegistryReso
      * @return HTTP response
      */
     @GET
-    @Path("get/publishworkflowgraph")
+    @Path(ResourcePathConstants.PublishedWFConstants.GET_PUBLISHWORKFLOWGRAPH)
     @Produces(MediaType.TEXT_PLAIN)
     public Response getPublishedWorkflowGraphXML(@QueryParam("workflowName") String workflowName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -180,7 +181,7 @@ public class PublishWorkflowRegistryReso
      * @return HTTP response
      */
     @GET
-    @Path("get/publishworkflownames")
+    @Path(ResourcePathConstants.PublishedWFConstants.GET_PUBLISHWORKFLOWNAMES)
     @Produces(MediaType.TEXT_PLAIN)
     public Response getPublishedWorkflowNames() {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -209,7 +210,7 @@ public class PublishWorkflowRegistryReso
      * @return HTTP response
      */
     @GET
-    @Path("get/publishworkflows")
+    @Path(ResourcePathConstants.PublishedWFConstants.GET_PUBLISHWORKFLOWS)
     @Produces(MediaType.TEXT_PLAIN)
     public Response getPublishedWorkflows() {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -247,7 +248,7 @@ public class PublishWorkflowRegistryReso
      * @return HTTP response
      */
     @GET
-    @Path("remove/publishworkflow")
+    @Path(ResourcePathConstants.PublishedWFConstants.REMOVE_PUBLISHWORKFLOW)
     @Produces(MediaType.TEXT_PLAIN)
     public Response removePublishedWorkflow(@QueryParam("workflowName") String workflowName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);

Modified: airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/UserWorkflowRegistryResource.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/UserWorkflowRegistryResource.java?rev=1406912&r1=1406911&r2=1406912&view=diff
==============================================================================
--- airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/UserWorkflowRegistryResource.java (original)
+++ airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/UserWorkflowRegistryResource.java Thu Nov  8 04:01:13 2012
@@ -27,6 +27,7 @@ import org.apache.airavata.registry.api.
 import org.apache.airavata.registry.api.exception.worker.UserWorkflowDoesNotExistsException;
 import org.apache.airavata.services.registry.rest.resourcemappings.Workflow;
 import org.apache.airavata.services.registry.rest.resourcemappings.WorkflowList;
+import org.apache.airavata.services.registry.rest.utils.ResourcePathConstants;
 import org.apache.airavata.services.registry.rest.utils.RestServicesConstants;
 
 import javax.servlet.ServletContext;
@@ -42,7 +43,7 @@ import java.util.Map;
  * This class is a REST interface to all the operations related to user workflows that has been
  * exposed by Airavata Registry API
  */
-@Path("/registry/api/userwfregistry")
+@Path(ResourcePathConstants.UserWFConstants.REGISTRY_API_USERWFREGISTRY)
 public class UserWorkflowRegistryResource {
     private AiravataRegistry2 airavataRegistry;
 
@@ -57,7 +58,7 @@ public class UserWorkflowRegistryResourc
      * @return HTTP response
      */
     @GET
-    @Path("workflow/exist")
+    @Path(ResourcePathConstants.UserWFConstants.WORKFLOW_EXIST)
     @Produces(MediaType.TEXT_PLAIN)
     public Response isWorkflowExists(@QueryParam("workflowName") String workflowName){
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -86,7 +87,7 @@ public class UserWorkflowRegistryResourc
      * @return HTTP response
      */
     @POST
-    @Path("add/workflow")
+    @Path(ResourcePathConstants.UserWFConstants.ADD_WORKFLOW)
     @Produces(MediaType.TEXT_PLAIN)
     public Response addWorkflow(@FormParam("workflowName") String workflowName,
                                 @FormParam("workflowGraphXml") String workflowGraphXml) {
@@ -114,7 +115,7 @@ public class UserWorkflowRegistryResourc
      * @return HTTP response
      */
     @POST
-    @Path("update/workflow")
+    @Path(ResourcePathConstants.UserWFConstants.UPDATE_WORKFLOW)
     @Produces(MediaType.TEXT_PLAIN)
     public Response updateWorkflow(@FormParam("workflowName") String workflowName,
                                    @FormParam("workflowGraphXml") String workflowGraphXml){
@@ -141,7 +142,7 @@ public class UserWorkflowRegistryResourc
      * @return HTTP response
      */
     @GET
-    @Path("get/workflowgraph")
+    @Path(ResourcePathConstants.UserWFConstants.GET_WORKFLOWGRAPH)
     @Produces(MediaType.TEXT_PLAIN)
     public Response getWorkflowGraphXML(@QueryParam("workflowName") String workflowName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -172,7 +173,7 @@ public class UserWorkflowRegistryResourc
      * @return HTTP response
      */
     @GET
-    @Path("get/workflows")
+    @Path(ResourcePathConstants.UserWFConstants.GET_WORKFLOWS)
     @Produces(MediaType.TEXT_PLAIN)
     public Response getWorkflows()  {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
@@ -210,7 +211,7 @@ public class UserWorkflowRegistryResourc
      * @return HTTP response
      */
     @GET
-    @Path("remove/workflow")
+    @Path(ResourcePathConstants.UserWFConstants.REMOVE_WORKFLOW)
     @Produces(MediaType.TEXT_PLAIN)
     public Response removeWorkflow(@QueryParam("workflowName") String workflowName) {
         airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);

Added: airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/utils/ResourcePathConstants.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/utils/ResourcePathConstants.java?rev=1406912&view=auto
==============================================================================
--- airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/utils/ResourcePathConstants.java (added)
+++ airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/utils/ResourcePathConstants.java Thu Nov  8 04:01:13 2012
@@ -0,0 +1,162 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.airavata.services.registry.rest.utils;
+
+public class ResourcePathConstants {
+
+
+    public final class ConfigResourcePathConstants {
+        public static final String CONFIGURATION_REGISTRY_RESOURCE = "/registry/api/congfigregistry";
+        public static final String GET_CONFIGURATION = "get/configuration";
+        public static final String GET_CONFIGURATION_LIST = "get/configurationlist";
+        public static final String SAVE_CONFIGURATION = "save/configuration";
+        public static final String UPDATE_CONFIGURATION = "update/configuration";
+        public static final String DELETE_ALL_CONFIGURATION = "delete/allconfiguration";
+        public static final String DELETE_CONFIGURATION ="delete/configuration";
+        public static final String GET_GFAC_URI_LIST = "get/gfac/urilist";
+        public static final String GET_WFINTERPRETER_URI_LIST = "get/workflowinterpreter/urilist";
+        public static final String GET_EVENTING_URI = "get/eventingservice/uri";
+        public static final String GET_MESSAGE_BOX_URI = "get/messagebox/uri";
+        public static final String ADD_GFAC_URI = "add/gfacuri";
+        public static final String ADD_WFINTERPRETER_URI = "add/workflowinterpreteruri";
+        public static final String ADD_EVENTING_URI = "add/eventinguri";
+        public static final String ADD_MESSAGE_BOX_URI = "add/msgboxuri";
+        public static final String ADD_GFAC_URI_DATE = "add/gfacuri/date";
+        public static final String ADD_WFINTERPRETER_URI_DATE = "add/workflowinterpreteruri/date";
+        public static final String ADD_EVENTING_URI_DATE = "add/eventinguri/date";
+        public static final String ADD_MSG_BOX_URI_DATE = "add/msgboxuri/date";
+        public static final String DELETE_GFAC_URI = "delete/gfacuri";
+        public static final String DELETE_ALL_GFAC_URIS = "delete/allgfacuris";
+        public static final String DELETE_WFINTERPRETER_URI = "delete/workflowinterpreteruri";
+        public static final String DELETE_ALL_WFINTERPRETER_URIS = "delete/allworkflowinterpreteruris";
+        public static final String DELETE_EVENTING_URI = "delete/eventinguri";
+        public static final String DELETE_MSG_BOX_URI = "delete/msgboxuri";
+    }
+
+    public final class DecResourcePathConstants {
+        public static final String DESC_RESOURCE_PATH = "/registry/api/descriptors";
+        public static final String HOST_DESC_EXISTS = "hostdescriptor/exist";
+        public static final String HOST_DESC_SAVE = "hostdescriptor/save";
+        public static final String HOST_DESC_UPDATE = "hostdescriptor/update";
+        public static final String HOST_DESC = "host/description";
+        public static final String HOST_DESC_DELETE = "hostdescriptor/delete";
+        public static final String GET_HOST_DESCS = "get/hostdescriptors";
+        public static final String GET_HOST_DESCS_NAMES = "get/hostdescriptor/names";
+        public static final String SERVICE_DESC_EXISTS = "servicedescriptor/exist";
+        public static final String SERVICE_DESC_SAVE = "servicedescriptor/save";
+        public static final String SERVICE_DESC_UPDATE = "servicedescriptor/update";
+        public static final String SERVICE_DESC = "servicedescriptor/description";
+        public static final String SERVICE_DESC_DELETE = "servicedescriptor/delete";
+        public static final String GET_SERVICE_DESCS = "get/servicedescriptors";
+        public static final String APP_DESC_SAVE = "applicationdescriptor/exist";
+        public static final String APP_DESC_BUILD_SAVE = "applicationdescriptor/build/save";
+        public static final String APP_DESC_UPDATE = "applicationdescriptor/update";
+        public static final String APP_DESC_DESCRIPTION = "applicationdescriptor/description";
+        public static final String APP_DESC_ALL_DESCS_HOST_SERVICE = "applicationdescriptors/alldescriptors/host/service";
+        public static final String APP_DESC_ALL_DESCS_SERVICE = "applicationdescriptor/alldescriptors/service";
+        public static final String APP_DESC_ALL_DESCRIPTORS = "applicationdescriptor/alldescriptors";
+        public static final String APP_DESC_NAMES = "applicationdescriptor/names";
+        public static final String APP_DESC_DELETE = "applicationdescriptor/delete";
+    }
+
+    public final class ExperimentResourcePathConstants {
+        public static final String EXP_RESOURCE_PATH  =  "/registry/api/experimentregistry";
+        public static final String DELETE_EXP = "delete/experiment";
+        public static final String GET_APP_EXPS = "get/experiments/all" ;
+        public static final String GET_EXPS_BY_PROJECT = "get/experiments/project" ;
+        public static final String GET_EXPS_BY_DATE =  "get/experiments/date";
+        public static final String GET_EXPS_PER_PROJECT_BY_DATE = "get/experiments/project/date";
+        public static final String ADD_EXP = "add/experiment" ;
+        public static final String EXP_EXISTS = "experiment/exist" ;
+        public static final String EXP_EXISTS_CREATE = "experiment/notexist/create" ;
+    }
+
+    public final class ProjectResourcePathConstants {
+        public static final String REGISTRY_API_PROJECTREGISTRY = "/registry/api/projectregistry";
+        public static final String PROJECT_EXIST = "project/exist";
+        public static final String PROJECT_EXIST_CREATE = "project/exist";
+        public static final String ADD_PROJECT = "add/project";
+        public static final String UPDATE_PROJECT = "update/project";
+        public static final String DELETE_PROJECT = "delete/project";
+        public static final String GET_PROJECT = "get/project";
+        public static final String GET_PROJECTS = "get/projects";
+    }
+
+    public final class ProvenanceResourcePathConstants {
+
+        public static final String REGISTRY_API_PROVENANCEREGISTRY = "/registry/api/provenanceregistry";
+        public static final String UPDATE_EXPERIMENT = "update/experiment";
+        public static final String GET_EXPERIMENT_EXECUTIONUSER = "get/experiment/executionuser";
+        public static final String GET_EXPERIMENT_NAME = "get/experiment/name";
+        public static final String UPDATE_EXPERIMENTNAME = "update/experimentname";
+        public static final String GET_EXPERIMENTMETADATA = "get/experimentmetadata";
+        public static final String UPDATE_EXPERIMENTMETADATA = "update/experimentmetadata";
+        public static final String GET_WORKFLOWTEMPLATENAME = "get/workflowtemplatename";
+        public static final String UPDATE_WORKFLOWINSTANCETEMPLATENAME = "update/workflowinstancetemplatename";
+        public static final String GET_EXPERIMENTWORKFLOWINSTANCES = "get/experimentworkflowinstances";
+        public static final String WORKFLOWINSTANCE_EXIST_CHECK = "workflowinstance/exist/check";
+        public static final String WORKFLOWINSTANCE_EXIST_CREATE = "workflowinstance/exist/create";
+        public static final String UPDATE_WORKFLOWINSTANCESTATUS_INSTANCEID = "update/workflowinstancestatus/instanceid";
+        public static final String UPDATE_WORKFLOWINSTANCESTATUS = "update/workflowinstancestatus";
+        public static final String GET_WORKFLOWINSTANCESTATUS = "get/workflowinstancestatus";
+        public static final String UPDATE_WORKFLOWNODEINPUT = "update/workflownodeinput";
+        public static final String UPDATE_WORKFLOWNODEOUTPUT = "update/workflownodeoutput";
+        public static final String GET_EXPERIMENT = "get/experiment";
+        public static final String GET_EXPERIMENT_ID_USER = "get/experimentId/user";
+        public static final String GET_EXPERIMENT_USER = "get/experiment/user";
+        public static final String UPDATE_WORKFLOWNODE_STATUS = "update/workflownode/status";
+        public static final String GET_WORKFLOWNODE_STATUS = "get/workflownode/status";
+        public static final String GET_WORKFLOWNODE_STARTTIME = "get/workflownode/starttime";
+        public static final String GET_WORKFLOW_STARTTIME = "get/workflow/starttime";
+        public static final String UPDATE_WORKFLOWNODE_GRAMDATA = "update/workflownode/gramdata";
+        public static final String GET_WORKFLOWINSTANCEDATA = "get/workflowinstancedata";
+        public static final String WORKFLOWINSTANCE_EXIST = "workflowinstance/exist";
+        public static final String WORKFLOWINSTANCE_NODE_DATA = "workflowinstance/nodeData";
+        public static final String ADD_WORKFLOWINSTANCE = "add/workflowinstance";
+        public static final String UPDATE_WORKFLOWNODETYPE = "update/workflownodetype";
+        public static final String ADD_WORKFLOWINSTANCENODE = "add/workflowinstancenode";
+    }
+
+    public final class PublishedWFConstants {
+
+        public static final String REGISTRY_API_PUBLISHWFREGISTRY = "/registry/api/publishwfregistry";
+        public static final String PUBLISHWF_EXIST = "publishwf/exist";
+        public static final String PUBLISH_WORKFLOW = "publish/workflow";
+        public static final String PUBLISH_DEFAULT_WORKFLOW = "publish/default/workflow";
+        public static final String GET_PUBLISHWORKFLOWGRAPH = "get/publishworkflowgraph";
+        public static final String GET_PUBLISHWORKFLOWNAMES = "get/publishworkflownames";
+        public static final String GET_PUBLISHWORKFLOWS = "get/publishworkflows";
+        public static final String REMOVE_PUBLISHWORKFLOW = "remove/publishworkflow";
+    }
+
+    public final class UserWFConstants {
+
+        public static final String REGISTRY_API_USERWFREGISTRY = "/registry/api/userwfregistry";
+        public static final String WORKFLOW_EXIST = "workflow/exist";
+        public static final String ADD_WORKFLOW = "add/workflow";
+        public static final String UPDATE_WORKFLOW = "update/workflow";
+        public static final String GET_WORKFLOWGRAPH = "get/workflowgraph";
+        public static final String GET_WORKFLOWS = "get/workflows";
+        public static final String REMOVE_WORKFLOW = "remove/workflow";
+    }
+
+    }



Mime
View raw message