|
|
|
@ -86,11 +86,11 @@ public class ValidationUtils {
|
|
|
|
|
}else if(new ScopeBean(scope).is(Type.VO)){
|
|
|
|
|
log.debug(" "+scope+" is a VO 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{ // is a INFRA 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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|