public class DefaultDocumentsClient<T extends org.gcube.application.geoportal.common.model.document.Project> extends Object implements org.gcube.application.geoportal.common.rest.Projects<T>
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.common.clients.delegates.ProxyDelegate<javax.ws.rs.client.WebTarget> |
delegate |
protected Class<T> |
managedClass |
protected String |
profileID |
| Constructor and Description |
|---|
DefaultDocumentsClient() |
| Modifier and Type | Method and Description |
|---|---|
T |
createNew(org.bson.Document toCreate) |
void |
deleteById(String id) |
void |
deleteById(String id,
Boolean force) |
T |
deleteFileSet(String id,
String path,
Boolean force) |
T |
forceUnlock(String id) |
T |
getById(String id) |
org.gcube.application.geoportal.common.model.configuration.Configuration |
getConfiguration() |
Class<T> |
getManagedClass() |
T |
performStep(String id,
org.gcube.application.geoportal.common.model.rest.StepExecutionRequest request) |
Iterator<T> |
query(org.gcube.application.geoportal.common.model.rest.QueryRequest request) |
<C> Iterator<C> |
queryForClass(org.gcube.application.geoportal.common.model.rest.QueryRequest request,
Class<C> clazz) |
String |
queryForJSON(org.gcube.application.geoportal.common.model.rest.QueryRequest request) |
T |
registerFileSet(String id,
org.gcube.application.geoportal.common.model.rest.RegisterFileSetRequest req) |
T |
setAccessPolicy(String id,
org.gcube.application.geoportal.common.model.document.access.Access toSet) |
T |
updateDocument(String id,
org.bson.Document updatedDocument) |
@NonNull protected final org.gcube.common.clients.delegates.ProxyDelegate<javax.ws.rs.client.WebTarget> delegate
@NonNull protected final String profileID
public Class<T> getManagedClass()
getManagedClass in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>public T createNew(org.bson.Document toCreate) throws RemoteException
createNew in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>RemoteExceptionpublic void deleteById(String id) throws RemoteException
deleteById in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>RemoteExceptionpublic void deleteById(String id, Boolean force) throws RemoteException
deleteById in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>RemoteExceptionpublic T getById(String id) throws RemoteException
getById in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>RemoteExceptionpublic org.gcube.application.geoportal.common.model.configuration.Configuration getConfiguration()
throws RemoteException
getConfiguration in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>RemoteExceptionpublic Iterator<T> query(org.gcube.application.geoportal.common.model.rest.QueryRequest request) throws RemoteException
query in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>RemoteExceptionpublic <C> Iterator<C> queryForClass(org.gcube.application.geoportal.common.model.rest.QueryRequest request, Class<C> clazz) throws RemoteException
queryForClass in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>RemoteExceptionpublic String queryForJSON(org.gcube.application.geoportal.common.model.rest.QueryRequest request) throws RemoteException
queryForJSON in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>RemoteExceptionpublic T performStep(String id, org.gcube.application.geoportal.common.model.rest.StepExecutionRequest request) throws RemoteException
performStep in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>RemoteExceptionpublic T registerFileSet(String id, org.gcube.application.geoportal.common.model.rest.RegisterFileSetRequest req) throws RemoteException, org.gcube.application.geoportal.common.faults.InvalidRequestException
registerFileSet in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>RemoteExceptionorg.gcube.application.geoportal.common.faults.InvalidRequestExceptionpublic T deleteFileSet(String id, String path, Boolean force) throws RemoteException
deleteFileSet in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>RemoteExceptionpublic T forceUnlock(String id) throws RemoteException
forceUnlock in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>RemoteExceptionpublic T setAccessPolicy(String id, org.gcube.application.geoportal.common.model.document.access.Access toSet) throws RemoteException
setAccessPolicy in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>RemoteExceptionpublic T updateDocument(String id, org.bson.Document updatedDocument) throws RemoteException
updateDocument in interface org.gcube.application.geoportal.common.rest.Projects<T extends org.gcube.application.geoportal.common.model.document.Project>RemoteExceptionCopyright © 2022. All Rights Reserved.