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.dmpreference.DmpReferenceModel;
|
||||
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.FileTransformerConfiguration;
|
||||
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.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 PdfService pdfService;
|
||||
private final WordBuilder wordBuilder;
|
||||
|
@ -126,6 +130,7 @@ public class WordFileTransformerService implements FileTransformerClient {
|
|||
configuration.setFileTransformerId(this.wordFileTransformerServiceProperties.getTransformerId());
|
||||
configuration.setExportVariants(FILE_FORMATS);
|
||||
configuration.setImportVariants(null);
|
||||
configuration.setExportEntityTypes(FILE_TRANSFORMER_ENTITY_TYPES);
|
||||
configuration.setUseSharedStorage(this.wordFileTransformerServiceProperties.isUseSharedStorage());
|
||||
return configuration;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue