Added missing dependencies
parent
b7114e175b
commit
65173d3d29
|
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
package org.librecms.assets;
|
||||
|
||||
import org.libreccm.categorization.CategorizationImExporter;
|
||||
import org.libreccm.imexport.AbstractEntityImExporter;
|
||||
import org.libreccm.imexport.Processes;
|
||||
import org.librecms.contentsection.Asset;
|
||||
|
|
@ -44,6 +45,9 @@ public abstract class AbstractAssetImExporter<T extends Asset>
|
|||
@Inject
|
||||
private AssetRepository assetRepo;
|
||||
|
||||
@Inject
|
||||
private CategorizationImExporter categorizationImExporter;
|
||||
|
||||
@Inject
|
||||
@Any
|
||||
@Processes(ItemAttachment.class)
|
||||
|
|
@ -62,7 +66,9 @@ public abstract class AbstractAssetImExporter<T extends Asset>
|
|||
@PostConstruct
|
||||
@Override
|
||||
protected void init() {
|
||||
// ItemAttachmentImExporter requires that all assets to be imported
|
||||
// Categorization requires that all categorized entites are imported
|
||||
categorizationImExporter.addRequiredEntities(Set.of(getEntityClass()));
|
||||
// ItemAttachmentImExporter requires that all assets are imported
|
||||
itemAttachmentImExporter.addRequiredEntities(Set.of(getEntityClass()));
|
||||
|
||||
initAssetImExporter();
|
||||
|
|
|
|||
Loading…
Reference in New Issue