parent
69ca8d374d
commit
ed50daf199
2
pom.xml
2
pom.xml
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
<groupId>org.gcube.resources</groupId>
|
<groupId>org.gcube.resources</groupId>
|
||||||
<artifactId>registry-publisher</artifactId>
|
<artifactId>registry-publisher</artifactId>
|
||||||
<version>1.3.0</version>
|
<version>1.3.1-SNAPSHOT</version>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
|
|
|
@ -86,11 +86,11 @@ public class ValidationUtils {
|
||||||
}else if(new ScopeBean(scope).is(Type.VO)){
|
}else if(new ScopeBean(scope).is(Type.VO)){
|
||||||
log.debug(" "+scope+" is a VO scope");
|
log.debug(" "+scope+" is a VO scope");
|
||||||
if(anotherSonVREOnResource(resource, scope)){
|
if(anotherSonVREOnResource(resource, scope)){
|
||||||
throw new IllegalArgumentException("the resource "+resource.id()+" have another scope defined in the same VO. The VO is "+scope);
|
return false; //throw new IllegalArgumentException("the resource "+resource.id()+" have another scope defined in the same VO. The VO is "+scope);
|
||||||
}else return true;
|
}else return true;
|
||||||
}else{ // is a INFRA scope
|
}else{ // is a INFRA scope
|
||||||
if(anotherInfraScopeOnResource(resource, scope)){
|
if(anotherInfraScopeOnResource(resource, scope)){
|
||||||
throw new IllegalArgumentException("the resource "+resource.id()+" have another scope defined in the same INFRA. The INFRA is "+scope);
|
return false; //throw new IllegalArgumentException("the resource "+resource.id()+" have another scope defined in the same INFRA. The INFRA is "+scope);
|
||||||
}else return true;
|
}else return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue