public class ValidationUtils extends Object
| Constructor and Description |
|---|
ValidationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends org.gcube.common.resources.gcore.Resource> |
addEnclosingScopesOnResource(T resource,
String scope)
If scope is a VRE scope and the VO and INFRA scopes are not present in the resource, this method add these scopes to the resource
|
static <T extends org.gcube.common.resources.gcore.Resource> |
anotherBrotherVREOrVOOnResource(T resource,
String scope) |
static <T extends org.gcube.common.resources.gcore.Resource> |
anotherInfraScopeOnResource(T resource,
String scope) |
static <T extends org.gcube.common.resources.gcore.Resource> |
anotherSonVREOnResource(T resource,
String scope) |
static boolean |
isChildScope(String fatherScope,
String sonScope) |
static <T extends org.gcube.common.resources.gcore.Resource> |
isCompatibleScopeForRemove(T resource,
String scope) |
static <R extends org.gcube.common.resources.gcore.Resource> |
isPresent(R resource,
String currentScope) |
static void |
valid(String name,
Object object) |
public static <R extends org.gcube.common.resources.gcore.Resource> boolean isPresent(R resource,
String currentScope)
public static <T extends org.gcube.common.resources.gcore.Resource> void addEnclosingScopesOnResource(T resource,
String scope)
resource - the resourcescope - a scopepublic static <T extends org.gcube.common.resources.gcore.Resource> boolean isCompatibleScopeForRemove(T resource,
String scope)
public static <T extends org.gcube.common.resources.gcore.Resource> boolean anotherBrotherVREOrVOOnResource(T resource,
String scope)
public static <T extends org.gcube.common.resources.gcore.Resource> boolean anotherSonVREOnResource(T resource,
String scope)
public static <T extends org.gcube.common.resources.gcore.Resource> boolean anotherInfraScopeOnResource(T resource,
String scope)
Copyright © 2020. All Rights Reserved.