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

allow to define parent datasets through IDataSet

SVN: 20192
parent 23c90b15
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,8 @@
package ch.systemsx.cisd.etlserver.registrator.api.v1;
import java.util.List;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.FileFormatType;
/**
......@@ -109,4 +111,11 @@ public interface IDataSet
* Set the value for a property.
*/
void setPropertyValue(String propertyCode, String propertyValue);
/** Sets the parents of the dataset. */
void setParentDatasets(List<String> parentDatasetCodes);
/** Sets the parents of the dataset. */
List<String> getParentDatasets();
}
......@@ -17,6 +17,7 @@
package ch.systemsx.cisd.etlserver.registrator.api.v1.impl;
import java.io.File;
import java.util.List;
import ch.systemsx.cisd.common.exceptions.EnvironmentFailureException;
import ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationDetails;
......@@ -169,4 +170,15 @@ public class DataSet<T extends DataSetInformation> implements IDataSet
{
registrationDetails.setPropertyValue(propertyCode, propertyValue);
}
public void setParentDatasets(List<String> parentDatasetCodes)
{
DataSetInformation dataSetInformation = registrationDetails.getDataSetInformation();
dataSetInformation.setParentDataSetCodes(parentDatasetCodes);
}
public List<String> getParentDatasets()
{
return registrationDetails.getDataSetInformation().getParentDataSetCodes();
}
}
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