Uses simple client provider

This commit is contained in:
Fabio Sinibaldi 2022-03-07 12:29:40 +01:00
parent 696031974c
commit 2a83ae98bb
1 changed files with 2 additions and 4 deletions

View File

@ -3,25 +3,23 @@ package org.gcube.application.geoportal.clients;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.bson.Document;
import org.gcube.application.cms.tests.model.concessioni.TestConcessioniModel;
import org.gcube.application.geoportal.client.DefaultProfiledDocumentsClient;
import org.gcube.application.geoportal.client.utils.Serialization;
import org.gcube.application.geoportal.common.model.document.Project;
import org.gcube.application.geoportal.common.model.rest.RegisterFileSetRequest;
import org.gcube.application.geoportal.common.rest.Projects;
import org.gcube.application.geoportal.common.utils.FileSets;
import org.gcube.application.geoportal.common.utils.Files;
import org.gcube.application.geoportal.common.utils.StorageUtils;
import java.io.File;
import java.io.FileNotFoundException;
import java.rmi.RemoteException;
import static org.gcube.application.geoportal.client.GeoportalAbstractPlugin.profiledModel;
import static org.gcube.application.geoportal.client.GeoportalAbstractPlugin.projects;
public class GenericUseCases {
public Projects<Project> getClient(String profileID){
return profiledModel(profileID, Project.class, DefaultProfiledDocumentsClient.class).build();
return projects(profileID).build();
}
public void createNew () throws RemoteException, FileNotFoundException, JsonProcessingException {