git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@173802 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
91676d60cf
commit
32717609c8
|
@ -23,6 +23,7 @@ import org.gcube.datatransfer.resolver.catalogue.resource.ApplicationProfileRead
|
||||||
import org.gcube.datatransfer.resolver.catalogue.resource.CkanCatalogueConfigurationsReader;
|
import org.gcube.datatransfer.resolver.catalogue.resource.CkanCatalogueConfigurationsReader;
|
||||||
import org.gcube.datatransfer.resolver.catalogue.resource.GatewayCKANCatalogueReference;
|
import org.gcube.datatransfer.resolver.catalogue.resource.GatewayCKANCatalogueReference;
|
||||||
import org.gcube.datatransfer.resolver.catalogue.resource.UpdateApplicationProfileCatalogueResolver;
|
import org.gcube.datatransfer.resolver.catalogue.resource.UpdateApplicationProfileCatalogueResolver;
|
||||||
|
import org.gcube.smartgears.utils.InnerMethodName;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
@ -43,6 +44,7 @@ public class CatalogueResolver {
|
||||||
@GET
|
@GET
|
||||||
@Path("{entityContext:ctlg(-(o|g|p|d)?}/{vreName}/{entityName}")
|
@Path("{entityContext:ctlg(-(o|g|p|d)?}/{vreName}/{entityName}")
|
||||||
public Response resolveCatalogue(@PathParam("entityName") String entityName, @PathParam("vreName") String vreName, @PathParam("entityContext") String entityContext) {
|
public Response resolveCatalogue(@PathParam("entityName") String entityName, @PathParam("vreName") String vreName, @PathParam("entityContext") String entityContext) {
|
||||||
|
InnerMethodName.instance.set("resolveCataloguePublicLink");
|
||||||
logger.info(CatalogueResolver.class.getSimpleName()+" GET starts...");
|
logger.info(CatalogueResolver.class.getSimpleName()+" GET starts...");
|
||||||
try {
|
try {
|
||||||
String entityContextValue = ResourceCatalogueCodes.valueOfCodeId(entityContext).getValue();
|
String entityContextValue = ResourceCatalogueCodes.valueOfCodeId(entityContext).getValue();
|
||||||
|
@ -88,6 +90,7 @@ public class CatalogueResolver {
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@Produces(MediaType.TEXT_PLAIN)
|
@Produces(MediaType.TEXT_PLAIN)
|
||||||
public Response postCatalogue(@Context HttpServletRequest req, CatalogueRequest jsonRequest) {
|
public Response postCatalogue(@Context HttpServletRequest req, CatalogueRequest jsonRequest) {
|
||||||
|
InnerMethodName.instance.set("postCataloguePublicLink");
|
||||||
logger.info(CatalogueResolver.class.getSimpleName()+" POST starts...");
|
logger.info(CatalogueResolver.class.getSimpleName()+" POST starts...");
|
||||||
//final CatalogueEntityRequest cer = new CatalogueEntityRequest();
|
//final CatalogueEntityRequest cer = new CatalogueEntityRequest();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue