diff --git a/etc/deploy-jndi-config.xml b/etc/deploy-jndi-config.xml index b066505..57d6979 100644 --- a/etc/deploy-jndi-config.xml +++ b/etc/deploy-jndi-config.xml @@ -82,8 +82,7 @@ override="false"/> - + @@ -117,7 +116,7 @@ - + factory @@ -129,7 +128,7 @@ fileName - @config.dir@/FactoryRegistration.xml + @config.dir@/registrationFactory.xml @@ -144,7 +143,7 @@ resourceClass - org.gcube.informationsystem.registry.impl.core.FactoryResource + org.gcube.informationsystem.registry.impl.core.RegistryFactoryResource persistenceDelegateClass diff --git a/org/gcube/informationsystem/registry/impl/core/FactoryContext.java b/org/gcube/informationsystem/registry/impl/core/FactoryContext.java index f8588a8..6bf0c19 100644 --- a/org/gcube/informationsystem/registry/impl/core/FactoryContext.java +++ b/org/gcube/informationsystem/registry/impl/core/FactoryContext.java @@ -5,7 +5,7 @@ import org.gcube.common.core.contexts.GCUBEStatefulPortTypeContext; public class FactoryContext extends GCUBEStatefulPortTypeContext{ - static private final String PORTTYPE_NAME = "gcube/informationsystem/regitry/RegistryFactory"; + static private final String PORTTYPE_NAME = "gcube/informationsystem/registry/RegistryFactory"; static FactoryContext cache = new FactoryContext(); diff --git a/org/gcube/informationsystem/registry/impl/core/RegistryFactory.java b/org/gcube/informationsystem/registry/impl/core/RegistryFactory.java index 1c341ed..a47020b 100644 --- a/org/gcube/informationsystem/registry/impl/core/RegistryFactory.java +++ b/org/gcube/informationsystem/registry/impl/core/RegistryFactory.java @@ -7,9 +7,6 @@ import java.rmi.RemoteException; import java.util.ArrayList; import java.util.Calendar; -import javax.naming.Context; -import javax.naming.InitialContext; -import javax.naming.NamingException; import javax.xml.rpc.ServiceException; import org.diligentproject.stubs.informationservice.disregistry.DISRegistryFactoryService.SchemaValidationException; @@ -23,6 +20,7 @@ import org.gcube.common.core.porttypes.GCUBEStartupPortType; import org.gcube.common.core.resources.GCUBEHostingNode; import org.gcube.common.core.resources.GCUBEResource; import org.gcube.common.core.scope.GCUBEScope; +import org.gcube.common.core.state.GCUBEWSResourceKey; import org.gcube.common.core.utils.logging.GCUBELog; import org.gcube.common.is.publisher.impl.GCUBEPublisher; import org.gcube.common.is.publisher.impl.GCUBEPublisherException; @@ -34,11 +32,14 @@ import org.gcube.informationsystem.registry.stubs.RegistryPortType; import org.gcube.informationsystem.registry.stubs.RegistryProperty; import org.gcube.informationsystem.registry.stubs.RemoveResourceMessage; import org.gcube.informationsystem.registry.stubs.RemoveResourceResponse; +import org.gcube.informationsystem.registry.stubs.RemoveScopeInProfileMessage; import org.gcube.informationsystem.registry.stubs.SchemaValidationFault; import org.gcube.informationsystem.registry.stubs.StartRegistration; import org.gcube.informationsystem.registry.stubs.StartRegistrationResponse; import org.gcube.informationsystem.registry.stubs.UpdateProfileMessage; import org.gcube.informationsystem.registry.stubs.UpdateResourceResponse; +import org.gcube.informationsystem.registry.stubs.UpdateScopeInProfileMessage; +import org.gcube.informationsystem.registry.stubs.UpdateStateMessage; import org.gcube.informationsystem.registry.stubs.service.RegistryServiceAddressingLocator; import org.globus.wsrf.ResourceContext; import org.globus.wsrf.ResourceException; @@ -76,9 +77,6 @@ public class RegistryFactory extends GCUBEStartupPortType{ public static ArrayList notificationMap = new ArrayList(); - /** - */ - protected Context ctx = null; /** * */ @@ -102,12 +100,8 @@ public class RegistryFactory extends GCUBEStartupPortType{ super.init(arg0); //initialization of the Registry Configuration try { - ctx =new InitialContext(); - //config = (RegistryConfiguration) ctx.lookup(Constants.JNDI_BASE_NAME + "RegistryConfiguration"); - FactoryContext.getContext().getWSHome().create("FactoryResource"); - } catch (NamingException e) { - e.printStackTrace(); - throw new ServiceException(e); + FactoryContext.getContext().getWSHome().create(FactoryContext.getContext().makeKey("FactoryResource")); + } catch (ResourceException e) { e.printStackTrace(); throw new ServiceException(e); @@ -168,7 +162,7 @@ public class RegistryFactory extends GCUBEStartupPortType{ } //check ID - if (resource.getID()== null) resource.setID("puppa"); + if (resource.getID()== nul"); } catch (Exception ex) @@ -480,7 +474,16 @@ public class RegistryFactory extends GCUBEStartupPortType{ } - private static void unregisterRIRelatedToDHN(String ID){} + private static void unregisterRIRelatedToDHN(String id ){ + + + } + + public String updateScopeInProfile(UpdateScopeInProfileMessage message)throws GCUBEFault{return null;} + + public String removeScopeInProfile(RemoveScopeInProfileMessage message)throws GCUBEFault{return null;} + + public String updateState(UpdateStateMessage message)throws GCUBEFault{return null;} } diff --git a/org/gcube/informationsystem/registry/impl/core/RegistryFactoryResource.java b/org/gcube/informationsystem/registry/impl/core/RegistryFactoryResource.java index f8e3b30..5499fab 100644 --- a/org/gcube/informationsystem/registry/impl/core/RegistryFactoryResource.java +++ b/org/gcube/informationsystem/registry/impl/core/RegistryFactoryResource.java @@ -51,12 +51,6 @@ public class RegistryFactoryResource extends GCUBEWSResource { protected static final String RunningInstanceRP="RunningInstance"; - - @Override - protected String[] getPropertyNames() { - return null; - } - @Override protected String[] getTopicNames() { @@ -113,8 +107,6 @@ public class RegistryFactoryResource extends GCUBEWSResource { try { - this.getPersistenceDelegate().load(this,true); - // Topic List creation for registrationto is-Notifier listQname = new ArrayList(); for (String rpName : RPNames) @@ -122,21 +114,6 @@ public class RegistryFactoryResource extends GCUBEWSResource { // try registration boolean check = false; - ISPublisher publisher = GHNContext.getImplementation(ISPublisher.class); - - while (!check) { - try { -// registration to IS-IC - - publisher.registerWSResource(this); - check = true; - } - catch (Exception e) { - logger.error(" Error registering IS-Registry WS-properties to IS-IC",e); - check = false; - } - } - try { RegistrationThread thread = new RegistrationThread(listQname); Thread t = new Thread(thread); diff --git a/org/gcube/informationsystem/registry/impl/core/ServiceContext.java b/org/gcube/informationsystem/registry/impl/core/ServiceContext.java index b3f7d2f..9b3a3f6 100644 --- a/org/gcube/informationsystem/registry/impl/core/ServiceContext.java +++ b/org/gcube/informationsystem/registry/impl/core/ServiceContext.java @@ -18,10 +18,6 @@ public class ServiceContext extends GCUBEServiceContext{ return JNDI_NAME; } - public void setScope(String scope) { - // TODO Auto-generated method stub - - } -} +} \ No newline at end of file diff --git a/schema/RegistryFactory.wsdl b/schema/RegistryFactory.wsdl index aaf6529..cf2f389 100644 --- a/schema/RegistryFactory.wsdl +++ b/schema/RegistryFactory.wsdl @@ -134,11 +134,7 @@ - - - - @@ -275,13 +271,6 @@ - - - - - - - @@ -334,11 +323,7 @@ - - - - - +