Rename context resource.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@179109 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
79523020dd
commit
a38e34406b
|
@ -4,7 +4,7 @@ import javax.ws.rs.ApplicationPath;
|
||||||
import javax.ws.rs.core.MediaType;
|
import javax.ws.rs.core.MediaType;
|
||||||
|
|
||||||
import org.gcube.resourcemanagement.manager.io.rs.RMContextsAccess;
|
import org.gcube.resourcemanagement.manager.io.rs.RMContextsAccess;
|
||||||
import org.gcube.resourcemanagement.manager.webapp.rs.RMContexts;
|
import org.gcube.resourcemanagement.manager.webapp.rs.RMContext;
|
||||||
import org.gcube.resourcemanagement.manager.webapp.rs.RMTestForGXRest;
|
import org.gcube.resourcemanagement.manager.webapp.rs.RMTestForGXRest;
|
||||||
import org.glassfish.jersey.server.ResourceConfig;
|
import org.glassfish.jersey.server.ResourceConfig;
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ public class ResourceInitializer extends ResourceConfig {
|
||||||
|
|
||||||
public ResourceInitializer(){
|
public ResourceInitializer(){
|
||||||
//where jersey will find the operation's handler
|
//where jersey will find the operation's handler
|
||||||
packages(RMContexts.class.getPackage().toString(),RMTestForGXRest.class.getPackage().toString());
|
packages(RMContext.class.getPackage().toString(),RMTestForGXRest.class.getPackage().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -33,9 +33,9 @@ import java.util.UUID;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Path(CONTEXT_ROOT)
|
@Path(CONTEXT_ROOT)
|
||||||
public class RMContexts {
|
public class RMContext {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(RMContexts.class);
|
private static Logger logger = LoggerFactory.getLogger(RMContext.class);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* e.g. POST
|
* e.g. POST
|
|
@ -13,12 +13,12 @@ import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.core.Response.Status;
|
import javax.ws.rs.core.Response.Status;
|
||||||
|
|
||||||
import org.gcube.common.authorization.client.Constants;
|
import org.gcube.common.authorization.client.Constants;
|
||||||
import org.gcube.common.authorization.client.exceptions.ObjectNotFound;
|
|
||||||
import org.gcube.common.authorization.library.AuthorizationEntry;
|
import org.gcube.common.authorization.library.AuthorizationEntry;
|
||||||
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
||||||
import org.gcube.common.gxrest.response.inbound.GXInboundResponse;
|
import org.gcube.common.gxrest.response.inbound.GXInboundResponse;
|
||||||
import org.gcube.common.scope.api.ScopeProvider;
|
import org.gcube.common.scope.api.ScopeProvider;
|
||||||
import org.gcube.resourcemanagement.manager.io.rs.RMContextsAccess;
|
import org.gcube.resourcemanagement.manager.io.rs.RMContextsAccess;
|
||||||
|
import org.gcube.resourcemanagement.manager.webapp.rs.RMContext;
|
||||||
import org.gcube.resourcemanagement.manager.webapp.rs.RMTestForGXRest;
|
import org.gcube.resourcemanagement.manager.webapp.rs.RMTestForGXRest;
|
||||||
import org.glassfish.jersey.server.ResourceConfig;
|
import org.glassfish.jersey.server.ResourceConfig;
|
||||||
import org.glassfish.jersey.test.JerseyTest;
|
import org.glassfish.jersey.test.JerseyTest;
|
||||||
|
@ -109,7 +109,7 @@ public class GXRestTest extends JerseyTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test method for
|
* Test method for
|
||||||
* {@link org.gcube.resourcemanagement.manager.webapp.rs.RMContexts#delete(String, String)}
|
* {@link RMContext#delete(String, String)}
|
||||||
*
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -14,7 +14,6 @@ import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.core.Response.Status;
|
import javax.ws.rs.core.Response.Status;
|
||||||
|
|
||||||
import org.gcube.common.authorization.client.Constants;
|
import org.gcube.common.authorization.client.Constants;
|
||||||
import org.gcube.common.authorization.client.exceptions.ObjectNotFound;
|
|
||||||
import org.gcube.common.authorization.library.AuthorizationEntry;
|
import org.gcube.common.authorization.library.AuthorizationEntry;
|
||||||
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
||||||
import org.gcube.common.gxrest.response.inbound.GXInboundResponse;
|
import org.gcube.common.gxrest.response.inbound.GXInboundResponse;
|
||||||
|
@ -28,7 +27,7 @@ import org.gcube.informationsystem.resourceregistry.context.ResourceRegistryCont
|
||||||
import org.gcube.informationsystem.utils.ISMapper;
|
import org.gcube.informationsystem.utils.ISMapper;
|
||||||
import org.gcube.resourcemanagement.manager.io.rs.RMCreateContextCode;
|
import org.gcube.resourcemanagement.manager.io.rs.RMCreateContextCode;
|
||||||
import org.gcube.resourcemanagement.manager.io.rs.RMContextsAccess;
|
import org.gcube.resourcemanagement.manager.io.rs.RMContextsAccess;
|
||||||
import org.gcube.resourcemanagement.manager.webapp.rs.RMContexts;
|
import org.gcube.resourcemanagement.manager.webapp.rs.RMContext;
|
||||||
import org.glassfish.jersey.server.ResourceConfig;
|
import org.glassfish.jersey.server.ResourceConfig;
|
||||||
import org.glassfish.jersey.test.JerseyTest;
|
import org.glassfish.jersey.test.JerseyTest;
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
|
@ -122,7 +121,7 @@ public class RMContextTest extends JerseyTest {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Application configure() {
|
protected Application configure() {
|
||||||
return new ResourceConfig(RMContexts.class);
|
return new ResourceConfig(RMContext.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -146,7 +145,7 @@ public class RMContextTest extends JerseyTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test method for
|
* Test method for
|
||||||
* {@link org.gcube.resourcemanagement.manager.webapp.rs.RMContexts#create(String, String)}.
|
* {@link RMContext#create(String, String)}.
|
||||||
*
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
@ -191,7 +190,7 @@ public class RMContextTest extends JerseyTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test method for
|
* Test method for
|
||||||
* {@link org.gcube.resourcemanagement.manager.webapp.rs.RMContexts#create(String, String)}
|
* {@link RMContext#create(String, String)}
|
||||||
* when the parent does not exist.
|
* when the parent does not exist.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
|
@ -220,7 +219,7 @@ public class RMContextTest extends JerseyTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test method for
|
* Test method for
|
||||||
* {@link org.gcube.resourcemanagement.manager.webapp.rs.RMContexts#create(String, String)}.
|
* {@link RMContext#create(String, String)}.
|
||||||
* when the parent does not exist.
|
* when the parent does not exist.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
|
@ -250,7 +249,7 @@ public class RMContextTest extends JerseyTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test method for
|
* Test method for
|
||||||
* {@link org.gcube.resourcemanagement.manager.webapp.rs.RMContexts#delete(String, String)}
|
* {@link RMContext#delete(String, String)}
|
||||||
*
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
@ -282,7 +281,7 @@ public class RMContextTest extends JerseyTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test method for
|
* Test method for
|
||||||
* {@link org.gcube.resourcemanagement.manager.webapp.rs.RMContexts#delete(String, String)}
|
* {@link RMContext#delete(String, String)}
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void step5_DeleteParent() {
|
public void step5_DeleteParent() {
|
||||||
|
|
Reference in New Issue