public class GNClientExtension extends Object implements it.geosolutions.geonetwork.GNClient
| Constructor and Description |
|---|
GNClientExtension(ServerAccess access) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignOwnership(List<Long> toTransferIds,
Integer targetUserId,
Integer targetGroupId) |
void |
createGroup(String name,
String description,
String mail,
Integer id) |
void |
createUser(String name,
String password,
org.gcube.spatial.data.sdi.model.gn.User.Profile profile,
Collection<Integer> groups) |
void |
deleteMetadata(long id) |
void |
editUser(org.gcube.spatial.data.sdi.model.gn.User toAdd,
Collection<Integer> groups) |
org.jdom.Element |
get(Long id) |
org.jdom.Element |
get(String uuid) |
it.geosolutions.geonetwork.util.HTTPUtils |
getConnection() |
Set<org.gcube.spatial.data.sdi.model.gn.Group> |
getGroups() |
Set<Integer> |
getGroupsByUser(Integer userId) |
it.geosolutions.geonetwork.op.gn3.GN3MetadataGetInfo.MetadataInfo |
getInfo(Long id) |
it.geosolutions.geonetwork.op.gn3.GN3MetadataGetInfo.MetadataInfo |
getInfo(String uuid) |
String |
getMetadataOwners() |
String |
getPossibleOwnershipTransfer(Integer userId) |
Set<org.gcube.spatial.data.sdi.model.gn.User> |
getUsers() |
long |
insertMetadata(it.geosolutions.geonetwork.util.GNInsertConfiguration cfg,
File metadataFile) |
long |
insertRequest(File requestFile) |
boolean |
ping() |
it.geosolutions.geonetwork.util.GNSearchResponse |
search(File fileRequest) |
it.geosolutions.geonetwork.util.GNSearchResponse |
search(it.geosolutions.geonetwork.util.GNSearchRequest searchRequest) |
void |
setPrivileges(long metadataId,
it.geosolutions.geonetwork.util.GNPrivConfiguration cfg) |
void |
transferOwnership(Integer sourceUserId,
Integer sourceGroupId,
Integer targetUserId,
Integer targetGroupId) |
void |
updateMetadata(long id,
File metadataFile) |
void |
updateMetadata(long id,
File metadataFile,
String encoding) |
public GNClientExtension(ServerAccess access)
public void createGroup(String name, String description, String mail, Integer id) throws it.geosolutions.geonetwork.exception.GNLibException, it.geosolutions.geonetwork.exception.GNServerException
it.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic Set<org.gcube.spatial.data.sdi.model.gn.Group> getGroups() throws it.geosolutions.geonetwork.exception.GNLibException, it.geosolutions.geonetwork.exception.GNServerException
it.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic Set<org.gcube.spatial.data.sdi.model.gn.User> getUsers() throws it.geosolutions.geonetwork.exception.GNLibException, it.geosolutions.geonetwork.exception.GNServerException
it.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic void createUser(String name, String password, org.gcube.spatial.data.sdi.model.gn.User.Profile profile, Collection<Integer> groups) throws it.geosolutions.geonetwork.exception.GNServerException, it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerExceptionit.geosolutions.geonetwork.exception.GNLibExceptionpublic void editUser(org.gcube.spatial.data.sdi.model.gn.User toAdd,
Collection<Integer> groups)
throws it.geosolutions.geonetwork.exception.GNServerException,
it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerExceptionit.geosolutions.geonetwork.exception.GNLibExceptionpublic Set<Integer> getGroupsByUser(Integer userId) throws it.geosolutions.geonetwork.exception.GNLibException, it.geosolutions.geonetwork.exception.GNServerException
it.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic void assignOwnership(List<Long> toTransferIds, Integer targetUserId, Integer targetGroupId) throws it.geosolutions.geonetwork.exception.GNServerException, it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerExceptionit.geosolutions.geonetwork.exception.GNLibExceptionpublic String getPossibleOwnershipTransfer(Integer userId) throws it.geosolutions.geonetwork.exception.GNServerException, it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerExceptionit.geosolutions.geonetwork.exception.GNLibExceptionpublic String getMetadataOwners() throws it.geosolutions.geonetwork.exception.GNServerException, it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerExceptionit.geosolutions.geonetwork.exception.GNLibExceptionpublic void transferOwnership(Integer sourceUserId, Integer sourceGroupId, Integer targetUserId, Integer targetGroupId) throws it.geosolutions.geonetwork.exception.GNServerException, it.geosolutions.geonetwork.exception.GNLibException
it.geosolutions.geonetwork.exception.GNServerExceptionit.geosolutions.geonetwork.exception.GNLibExceptionpublic boolean ping()
ping in interface it.geosolutions.geonetwork.GNClientpublic long insertMetadata(it.geosolutions.geonetwork.util.GNInsertConfiguration cfg,
File metadataFile)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
insertMetadata in interface it.geosolutions.geonetwork.GNClientit.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic long insertRequest(File requestFile) throws it.geosolutions.geonetwork.exception.GNLibException, it.geosolutions.geonetwork.exception.GNServerException
insertRequest in interface it.geosolutions.geonetwork.GNClientit.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic void setPrivileges(long metadataId,
it.geosolutions.geonetwork.util.GNPrivConfiguration cfg)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
setPrivileges in interface it.geosolutions.geonetwork.GNClientit.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic it.geosolutions.geonetwork.util.GNSearchResponse search(it.geosolutions.geonetwork.util.GNSearchRequest searchRequest)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
search in interface it.geosolutions.geonetwork.GNClientit.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic it.geosolutions.geonetwork.util.GNSearchResponse search(File fileRequest) throws it.geosolutions.geonetwork.exception.GNLibException, it.geosolutions.geonetwork.exception.GNServerException
search in interface it.geosolutions.geonetwork.GNClientit.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic org.jdom.Element get(Long id) throws it.geosolutions.geonetwork.exception.GNLibException, it.geosolutions.geonetwork.exception.GNServerException
get in interface it.geosolutions.geonetwork.GNClientit.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic org.jdom.Element get(String uuid) throws it.geosolutions.geonetwork.exception.GNLibException, it.geosolutions.geonetwork.exception.GNServerException
get in interface it.geosolutions.geonetwork.GNClientit.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic void deleteMetadata(long id)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
deleteMetadata in interface it.geosolutions.geonetwork.GNClientit.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic void updateMetadata(long id,
File metadataFile)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
updateMetadata in interface it.geosolutions.geonetwork.GNClientit.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic void updateMetadata(long id,
File metadataFile,
String encoding)
throws it.geosolutions.geonetwork.exception.GNLibException,
it.geosolutions.geonetwork.exception.GNServerException
updateMetadata in interface it.geosolutions.geonetwork.GNClientit.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic it.geosolutions.geonetwork.op.gn3.GN3MetadataGetInfo.MetadataInfo getInfo(Long id) throws it.geosolutions.geonetwork.exception.GNLibException, it.geosolutions.geonetwork.exception.GNServerException
getInfo in interface it.geosolutions.geonetwork.GNClientit.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic it.geosolutions.geonetwork.op.gn3.GN3MetadataGetInfo.MetadataInfo getInfo(String uuid) throws it.geosolutions.geonetwork.exception.GNLibException, it.geosolutions.geonetwork.exception.GNServerException
getInfo in interface it.geosolutions.geonetwork.GNClientit.geosolutions.geonetwork.exception.GNLibExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic it.geosolutions.geonetwork.util.HTTPUtils getConnection()
throws it.geosolutions.geonetwork.exception.GNLibException
getConnection in interface it.geosolutions.geonetwork.GNClientit.geosolutions.geonetwork.exception.GNLibExceptionCopyright © 2020. All Rights Reserved.