add exportEntityTypes importEntityTypes
This commit is contained in:
parent
e99a35a100
commit
442cf7b860
|
@ -12,6 +12,7 @@ import eu.eudat.commonmodels.models.descriptiotemplate.DescriptionTemplateModel;
|
||||||
import eu.eudat.commonmodels.models.dmpblueprint.*;
|
import eu.eudat.commonmodels.models.dmpblueprint.*;
|
||||||
import eu.eudat.commonmodels.models.dmpreference.DmpReferenceModel;
|
import eu.eudat.commonmodels.models.dmpreference.DmpReferenceModel;
|
||||||
import eu.eudat.commonmodels.models.reference.ReferenceModel;
|
import eu.eudat.commonmodels.models.reference.ReferenceModel;
|
||||||
|
import eu.eudat.file.transformer.enums.FileTransformerEntityType;
|
||||||
import eu.eudat.file.transformer.interfaces.FileTransformerClient;
|
import eu.eudat.file.transformer.interfaces.FileTransformerClient;
|
||||||
import eu.eudat.file.transformer.interfaces.FileTransformerConfiguration;
|
import eu.eudat.file.transformer.interfaces.FileTransformerConfiguration;
|
||||||
import eu.eudat.file.transformer.model.enums.FileFormats;
|
import eu.eudat.file.transformer.model.enums.FileFormats;
|
||||||
|
@ -47,6 +48,9 @@ public class WordFileTransformerService implements FileTransformerClient {
|
||||||
new FileFormat(FileFormats.PDF.getValue(), true, "fa-file-pdf-o"),
|
new FileFormat(FileFormats.PDF.getValue(), true, "fa-file-pdf-o"),
|
||||||
new FileFormat(FileFormats.DOCX.getValue(), true, "fa-file-word-o"));
|
new FileFormat(FileFormats.DOCX.getValue(), true, "fa-file-word-o"));
|
||||||
|
|
||||||
|
private final static List<FileTransformerEntityType> FILE_TRANSFORMER_ENTITY_TYPES = List.of(
|
||||||
|
FileTransformerEntityType.Dmp, FileTransformerEntityType.Description);
|
||||||
|
|
||||||
private final WordFileTransformerServiceProperties wordFileTransformerServiceProperties;
|
private final WordFileTransformerServiceProperties wordFileTransformerServiceProperties;
|
||||||
private final PdfService pdfService;
|
private final PdfService pdfService;
|
||||||
private final WordBuilder wordBuilder;
|
private final WordBuilder wordBuilder;
|
||||||
|
@ -126,6 +130,7 @@ public class WordFileTransformerService implements FileTransformerClient {
|
||||||
configuration.setFileTransformerId(this.wordFileTransformerServiceProperties.getTransformerId());
|
configuration.setFileTransformerId(this.wordFileTransformerServiceProperties.getTransformerId());
|
||||||
configuration.setExportVariants(FILE_FORMATS);
|
configuration.setExportVariants(FILE_FORMATS);
|
||||||
configuration.setImportVariants(null);
|
configuration.setImportVariants(null);
|
||||||
|
configuration.setExportEntityTypes(FILE_TRANSFORMER_ENTITY_TYPES);
|
||||||
configuration.setUseSharedStorage(this.wordFileTransformerServiceProperties.isUseSharedStorage());
|
configuration.setUseSharedStorage(this.wordFileTransformerServiceProperties.isUseSharedStorage());
|
||||||
return configuration;
|
return configuration;
|
||||||
}
|
}
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -25,7 +25,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>gr.cite.opendmp</groupId>
|
<groupId>gr.cite.opendmp</groupId>
|
||||||
<artifactId>file-transformer-base</artifactId>
|
<artifactId>file-transformer-base</artifactId>
|
||||||
<version>0.0.11</version>
|
<version>0.0.12</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.yaml</groupId>
|
<groupId>org.yaml</groupId>
|
||||||
|
|
Loading…
Reference in New Issue