git-svn-id: http://svn.research-infrastructures.eu/d4science/gcube/trunk/spatial-data/geonetwork@142472 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a1268be08f
commit
0397c0e1f8
|
@ -33,22 +33,22 @@ public class ScopeTests {
|
|||
// DEV
|
||||
|
||||
scopes.add("/gcube");
|
||||
scopes.add("/gcube/devNext");
|
||||
scopes.add("/gcube/devsec");
|
||||
|
||||
scopes.add("/gcube/devNext/NextNext");
|
||||
|
||||
scopes.add("/gcube/devsec/StaTabTest");
|
||||
|
||||
|
||||
scopes.add("/gcube/devsec/RMinerDev");
|
||||
|
||||
|
||||
|
||||
scopes.add("/gcube/devsec/TabProcessing");
|
||||
|
||||
scopes.add("/gcube/devsec/devVRE");
|
||||
|
||||
// scopes.add("/gcube/devNext");
|
||||
// scopes.add("/gcube/devsec");
|
||||
//
|
||||
// scopes.add("/gcube/devNext/NextNext");
|
||||
//
|
||||
// scopes.add("/gcube/devsec/StaTabTest");
|
||||
//
|
||||
//
|
||||
// scopes.add("/gcube/devsec/RMinerDev");
|
||||
//
|
||||
//
|
||||
//
|
||||
// scopes.add("/gcube/devsec/TabProcessing");
|
||||
//
|
||||
// scopes.add("/gcube/devsec/devVRE");
|
||||
//
|
||||
|
||||
|
||||
// scopes.add("/gcube/preprod/preVRE");
|
||||
|
|
|
@ -4,8 +4,6 @@ import org.gcube.spatial.data.geonetwork.GeoNetwork;
|
|||
import org.gcube.spatial.data.geonetwork.GeoNetworkAdministration;
|
||||
import org.gcube.spatial.data.geonetwork.configuration.Configuration;
|
||||
import org.gcube.spatial.data.geonetwork.configuration.DefaultConfiguration;
|
||||
import org.gcube.spatial.data.geonetwork.configuration.LocalResourceConfiguration;
|
||||
import org.gcube.spatial.data.geonetwork.configuration.LocalResourceConfiguration.ResourceConfiguration;
|
||||
import org.gcube.spatial.data.geonetwork.model.faults.AuthorizationException;
|
||||
import org.gcube.spatial.data.geonetwork.model.faults.EncryptionException;
|
||||
import org.gcube.spatial.data.geonetwork.model.faults.MissingConfigurationException;
|
||||
|
@ -22,19 +20,19 @@ public class TestConfiguration {
|
|||
@Synchronized
|
||||
public static GeoNetworkAdministration getClient() throws MissingConfigurationException, EncryptionException, MissingServiceEndpointException, GNLibException, GNServerException, AuthorizationException{
|
||||
if(toUseConfiguration==null){
|
||||
|
||||
ResourceConfiguration resConfig=new ResourceConfiguration();
|
||||
resConfig.setAdminPassword("admin");
|
||||
resConfig.setVersion((short)3);
|
||||
resConfig.setMinor((short)0);
|
||||
resConfig.setRevision((short)5);
|
||||
resConfig.setBuild((short)0);
|
||||
resConfig.setHost("node3-d-d4s.d4science.org");
|
||||
resConfig.setEndpoint("http://node3-d-d4s.d4science.org/geonetwork");
|
||||
toUseConfiguration=new LocalResourceConfiguration(resConfig);
|
||||
//
|
||||
// ResourceConfiguration resConfig=new ResourceConfiguration();
|
||||
// resConfig.setAdminPassword("admin");
|
||||
// resConfig.setVersion((short)3);
|
||||
// resConfig.setMinor((short)0);
|
||||
// resConfig.setRevision((short)5);
|
||||
// resConfig.setBuild((short)0);
|
||||
// resConfig.setHost("node3-d-d4s.d4science.org");
|
||||
// resConfig.setEndpoint("http://node3-d-d4s.d4science.org/geonetwork");
|
||||
// toUseConfiguration=new LocalResourceConfiguration(resConfig);
|
||||
|
||||
|
||||
// toUseConfiguration=new DefaultConfiguration();
|
||||
toUseConfiguration=new DefaultConfiguration();
|
||||
}
|
||||
return GeoNetwork.get(toUseConfiguration);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue