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:
parent
c216799898
commit
40413be914
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue