2020-04-01 17:16:06 +02:00
|
|
|
package eu.eudat.logic.mapper.elastic;
|
|
|
|
|
2023-07-25 14:04:39 +02:00
|
|
|
import eu.eudat.data.entities.DescriptionTemplate;
|
2020-04-01 17:16:06 +02:00
|
|
|
import eu.eudat.elastic.entities.DatasetTempalate;
|
|
|
|
|
|
|
|
public class DatasetTemplateMapper {
|
|
|
|
|
2023-07-25 14:04:39 +02:00
|
|
|
public static DatasetTempalate toElastic(DescriptionTemplate profile) {
|
2020-04-01 17:16:06 +02:00
|
|
|
DatasetTempalate elastic = new DatasetTempalate();
|
|
|
|
elastic.setId(profile.getId());
|
|
|
|
elastic.setName(profile.getLabel());
|
|
|
|
return elastic;
|
|
|
|
}
|
|
|
|
}
|