git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/information-system/gCubeIS/Registry@373 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3d6590bc43
commit
dadb0f7ff4
11
.classpath
11
.classpath
|
@ -1,12 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry excluding="src/|build/|schema/|etc/" kind="src" path=""/>
|
||||
<classpathentry excluding="src/|build/|schema/|etc/|src/" kind="src" path=""/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/CONTAINERLIB"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/GCUBE_CORE"/>
|
||||
<classpathentry kind="lib" path="SERVICELIBS/GCUBE_ISREGISTRY/org.gcube.informationsystem.registry.stubs.jar"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/IS_PUBLISHER"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/ISCLIENT"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/Notifier"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/GCORELIBS"/>
|
||||
<classpathentry kind="lib" path="/home/manuele/ISTI-projects/D4Science/development/svn/DEV/GCORE/CONTAINER/lib/org.gcube.informationsystem.registry.stubs.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<parameter name="scope" value="Application"/>
|
||||
<parameter name="providers" value="GCUBEProvider SubscribeProvider DestroyProvider GetCurrentMessageProvider "/>
|
||||
<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>
|
||||
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
|||
<parameter name="instance" value="gcube/informationsystem/registry/Registry"/>
|
||||
<parameter name="providers" value="GCUBEProvider SubscribeProvider GetCurrentMessageProvider"/>
|
||||
<parameter name="loadOnStartup" value="true"/>
|
||||
<parameter name="securityDescriptor" value="@config.dir@/security-descriptor-Factory.xml"/>
|
||||
<!-- <parameter name="securityDescriptor" value="@config.dir@/security-descriptor-Factory.xml"/> -->
|
||||
|
||||
</service>
|
||||
|
||||
|
|
|
@ -123,13 +123,12 @@ public class RegistryFactory extends GCUBEStartupPortType{
|
|||
* @throws ProfileAlreadyRegisteredFault
|
||||
*/
|
||||
public String createResource(CreateResourceMessage inputMessage) throws SchemaValidationFault,RemoteException,ProfileAlreadyRegisteredFault {
|
||||
|
||||
GCUBEResource resource = null;
|
||||
logger.info("CreateResource operation invoked");
|
||||
logSecurityInfo("createResource");
|
||||
|
||||
logger.info("CreateResource operation invoked");
|
||||
|
||||
String profile = inputMessage.getProfile();
|
||||
|
||||
if (profile == null || profile.compareTo("") == 0) {
|
||||
String msg = "Profile file empty";
|
||||
logger.debug(msg);
|
||||
|
@ -139,7 +138,7 @@ public class RegistryFactory extends GCUBEStartupPortType{
|
|||
resource = this.getResourceClass(inputMessage.getType());
|
||||
resource.load(new StringReader(profile));
|
||||
//the parse Profile class allows to extract from profiles information about type/SCOPE/UniqueID
|
||||
//in order to distiguish among different Resource Type
|
||||
//in order to distinguish among different Resource Type
|
||||
//Adding scopes to Profile
|
||||
String [] scopes = inputMessage.getScopes();
|
||||
if (scopes != null) {
|
||||
|
|
Loading…
Reference in New Issue