This commit is contained in:
Lucio Lelii 2008-10-09 14:24:14 +00:00
parent b841833fed
commit 1c4eafb06a
2 changed files with 11 additions and 9 deletions

View File

@ -10,7 +10,7 @@
<Packages> <Packages>
<Main> <Main>
<Name>IS-Registry-service</Name> <Name>IS-Registry-service</Name>
<Version>1.0.0</Version> <Version>1.1.0</Version>
<Mandatory level="VO"/> <Mandatory level="VO"/>
<Shareable level="VO"/> <Shareable level="VO"/>
<GHNRequirements> <GHNRequirements>
@ -21,9 +21,10 @@
<Service> <Service>
<Class>InformationSystem</Class> <Class>InformationSystem</Class>
<Name>IS-Registry</Name> <Name>IS-Registry</Name>
<Version>1.0.0</Version>
</Service> </Service>
<Package>IS-Registry-stubs</Package> <Package>IS-Registry-stubs</Package>
<Version>1.0.0</Version> <Version>1.0.2</Version>
<Scope level="GHN"/> <Scope level="GHN"/>
<Optional>false</Optional> <Optional>false</Optional>
</Dependency> </Dependency>
@ -42,7 +43,7 @@
</Main> </Main>
<Software> <Software>
<Name>IS-Registry-stubs</Name> <Name>IS-Registry-stubs</Name>
<Version>1.0.0</Version> <Version>1.0.2</Version>
<MultiVersion value="true"/> <MultiVersion value="true"/>
<Mandatory level="GHN"/> <Mandatory level="GHN"/>
<Shareable level="VO"/> <Shareable level="VO"/>

View File

@ -21,6 +21,7 @@ import org.gcube.common.core.resources.GCUBEService;
import org.gcube.common.core.state.GCUBEWSResource; import org.gcube.common.core.state.GCUBEWSResource;
import org.gcube.common.core.utils.logging.GCUBELog; import org.gcube.common.core.utils.logging.GCUBELog;
import org.gcube.informationsystem.registry.impl.RegistryFactory; import org.gcube.informationsystem.registry.impl.RegistryFactory;
import org.gcube.informationsystem.registry.impl.contexts.ProfileContext;
import org.gcube.informationsystem.registry.impl.contexts.ServiceContext; import org.gcube.informationsystem.registry.impl.contexts.ServiceContext;
import org.globus.wsrf.ResourceException; import org.globus.wsrf.ResourceException;
import org.globus.wsrf.Topic; import org.globus.wsrf.Topic;
@ -74,15 +75,15 @@ public class ProfileResource extends GCUBEWSResource {
try { try {
resource.store(writer); resource.store(writer);
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true); factory.setNamespaceAware(true);
DocumentBuilder builder = factory.newDocumentBuilder(); DocumentBuilder builder = factory.newDocumentBuilder();
StringReader reader = new StringReader(writer.toString().substring(writer.toString().indexOf("?>")+2, writer.toString().length())); StringReader reader = new StringReader(writer.toString().substring(writer.toString().indexOf("?>")+2, writer.toString().length()));
InputSource source = new InputSource();
source.setEncoding("UTF-8"); InputSource source = new InputSource(reader);
source.setCharacterStream(reader);
System.out.println("-----------"+source.getCharacterStream());
dom =builder.parse(source); dom =builder.parse(source);
} catch (Exception e1) { } catch (Exception e1) {
throw new ResourceException(e1); throw new ResourceException(e1);
@ -157,7 +158,7 @@ public class ProfileResource extends GCUBEWSResource {
* @return the Resource QName * @return the Resource QName
*/ */
private QName generateQName() { private QName generateQName() {
return QName.valueOf(this.getID().toString()); return new QName(ProfileContext.getContext().getNamespace(), NotificationProfileRP.toString()+this.getID().getValue());
} }
public GCUBEResource getGCubeResource() { public GCUBEResource getGCubeResource() {