public class Validator extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_TAG_CHARS |
| Constructor and Description |
|---|
Validator() |
| Modifier and Type | Method and Description |
|---|---|
static eu.trentorise.opendata.jackan.model.CkanGroup |
createGroupAsSysAdmin(String title,
String groupName,
String description)
Retrieve an instance of the library for the scope
|
static List<String> |
getGroupHierarchyNames(String groupName)
Get the group hierarchy
|
static org.gcube.datacatalogue.metadatadiscovery.bean.jaxb.MetadataFormat |
getMetadataProfile(String profileName)
Returns the metadataform of the metadata profile (specified via name) in a given context
|
static void |
validateAgainstProfile(org.json.simple.JSONObject obj,
List<String> profiles)
This method validate the incoming json dataset wrt a metadata profile
|
static void |
validateAgainstProfile(String json,
List<String> profiles) |
public static final int MAX_TAG_CHARS
public static void validateAgainstProfile(String json, List<String> profiles) throws Exception
Exceptionpublic static void validateAgainstProfile(org.json.simple.JSONObject obj,
List<String> profiles)
throws Exception
json - caller - profiles - Exceptionpublic static eu.trentorise.opendata.jackan.model.CkanGroup createGroupAsSysAdmin(String title, String groupName, String description) throws Exception
scope - if it is null it is evaluated from the sessionExceptionpublic static List<String> getGroupHierarchyNames(String groupName) throws Exception
groupName - isApplication - ExceptionCopyright © 2019. All Rights Reserved.