git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/information-system/gCubeIS/Registry@25 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a0154c2c41
commit
1a9ad97932
|
@ -4,5 +4,7 @@
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
<classpathentry kind="lib" path="org.gcube.informationservice.registry.stubs.jar"/>
|
<classpathentry kind="lib" path="org.gcube.informationservice.registry.stubs.jar"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/CONTAINERLIB"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/CONTAINERLIB"/>
|
||||||
|
<classpathentry combineaccessrules="false" kind="src" path="/GCUBE_CORE"/>
|
||||||
|
<classpathentry kind="lib" path="org.gcube.informationsystem.registry.stubs.jar"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -13,12 +13,6 @@
|
||||||
|
|
||||||
<service name="gcube/informationsystem/registry/Registry">
|
<service name="gcube/informationsystem/registry/Registry">
|
||||||
|
|
||||||
<environment
|
|
||||||
name="name"
|
|
||||||
value="IS-Registry"
|
|
||||||
type="java.lang.String"
|
|
||||||
override="false" />
|
|
||||||
|
|
||||||
<environment
|
<environment
|
||||||
name="RPDName"
|
name="RPDName"
|
||||||
value="ProfileResourceProperties"
|
value="ProfileResourceProperties"
|
||||||
|
@ -48,7 +42,7 @@
|
||||||
</resourceParams>
|
</resourceParams>
|
||||||
</resource>
|
</resource>
|
||||||
|
|
||||||
<resource name="wshome" type="org.gcube.informationsystem.registry.impl.core.ProfileResourceHome">
|
<resource name="home" type="org.gcube.informationsystem.registry.impl.core.ProfileResourceHome">
|
||||||
|
|
||||||
<resourceParams>
|
<resourceParams>
|
||||||
|
|
||||||
|
@ -140,7 +134,7 @@
|
||||||
</resourceParams>
|
</resourceParams>
|
||||||
</resource>
|
</resource>
|
||||||
|
|
||||||
<resource name="wshome" type="org.gcube.informationsystem.registry.impl.core.RegistryFactoryResourceHome">
|
<resource name="home" type="org.gcube.informationsystem.registry.impl.core.RegistryFactoryResourceHome">
|
||||||
|
|
||||||
<resourceParams>
|
<resourceParams>
|
||||||
|
|
||||||
|
|
|
@ -11,12 +11,14 @@ import javax.naming.Context;
|
||||||
import javax.naming.InitialContext;
|
import javax.naming.InitialContext;
|
||||||
import javax.naming.NamingException;
|
import javax.naming.NamingException;
|
||||||
import javax.xml.rpc.ServiceException;
|
import javax.xml.rpc.ServiceException;
|
||||||
|
|
||||||
|
import org.diligentproject.stubs.informationservice.disregistry.DISRegistryFactoryService.SchemaValidationException;
|
||||||
import org.gcube.common.core.contexts.GCUBEServiceContext;
|
import org.gcube.common.core.contexts.GCUBEServiceContext;
|
||||||
|
import org.gcube.common.core.contexts.GHNContext;
|
||||||
import org.gcube.common.core.faults.GCUBEFault;
|
import org.gcube.common.core.faults.GCUBEFault;
|
||||||
import org.gcube.common.core.is.ISException;
|
import org.gcube.common.core.is.ISException;
|
||||||
import org.gcube.common.core.is.client.ISClient.ISInvalidQueryException;
|
import org.gcube.common.core.is.client.ISClient.ISInvalidQueryException;
|
||||||
import org.gcube.common.core.is.client.ISClient.ISMalformedQueryException;
|
import org.gcube.common.core.is.client.ISClient.ISMalformedQueryException;
|
||||||
import org.gcube.common.core.contexts.GHNContext;
|
|
||||||
import org.gcube.common.core.porttypes.GCUBEStartupPortType;
|
import org.gcube.common.core.porttypes.GCUBEStartupPortType;
|
||||||
import org.gcube.common.core.resources.GCUBEHostingNode;
|
import org.gcube.common.core.resources.GCUBEHostingNode;
|
||||||
import org.gcube.common.core.resources.GCUBEResource;
|
import org.gcube.common.core.resources.GCUBEResource;
|
||||||
|
@ -38,7 +40,6 @@ import org.gcube.informationsystem.registry.stubs.StartRegistrationResponse;
|
||||||
import org.gcube.informationsystem.registry.stubs.UpdateProfileMessage;
|
import org.gcube.informationsystem.registry.stubs.UpdateProfileMessage;
|
||||||
import org.gcube.informationsystem.registry.stubs.UpdateResourceResponse;
|
import org.gcube.informationsystem.registry.stubs.UpdateResourceResponse;
|
||||||
import org.gcube.informationsystem.registry.stubs.service.RegistryServiceAddressingLocator;
|
import org.gcube.informationsystem.registry.stubs.service.RegistryServiceAddressingLocator;
|
||||||
import org.globus.wsrf.Constants;
|
|
||||||
import org.globus.wsrf.ResourceContext;
|
import org.globus.wsrf.ResourceContext;
|
||||||
import org.globus.wsrf.ResourceException;
|
import org.globus.wsrf.ResourceException;
|
||||||
import org.globus.wsrf.ResourceKey;
|
import org.globus.wsrf.ResourceKey;
|
||||||
|
@ -98,7 +99,7 @@ public class RegistryFactory extends GCUBEStartupPortType{
|
||||||
@Override
|
@Override
|
||||||
public void init (Object arg0) throws ServiceException {
|
public void init (Object arg0) throws ServiceException {
|
||||||
|
|
||||||
super.init(null);
|
super.init(arg0);
|
||||||
//initialization of the Registry Configuration
|
//initialization of the Registry Configuration
|
||||||
try {
|
try {
|
||||||
ctx =new InitialContext();
|
ctx =new InitialContext();
|
||||||
|
@ -199,7 +200,7 @@ public class RegistryFactory extends GCUBEStartupPortType{
|
||||||
try {
|
try {
|
||||||
updateCounterInfo (resource,operationType.create.name(),Calendar.getInstance());
|
updateCounterInfo (resource,operationType.create.name(),Calendar.getInstance());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("Error updating Counting info for resourece with ID " + resource.getID());
|
logger.error("Error updating Counting info for resource with ID " + resource.getID());
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -223,7 +224,7 @@ public class RegistryFactory extends GCUBEStartupPortType{
|
||||||
* @throws RemoteException Exception
|
* @throws RemoteException Exception
|
||||||
* @throws SchemaValidationException Exception
|
* @throws SchemaValidationException Exception
|
||||||
*/
|
*/
|
||||||
public UpdateResourceResponse updateResource(UpdateProfileMessage mess) throws RemoteException,SchemaValidationFault {
|
public UpdateResourceResponse updateResource(UpdateProfileMessage mess) throws RemoteException,SchemaValidationFault,GCUBEFault {
|
||||||
|
|
||||||
logSecurityInfo("updateResource");
|
logSecurityInfo("updateResource");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue