Remove outdated rest package.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@156280 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Manuele Simi 2017-10-15 11:51:04 +00:00
parent 5e62131194
commit e48c8eeb8e
4 changed files with 0 additions and 66 deletions

View File

@ -1,15 +0,0 @@
package org.gcube.resourcemanagement.manager.io.rest;
/**
* REST paths exposed by the webapp.
*
* @author manuelesimi
*
*/
public class AccessPath {
public static final String ACCESS_PATH_PART = "access";
public static final String SCHEMA_PATH_PART = "schema";
public static final String POLYMORPHIC_PARAM = "polymorphic";
}

View File

@ -1,5 +0,0 @@
/**
* @author Manuele Simi (ISTI - CNR)
*
*/
package org.gcube.resourcemanagement.manager.io.rest;

View File

@ -1,41 +0,0 @@
package org.gcube.resourcemanagement.manager.webapp.rest;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import org.gcube.resourcemanagement.manager.io.rest.*;
import org.gcube.resourcemanagement.manager.webapp.ResourceInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* @author Manuele Simi (ISTI-CNR)
*
*/
@Path(AccessPath.ACCESS_PATH_PART)
public class Access {
private static Logger logger = LoggerFactory.getLogger(Access.class);
public static final String ID_PATH_PARAM = "id";
public static final String TYPE_PATH_PARAM = "type";
/*
* e.g. GET /resource-manager/access/schema/ContactFacet?polymorphic=true
*/
@GET
@Path(AccessPath.SCHEMA_PATH_PART + "/{" + TYPE_PATH_PARAM + "}")
@Produces(ResourceInitializer.APPLICATION_JSON_CHARSET_UTF_8)
public String voidMethod(@PathParam(TYPE_PATH_PARAM) String type,
@QueryParam(AccessPath.POLYMORPHIC_PARAM) @DefaultValue("false") Boolean polymorphic)
{
logger.info("Requested Schema for type {}", type);
return "";
}
}

View File

@ -1,5 +0,0 @@
/**
* @author Manuele Simi (ISTI - CNR)
*
*/
package org.gcube.resourcemanagement.manager.webapp.rest;