You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by he...@apache.org on 2012/10/15 21:46:41 UTC
svn commit: r1398475 -
/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java
Author: heshan
Date: Mon Oct 15 19:46:41 2012
New Revision: 1398475
URL: http://svn.apache.org/viewvc?rev=1398475&view=rev
Log:
Implementing the interfaces.
Modified:
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java
Modified: airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java?rev=1398475&r1=1398474&r2=1398475&view=diff
==============================================================================
--- airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java (original)
+++ airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java Mon Oct 15 19:46:41 2012
@@ -34,10 +34,9 @@ import java.util.Map;
* analogues to main API interfaces of Airavata
*/
@Path("/registry/api")
-//public class RegistryResource implements ConfigurationRegistryService,
-// ProjectsRegistryService, ProvenanceRegistryService, UserWorkflowRegistryService,
-// PublishedWorkflowRegistryService, DescriptorRegistryService{
-public class RegistryResource {
+public class RegistryResource implements ConfigurationRegistryService,
+ ProjectsRegistryService, ProvenanceRegistryService, UserWorkflowRegistryService,
+ PublishedWorkflowRegistryService, DescriptorRegistryService{
private final static Logger logger = LoggerFactory.getLogger(RegistryResource.class);
private JPAResourceAccessor jpa;
private boolean active=false;
@@ -784,7 +783,7 @@ public class RegistryResource {
}
}
-/* @POST
+ @POST
@Path("applicationdescriptor/save")
@Produces("text/xml")
public Response addApplicationDescriptor(@FormParam("service") String service,
@@ -810,7 +809,7 @@ public class RegistryResource {
Response.ResponseBuilder builder = Response.status(Response.Status.INTERNAL_SERVER_ERROR);
return builder.build();
}
- }*/
+ }
@POST
@Path("applicationdescriptor/save")
@@ -1288,7 +1287,7 @@ public class RegistryResource {
}
}
-/* @POST
+ @POST
@Path("add/experiment")
@Produces("text/plain")
public Response addExperiment(@FormParam("projectName") String projectName,
@@ -1309,7 +1308,7 @@ public class RegistryResource {
return builder.build();
}
- }*/
+ }
@GET
@Path("experiment/exist/check")