git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerCore@130614 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e6d9f3c3ee
commit
2df3d3113c
|
@ -29,7 +29,7 @@ import org.gcube.application.framework.core.util.SessionConstants;
|
||||||
//import org.gcube.common.resources.gcore.Resources;
|
//import org.gcube.common.resources.gcore.Resources;
|
||||||
import org.gcube.common.scope.api.ScopeProvider;
|
import org.gcube.common.scope.api.ScopeProvider;
|
||||||
import org.gcube.informationsystem.publisher.RegistryPublisher;
|
import org.gcube.informationsystem.publisher.RegistryPublisher;
|
||||||
//import org.gcube.informationsystem.publisher.RegistryPublisherFactory;
|
import org.gcube.informationsystem.publisher.RegistryPublisherFactory;
|
||||||
//import org.gcube.informationsystem.publisher.ScopedPublisher;
|
//import org.gcube.informationsystem.publisher.ScopedPublisher;
|
||||||
//import org.gcube.informationsystem.publisher.stubs.registry.faults.PublisherException;
|
//import org.gcube.informationsystem.publisher.stubs.registry.faults.PublisherException;
|
||||||
import org.gcube.resources.discovery.client.api.DiscoveryClient;
|
import org.gcube.resources.discovery.client.api.DiscoveryClient;
|
||||||
|
@ -43,8 +43,8 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import static org.gcube.resources.discovery.icclient.ICFactory.*;
|
import static org.gcube.resources.discovery.icclient.ICFactory.*;
|
||||||
|
|
||||||
//import org.gcube.common.resources.gcore.Resource;
|
import org.gcube.common.resources.gcore.Resource;
|
||||||
//import org.gcube.common.resources.gcore.ServiceInstance;
|
import org.gcube.common.resources.gcore.ServiceInstance;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -317,32 +317,8 @@ public class GenericResource implements GenericResourceInfoI {
|
||||||
List<String> scopes=new ArrayList<String>();
|
List<String> scopes=new ArrayList<String>();
|
||||||
scopes.add(session.getScope());
|
scopes.add(session.getScope());
|
||||||
|
|
||||||
|
org.gcube.common.resources.gcore.GenericResource res = publisher.create(gCubeRes, scopes);
|
||||||
|
logger.info("Created Generic Resource with id: "+res.id()+" on scope: "+scopes.toString());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// org.gcube.common.resources.gcore.GenericResource res = scopedPublisher.create(gCubeRes, scopes);
|
|
||||||
// logger.info("Created Generic Resource with id: "+res.id()+" on scope: "+scopes.toString());
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 1-oct-2013 -- adding generic resource to cache
|
// 1-oct-2013 -- adding generic resource to cache
|
||||||
logger.info("Adding it also in cache...");
|
logger.info("Adding it also in cache...");
|
||||||
|
|
|
@ -94,8 +94,8 @@ public class RuntimeResource {
|
||||||
* @throws RemoteException
|
* @throws RemoteException
|
||||||
*/
|
*/
|
||||||
public String createRuntimeResource(ServiceEndpoint runtimeResource) throws RegistryNotFoundException {
|
public String createRuntimeResource(ServiceEndpoint runtimeResource) throws RegistryNotFoundException {
|
||||||
// List<String> scopes = new ArrayList<String>();
|
List<String> scopes = new ArrayList<String>();
|
||||||
// scopes.add(session.getScope());
|
scopes.add(session.getScope());
|
||||||
// ServiceEndpoint se = scopedPublisher.create(runtimeResource, scopes);
|
// ServiceEndpoint se = scopedPublisher.create(runtimeResource, scopes);
|
||||||
ServiceEndpoint se = registryPublisher.create(runtimeResource);
|
ServiceEndpoint se = registryPublisher.create(runtimeResource);
|
||||||
logger.debug("Created Runtime Resource with id: "+se.id()+" on scope: "+scopes.toString());
|
logger.debug("Created Runtime Resource with id: "+se.id()+" on scope: "+scopes.toString());
|
||||||
|
|
Loading…
Reference in New Issue