Complete the renaming of context and resource paths.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160035 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Manuele Simi 2017-12-05 04:27:51 +00:00
parent da7841fd0f
commit d2c5d692f6
5 changed files with 10 additions and 11 deletions

View File

@ -1,12 +1,12 @@
package org.gcube.resourcemanagement.manager.io.rs;
/**
* REST paths exposed by the webapp.
* REST paths for the RMContext exposed by the webapp.
*
* @author Manuele Simi (ISTI - CNR)
*
*/
public class ContextPath {
public class RMContextPath {
public static final String CONTEXT_ROOT = "context";

View File

@ -1,12 +1,12 @@
package org.gcube.resourcemanagement.manager.io.rs;
/**
* REST paths exposed by the webapp.
* REST paths exposed by the webapp for RMResource.
*
* @author Manuele Simi (ISTI - CNR)
*
*/
public class ResourcePath {
public class RMResourcePath {
public static final String ROOT = "resource";
}

View File

@ -11,7 +11,7 @@ import javax.ws.rs.core.Response.Status;
import org.gcube.informationsystem.impl.utils.ISMapper;
import org.gcube.informationsystem.model.entity.Context;
import org.gcube.resourcemanagement.manager.io.rs.ContextPath;
import org.gcube.resourcemanagement.manager.io.rs.RMContextPath;
import org.gcube.resourcemanagement.manager.webapp.ResourceInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -25,7 +25,7 @@ import com.fasterxml.jackson.databind.JsonMappingException;
* @author Manuele Simi (ISTI-CNR)
*
*/
@Path(ContextPath.CONTEXT_ROOT)
@Path(RMContextPath.CONTEXT_ROOT)
public class RMContext {
private static Logger logger = LoggerFactory.getLogger(RMContext.class);

View File

@ -3,7 +3,7 @@ package org.gcube.resourcemanagement.manager.webapp.rs;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import org.gcube.resourcemanagement.manager.io.rs.ResourcePath;
import org.gcube.resourcemanagement.manager.io.rs.RMResourcePath;
/**
* Methods for {@link org.gcube.informationsystem.model.entity.Resource} operations.
@ -11,8 +11,8 @@ import org.gcube.resourcemanagement.manager.io.rs.ResourcePath;
* @author Manuele Simi (ISTI-CNR)
*
*/
@Path(ResourcePath.ROOT)
public class Resource {
@Path(RMResourcePath.ROOT)
public class RMResource {
@PUT
public void addToContext() {

View File

@ -42,8 +42,7 @@ public class RMContextTest extends JerseyTest {
/**
* Test method for
* {@link org.gcube.resourcemanagement.manager.webapp.rs.RMContext#create(java.lang.String)}.
* Test method for marshal/unmarshal contexts.
*/
@Test
public void step0_Context() {