git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/information-system/gCubeIS/Registry@80 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c1a1ec40a2
commit
7d626bdaa3
|
@ -93,39 +93,6 @@
|
||||||
override="false"/>
|
override="false"/>
|
||||||
|
|
||||||
|
|
||||||
<resource name="RegistryConfiguration" type="org.gcube.informationsystem.registry.impl.RegistryConfiguration">
|
|
||||||
<resourceParams>
|
|
||||||
|
|
||||||
<parameter>
|
|
||||||
<name>
|
|
||||||
factory
|
|
||||||
</name>
|
|
||||||
<value>
|
|
||||||
org.globus.wsrf.jndi.BeanFactory
|
|
||||||
</value>
|
|
||||||
</parameter>
|
|
||||||
|
|
||||||
<parameter>
|
|
||||||
<name>registrationRemovalInterval</name>
|
|
||||||
<value>140</value>
|
|
||||||
</parameter>
|
|
||||||
|
|
||||||
<parameter>
|
|
||||||
<name>profilesBase</name>
|
|
||||||
<value>@config.dir@/DILResourceSchemas</value>
|
|
||||||
</parameter>
|
|
||||||
|
|
||||||
<parameter>
|
|
||||||
<name>propertiesFile</name>
|
|
||||||
<value>@config.dir@/registration.properties</value>
|
|
||||||
</parameter>
|
|
||||||
<parameter>
|
|
||||||
<name>registrationType</name>
|
|
||||||
<value>Pull</value>
|
|
||||||
</parameter>
|
|
||||||
</resourceParams>
|
|
||||||
</resource>
|
|
||||||
|
|
||||||
|
|
||||||
<resource name="publicationProfile" type="org.gcube.common.core.state.GCUBEPublicationProfile">
|
<resource name="publicationProfile" type="org.gcube.common.core.state.GCUBEPublicationProfile">
|
||||||
<resourceParams>
|
<resourceParams>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<parameter name="allowedMethods" value="*"/>
|
<parameter name="allowedMethods" value="*"/>
|
||||||
<parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
|
<parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
|
||||||
<parameter name="scope" value="Application"/>
|
<parameter name="scope" value="Application"/>
|
||||||
<parameter name="providers" value="GCUBEProvider SubscribeProvider GetCurrentMessageProvider "/>
|
<parameter name="providers" value="GCUBEProvider SubscribeProvider DestroyProvider GetCurrentMessageProvider "/>
|
||||||
<parameter name="loadOnStartup" value="false"/>
|
<parameter name="loadOnStartup" value="false"/>
|
||||||
<parameter name="securityDescriptor" value="@config.dir@/security-descriptor-Service.xml"/>
|
<parameter name="securityDescriptor" value="@config.dir@/security-descriptor-Service.xml"/>
|
||||||
</service>
|
</service>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<parameter name="allowedMethods" value="*"/>
|
<parameter name="allowedMethods" value="*"/>
|
||||||
<parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
|
<parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
|
||||||
<parameter name="scope" value="Application"/>
|
<parameter name="scope" value="Application"/>
|
||||||
<parameter name="providers" value="GCUBEProvider SubscribeProvider GetCurrentMessageProvider "/>
|
<parameter name="providers" value="GCUBEProvider SubscribeProvider DestroyProvider GetCurrentMessageProvider "/>
|
||||||
<parameter name="loadOnStartup" value="false"/>
|
<parameter name="loadOnStartup" value="false"/>
|
||||||
|
|
||||||
</service>
|
</service>
|
||||||
|
|
|
@ -232,6 +232,7 @@ public class RegistryFactory extends GCUBEStartupPortType{
|
||||||
if (!isResourceCreated(ID)) {
|
if (!isResourceCreated(ID)) {
|
||||||
input = new CreateResourceMessage();
|
input = new CreateResourceMessage();
|
||||||
input.setProfile(xmlProfile);
|
input.setProfile(xmlProfile);
|
||||||
|
input.setType(mess.getType());
|
||||||
this.createResource(input);
|
this.createResource(input);
|
||||||
return new UpdateResourceResponse();
|
return new UpdateResourceResponse();
|
||||||
}
|
}
|
||||||
|
@ -312,6 +313,7 @@ public class RegistryFactory extends GCUBEStartupPortType{
|
||||||
try{
|
try{
|
||||||
|
|
||||||
ProfileResource resource = getProfileResource(ID );
|
ProfileResource resource = getProfileResource(ID );
|
||||||
|
profile = this.getResourceClass(type);
|
||||||
profile.load(new StringReader( XMLUtils.DocumentToString(resource.getProfile())));
|
profile.load(new StringReader( XMLUtils.DocumentToString(resource.getProfile())));
|
||||||
//remove profile
|
//remove profile
|
||||||
resource.removeProfile();
|
resource.removeProfile();
|
||||||
|
@ -323,6 +325,7 @@ public class RegistryFactory extends GCUBEStartupPortType{
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
logger.error("Error removing resource for ID "+ e);
|
logger.error("Error removing resource for ID "+ e);
|
||||||
throw new RemoteException();
|
throw new RemoteException();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue