git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/information-system/gCubeIS/Registry@4426 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
b841833fed
commit
1c4eafb06a
|
@ -10,7 +10,7 @@
|
|||
<Packages>
|
||||
<Main>
|
||||
<Name>IS-Registry-service</Name>
|
||||
<Version>1.0.0</Version>
|
||||
<Version>1.1.0</Version>
|
||||
<Mandatory level="VO"/>
|
||||
<Shareable level="VO"/>
|
||||
<GHNRequirements>
|
||||
|
@ -21,9 +21,10 @@
|
|||
<Service>
|
||||
<Class>InformationSystem</Class>
|
||||
<Name>IS-Registry</Name>
|
||||
<Version>1.0.0</Version>
|
||||
</Service>
|
||||
<Package>IS-Registry-stubs</Package>
|
||||
<Version>1.0.0</Version>
|
||||
<Version>1.0.2</Version>
|
||||
<Scope level="GHN"/>
|
||||
<Optional>false</Optional>
|
||||
</Dependency>
|
||||
|
@ -42,7 +43,7 @@
|
|||
</Main>
|
||||
<Software>
|
||||
<Name>IS-Registry-stubs</Name>
|
||||
<Version>1.0.0</Version>
|
||||
<Version>1.0.2</Version>
|
||||
<MultiVersion value="true"/>
|
||||
<Mandatory level="GHN"/>
|
||||
<Shareable level="VO"/>
|
||||
|
|
|
@ -21,6 +21,7 @@ import org.gcube.common.core.resources.GCUBEService;
|
|||
import org.gcube.common.core.state.GCUBEWSResource;
|
||||
import org.gcube.common.core.utils.logging.GCUBELog;
|
||||
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.globus.wsrf.ResourceException;
|
||||
import org.globus.wsrf.Topic;
|
||||
|
@ -74,15 +75,15 @@ public class ProfileResource extends GCUBEWSResource {
|
|||
|
||||
try {
|
||||
resource.store(writer);
|
||||
|
||||
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||
factory.setNamespaceAware(true);
|
||||
DocumentBuilder builder = factory.newDocumentBuilder();
|
||||
|
||||
StringReader reader = new StringReader(writer.toString().substring(writer.toString().indexOf("?>")+2, writer.toString().length()));
|
||||
InputSource source = new InputSource();
|
||||
source.setEncoding("UTF-8");
|
||||
source.setCharacterStream(reader);
|
||||
System.out.println("-----------"+source.getCharacterStream());
|
||||
|
||||
InputSource source = new InputSource(reader);
|
||||
|
||||
dom =builder.parse(source);
|
||||
} catch (Exception e1) {
|
||||
throw new ResourceException(e1);
|
||||
|
@ -157,7 +158,7 @@ public class ProfileResource extends GCUBEWSResource {
|
|||
* @return the Resource QName
|
||||
*/
|
||||
private QName generateQName() {
|
||||
return QName.valueOf(this.getID().toString());
|
||||
return new QName(ProfileContext.getContext().getNamespace(), NotificationProfileRP.toString()+this.getID().getValue());
|
||||
}
|
||||
|
||||
public GCUBEResource getGCubeResource() {
|
||||
|
|
Loading…
Reference in New Issue