Uses simple client provider
This commit is contained in:
parent
696031974c
commit
2a83ae98bb
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue