public class GeoNetworkClient extends Object
| Constructor and Description |
|---|
GeoNetworkClient(String baseURL,
Version version,
String password,
String user) |
GeoNetworkClient(String baseURL,
Version version,
String password,
String user,
GeoNetworkDescriptor descriptor) |
| Modifier and Type | Method and Description |
|---|---|
org.gcube.spatial.data.sdi.model.gn.Group |
createGroup(org.gcube.spatial.data.sdi.model.gn.Group group) |
org.gcube.spatial.data.sdi.model.gn.User |
createUsers(org.gcube.spatial.data.sdi.model.gn.User user,
Collection<Integer> groups) |
void |
editUser(org.gcube.spatial.data.sdi.model.gn.User toEdit,
Collection<Integer> toAddGroups) |
Set<org.gcube.spatial.data.sdi.model.gn.Group> |
getGroups() |
Set<Integer> |
getGroupsByUser(Integer userId) |
Set<org.gcube.spatial.data.sdi.model.gn.User> |
getUsers() |
long |
insertMetadata(String category,
String styleSheet,
boolean validate,
int group,
boolean makePublic,
File metadataFile) |
it.geosolutions.geonetwork.util.GNSearchResponse |
query(it.geosolutions.geonetwork.util.GNSearchRequest request) |
void |
updateMeta(long toUpdateMetaId,
File metadataFile) |
public GeoNetworkClient(String baseURL, Version version, String password, String user, GeoNetworkDescriptor descriptor)
public org.gcube.spatial.data.sdi.model.gn.Group createGroup(org.gcube.spatial.data.sdi.model.gn.Group group)
throws ServiceInteractionException
ServiceInteractionExceptionpublic Set<org.gcube.spatial.data.sdi.model.gn.Group> getGroups() throws ServiceInteractionException
ServiceInteractionExceptionpublic Set<org.gcube.spatial.data.sdi.model.gn.User> getUsers() throws ServiceInteractionException
ServiceInteractionExceptionpublic org.gcube.spatial.data.sdi.model.gn.User createUsers(org.gcube.spatial.data.sdi.model.gn.User user,
Collection<Integer> groups)
throws ServiceInteractionException
ServiceInteractionExceptionpublic void editUser(org.gcube.spatial.data.sdi.model.gn.User toEdit,
Collection<Integer> toAddGroups)
throws ServiceInteractionException
ServiceInteractionExceptionpublic Set<Integer> getGroupsByUser(Integer userId) throws ServiceInteractionException
ServiceInteractionExceptionpublic long insertMetadata(String category, String styleSheet, boolean validate, int group, boolean makePublic, File metadataFile) throws it.geosolutions.geonetwork.exception.GNLibException, it.geosolutions.geonetwork.exception.GNServerException
it.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic void updateMeta(long toUpdateMetaId,
File metadataFile)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
it.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic it.geosolutions.geonetwork.util.GNSearchResponse query(it.geosolutions.geonetwork.util.GNSearchRequest request)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
it.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionCopyright © 2020. All Rights Reserved.