minor fix when reading from the path the type of source

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@135191 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-12-01 18:25:30 +00:00
parent c216799898
commit 40413be914
3 changed files with 2 additions and 5 deletions

View File

@ -112,7 +112,7 @@ public class GrsfPublisherFisheryService {
try{
// Cast the source to the accepted ones
Sources sourceInPath = Sources.valueOf(source);
Sources sourceInPath = Sources.onDeserialize(source);
if(sourceInPath == null)
throw new Exception("The specified source in the path is unknown");

View File

@ -108,7 +108,7 @@ public class GrsfPublisherStockService {
try{
// Cast the source to the accepted ones
Sources sourceInPath = Sources.valueOf(source);
Sources sourceInPath = Sources.onDeserialize(source);
if(sourceInPath == null)
throw new Exception("The specified source in the path is unknown");

View File

@ -12,8 +12,6 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servlet.ServletContext;
import org.gcube.common.homelibrary.home.exceptions.InternalErrorException;
import org.gcube.common.homelibrary.home.workspace.WorkspaceFolder;
import org.gcube.common.homelibrary.home.workspace.WorkspaceItem;
@ -27,7 +25,6 @@ import org.gcube.data_catalogue.grsf_publish_ws.custom_annotations.Tag;
import org.gcube.data_catalogue.grsf_publish_ws.json.input.Base;
import org.gcube.data_catalogue.grsf_publish_ws.json.input.Resource;
import org.gcube.data_catalogue.grsf_publish_ws.json.input.TimeSeriesBean;
import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Status;
import org.gcube.datacatalogue.ckanutillibrary.DataCatalogue;
import org.gcube.datacatalogue.ckanutillibrary.DataCatalogueFactory;
import org.gcube.datacatalogue.ckanutillibrary.DataCatalogueImpl;