Changed classes signature
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@133115 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
89118d7529
commit
8167da12cb
|
@ -6,7 +6,7 @@ import org.gcube.informationsystem.resourceregistry.Constants;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
*
|
*
|
||||||
* @param <S>
|
* @param <S>
|
||||||
* @param <P>
|
* @param <P>
|
||||||
|
|
|
@ -13,7 +13,7 @@ import org.gcube.informationsystem.resourceregistry.publisher.proxy.ResourceRegi
|
||||||
import org.gcube.informationsystem.resourceregistry.publisher.proxy.ResourceRegistryPublisherImpl;
|
import org.gcube.informationsystem.resourceregistry.publisher.proxy.ResourceRegistryPublisherImpl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ResourceRegistryPublisherPlugin extends AbstractPlugin<EndpointReference, ResourceRegistryPublisher>{
|
public class ResourceRegistryPublisherPlugin extends AbstractPlugin<EndpointReference, ResourceRegistryPublisher>{
|
||||||
|
|
|
@ -12,15 +12,16 @@ import org.w3c.dom.Document;
|
||||||
import org.w3c.dom.NodeList;
|
import org.w3c.dom.NodeList;
|
||||||
import org.xml.sax.InputSource;
|
import org.xml.sax.InputSource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
class JaxRSEndpointReference {
|
class JaxRSEndpointReference {
|
||||||
|
|
||||||
private static final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
private static final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||||
|
|
||||||
private static final String addressLocalName = "Address";
|
private static final String addressLocalName = "Address";
|
||||||
//private static final String keyLocalName = "ResourceKey";
|
|
||||||
|
|
||||||
String address;
|
String address;
|
||||||
//Element key;
|
|
||||||
|
|
||||||
static {
|
static {
|
||||||
factory.setNamespaceAware(true);
|
factory.setNamespaceAware(true);
|
||||||
|
|
|
@ -5,6 +5,9 @@ import org.gcube.informationsystem.model.entity.Resource;
|
||||||
import org.gcube.informationsystem.model.relation.ConsistsOf;
|
import org.gcube.informationsystem.model.relation.ConsistsOf;
|
||||||
import org.gcube.informationsystem.model.relation.IsRelatedTo;
|
import org.gcube.informationsystem.model.relation.IsRelatedTo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public interface ResourceRegistryPublisher {
|
public interface ResourceRegistryPublisher {
|
||||||
|
|
||||||
public <F extends Facet> F createFacet(Class<F> facetClass, F facet);
|
public <F extends Facet> F createFacet(Class<F> facetClass, F facet);
|
||||||
|
|
|
@ -5,7 +5,9 @@ import javax.xml.ws.EndpointReference;
|
||||||
import org.gcube.common.clients.fw.builders.StatelessBuilderImpl;
|
import org.gcube.common.clients.fw.builders.StatelessBuilderImpl;
|
||||||
import org.gcube.informationsystem.resourceregistry.publisher.plugin.ResourceRegistryPublisherPlugin;
|
import org.gcube.informationsystem.resourceregistry.publisher.plugin.ResourceRegistryPublisherPlugin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class ResourceRegistryPublisherFactory {
|
public class ResourceRegistryPublisherFactory {
|
||||||
|
|
||||||
protected static ResourceRegistryPublisher singleton;
|
protected static ResourceRegistryPublisher singleton;
|
||||||
|
|
|
@ -31,6 +31,9 @@ import org.gcube.informationsystem.resourceregistry.api.rest.EntityPath;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
*/
|
||||||
public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher {
|
public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher {
|
||||||
|
|
||||||
private static final Logger logger = LoggerFactory
|
private static final Logger logger = LoggerFactory
|
||||||
|
|
|
@ -34,8 +34,7 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class ResourceRegistryPublisherTest {
|
public class ResourceRegistryPublisherTest {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue