public class GeoNetworkUtils extends Object
| Constructor and Description |
|---|
GeoNetworkUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
clashSafeString(String originalString,
Set<String> existingSet) |
static org.gcube.spatial.data.sdi.model.gn.Group |
generateGroup(Set<org.gcube.spatial.data.sdi.model.gn.Group> existing,
String groupName,
String description,
String contactMail)
Adds a suffix to groupName if needed
|
static org.gcube.spatial.data.sdi.model.gn.User |
generateUser(Set<org.gcube.spatial.data.sdi.model.gn.User> existing,
Integer passwordLength,
String username) |
static long |
getIDByUUID(GeoNetworkClient client,
String uuid) |
public static org.gcube.spatial.data.sdi.model.gn.Group generateGroup(Set<org.gcube.spatial.data.sdi.model.gn.Group> existing, String groupName, String description, String contactMail)
existing - groupName - public static org.gcube.spatial.data.sdi.model.gn.User generateUser(Set<org.gcube.spatial.data.sdi.model.gn.User> existing, Integer passwordLength, String username)
public static String clashSafeString(String originalString, Set<String> existingSet)
public static long getIDByUUID(GeoNetworkClient client, String uuid) throws MetadataNotFoundException, it.geosolutions.geonetwork.exception.GNLibException, it.geosolutions.geonetwork.exception.GNServerException
MetadataNotFoundExceptionit.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionCopyright © 2019. All Rights Reserved.