Added BaseRest as superclass
This commit is contained in:
parent
69bac7493d
commit
992b9d23cc
|
@ -22,24 +22,17 @@ import org.gcube.informationsystem.resourceregistry.api.rest.ContextPath;
|
|||
import org.gcube.informationsystem.resourceregistry.contexts.ContextUtility;
|
||||
import org.gcube.informationsystem.resourceregistry.contexts.entities.ContextManagement;
|
||||
import org.gcube.informationsystem.resourceregistry.requests.RequestUtility;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
@Path(ContextPath.CONTEXTS_PATH_PART)
|
||||
public class ContextManager {
|
||||
public class ContextManager extends BaseRest {
|
||||
|
||||
public static final String CONTEXT_UUID_PATH_PARAMETER = "CONTEXT_UUID";
|
||||
|
||||
/**
|
||||
* Logger
|
||||
*/
|
||||
private static Logger logger = LoggerFactory.getLogger(ContextManager.class);
|
||||
|
||||
public ContextManager() {
|
||||
|
||||
super();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -21,19 +21,19 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.queries.Inval
|
|||
import org.gcube.informationsystem.resourceregistry.api.rest.QueryTemplatePath;
|
||||
import org.gcube.informationsystem.resourceregistry.queries.templates.QueryTemplateManagement;
|
||||
import org.gcube.informationsystem.resourceregistry.requests.RequestUtility;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
@Path(QueryTemplatePath.QUERY_TEMPLATES_PATH_PART)
|
||||
public class QueryTemplateManager {
|
||||
|
||||
private static Logger logger = LoggerFactory.getLogger(QueryTemplateManager.class);
|
||||
public class QueryTemplateManager extends BaseRest {
|
||||
|
||||
public static final String QUERY_TEMPLATE_NAME_PATH_PARAMETER = "QUERY_TEMPLATE_NAME";
|
||||
|
||||
public QueryTemplateManager() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
** GET /query-templates
|
||||
*/
|
||||
|
|
|
@ -30,19 +30,15 @@ import org.gcube.informationsystem.resourceregistry.instances.model.ERManagement
|
|||
import org.gcube.informationsystem.resourceregistry.requests.RequestUtility;
|
||||
import org.gcube.informationsystem.resourceregistry.utils.UUIDUtility;
|
||||
import org.gcube.informationsystem.utils.TypeUtility;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
@Path(SharingPath.SHARING_PATH_PART)
|
||||
public class SharingManager {
|
||||
|
||||
private static Logger logger = LoggerFactory.getLogger(SharingManager.class);
|
||||
public class SharingManager extends BaseRest {
|
||||
|
||||
public SharingManager() {
|
||||
|
||||
super();
|
||||
}
|
||||
|
||||
protected String serializeAffectedInstaces(ObjectMapper objectMapper, Map<UUID,JsonNode> affectedInstances) throws ResourceRegistryException {
|
||||
|
|
|
@ -24,21 +24,17 @@ import org.gcube.informationsystem.resourceregistry.requests.RequestUtility;
|
|||
import org.gcube.informationsystem.resourceregistry.types.TypeManagement;
|
||||
import org.gcube.informationsystem.types.TypeMapper;
|
||||
import org.gcube.informationsystem.types.reference.Type;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
@Path(TypePath.TYPES_PATH_PART)
|
||||
public class TypeManager {
|
||||
|
||||
private static Logger logger = LoggerFactory.getLogger(TypeManager.class);
|
||||
public class TypeManager extends BaseRest {
|
||||
|
||||
public static final String TYPE_PATH_PARAMETER = "TYPE_NAME";
|
||||
|
||||
public TypeManager() {
|
||||
|
||||
super();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue