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 void |
validateAgainstProfile(org.json.simple.JSONObject obj)
This method validate the incoming json dataset wrt a metadata profile
|
static void |
validateAgainstProfile(String json) |
public static final int MAX_TAG_CHARS
public static void validateAgainstProfile(String json) throws Exception
Exceptionpublic static void validateAgainstProfile(org.json.simple.JSONObject obj)
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 sessionExceptionCopyright © 2019. All Rights Reserved.