Skip to content
Snippets Groups Projects
Commit eb7bedbc authored by tpylak's avatar tpylak
Browse files

minor: do not confuse users with locator type

SVN: 19823
parent 33764171
No related branches found
No related tags found
No related merge requests found
...@@ -35,15 +35,12 @@ public class DataSetRegistrationDetails<T extends DataSetInformation> implements ...@@ -35,15 +35,12 @@ public class DataSetRegistrationDetails<T extends DataSetInformation> implements
private String processorType; private String processorType;
private LocatorType locatorType;
private T dataSetInformation; private T dataSetInformation;
public DataSetRegistrationDetails() public DataSetRegistrationDetails()
{ {
fileFormatType = new FileFormatType(FileFormatType.DEFAULT_FILE_FORMAT_TYPE_CODE); fileFormatType = new FileFormatType(FileFormatType.DEFAULT_FILE_FORMAT_TYPE_CODE);
measuredData = true; measuredData = true;
locatorType = new LocatorType(LocatorType.DEFAULT_LOCATOR_TYPE_CODE);
} }
public FileFormatType getFileFormatType(File incomingDataSetPath) public FileFormatType getFileFormatType(File incomingDataSetPath)
...@@ -68,7 +65,7 @@ public class DataSetRegistrationDetails<T extends DataSetInformation> implements ...@@ -68,7 +65,7 @@ public class DataSetRegistrationDetails<T extends DataSetInformation> implements
public LocatorType getLocatorType(File incomingDataSetPath) public LocatorType getLocatorType(File incomingDataSetPath)
{ {
return locatorType; return new LocatorType(LocatorType.DEFAULT_LOCATOR_TYPE_CODE);
} }
public FileFormatType getFileFormatType() public FileFormatType getFileFormatType()
...@@ -117,16 +114,6 @@ public class DataSetRegistrationDetails<T extends DataSetInformation> implements ...@@ -117,16 +114,6 @@ public class DataSetRegistrationDetails<T extends DataSetInformation> implements
dataSetInformation.setDataSetType(dataSetType); dataSetInformation.setDataSetType(dataSetType);
} }
public LocatorType getLocatorType()
{
return locatorType;
}
public void setLocatorType(LocatorType locatorType)
{
this.locatorType = locatorType;
}
public T getDataSetInformation() public T getDataSetInformation()
{ {
return dataSetInformation; return dataSetInformation;
......
...@@ -215,7 +215,6 @@ public class DataSetStorageAlgorithm<T extends DataSetInformation> ...@@ -215,7 +215,6 @@ public class DataSetStorageAlgorithm<T extends DataSetInformation>
data.setUserId(dataSetInformation.getUploadingUserIdOrNull()); data.setUserId(dataSetInformation.getUploadingUserIdOrNull());
data.setUserEMail(dataSetInformation.tryGetUploadingUserEmail()); data.setUserEMail(dataSetInformation.tryGetUploadingUserEmail());
data.setExtractableData(dataSetInformation.getExtractableData()); data.setExtractableData(dataSetInformation.getExtractableData());
data.setLocatorType(registrationDetails.getLocatorType());
data.setDataSetType(registrationDetails.getDataSetType()); data.setDataSetType(registrationDetails.getDataSetType());
data.setFileFormatType(registrationDetails.getFileFormatType()); data.setFileFormatType(registrationDetails.getFileFormatType());
data.setMeasured(registrationDetails.isMeasuredData()); data.setMeasured(registrationDetails.isMeasuredData());
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
package ch.systemsx.cisd.etlserver.registrator.api.v1; package ch.systemsx.cisd.etlserver.registrator.api.v1;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.FileFormatType; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.FileFormatType;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.LocatorType;
/** /**
* @author Chandrasekhar Ramakrishnan * @author Chandrasekhar Ramakrishnan
...@@ -100,14 +99,4 @@ public interface IDataSet ...@@ -100,14 +99,4 @@ public interface IDataSet
* Set the data set type. * Set the data set type.
*/ */
public void setDataSetType(String dataSetTypeCode); public void setDataSetType(String dataSetTypeCode);
/**
* Get the locator type. Defaults to the default specified in {@link LocatorType}.
*/
public String getLocatorType();
/**
* Set the locator type.
*/
public void setLocatorType(String locatorTypeCode);
} }
...@@ -26,7 +26,6 @@ import ch.systemsx.cisd.etlserver.registrator.api.v1.ISampleImmutable; ...@@ -26,7 +26,6 @@ import ch.systemsx.cisd.etlserver.registrator.api.v1.ISampleImmutable;
import ch.systemsx.cisd.openbis.dss.generic.shared.dto.DataSetInformation; import ch.systemsx.cisd.openbis.dss.generic.shared.dto.DataSetInformation;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataSetType; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataSetType;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.FileFormatType; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.FileFormatType;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.LocatorType;
import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.ExperimentIdentifier; import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.ExperimentIdentifier;
/** /**
...@@ -146,16 +145,6 @@ public class DataSet<T extends DataSetInformation> implements IDataSet ...@@ -146,16 +145,6 @@ public class DataSet<T extends DataSetInformation> implements IDataSet
registrationDetails.setDataSetType(new DataSetType(dataSetTypeCode)); registrationDetails.setDataSetType(new DataSetType(dataSetTypeCode));
} }
public String getLocatorType()
{
return registrationDetails.getLocatorType().getCode();
}
public void setLocatorType(String locatorTypeCode)
{
registrationDetails.setLocatorType(new LocatorType(locatorTypeCode));
}
protected void setExperiment(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment exp) protected void setExperiment(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment exp)
{ {
registrationDetails.getDataSetInformation().setExperiment(exp); registrationDetails.getDataSetInformation().setExperiment(exp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment