Class ZipEntryImportTask
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.AbstractPartitionedPersistTask<ZipEntryImportTask.InputArgs,Void,Map<ch.tocco.nice2.dms.impl.upload.zip.EntryPath,ContentTreeNode>>
ch.tocco.nice2.dms.impl.upload.zip.ZipEntryImportTask
- All Implemented Interfaces:
PersistTask<Iterable<ZipEntryImportTask.InputArgs>,
Iterable<Void>>
public class ZipEntryImportTask
extends AbstractPartitionedPersistTask<ZipEntryImportTask.InputArgs,Void,Map<ch.tocco.nice2.dms.impl.upload.zip.EntryPath,ContentTreeNode>>
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionZipEntryImportTask
(ContentTreeService contentTreeService, MainUriResolveStrategy mainUriResolveStrategy, EntityDefaultValueService defaultValueService, BinaryFactory binaryFactory, CascadingDeleteService cascadingDeleteService, SecurityManager securityManager, boolean publishResources, AbstractZipExtractionJob.Progress progress) -
Method Summary
Modifier and TypeMethodDescriptionprotected Function
<Context, Map<ch.tocco.nice2.dms.impl.upload.zip.EntryPath, ContentTreeNode>> Create a function that creates an instance of Z.run
(Optional<Iterable<ZipEntryImportTask.InputArgs>> inputArgs, CommandContext commandContext) Methods inherited from class ch.tocco.nice2.persist.core.api.exec.AbstractPartitionedPersistTask
getTaskData, partition, partition, partition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
ZipEntryImportTask
public ZipEntryImportTask(ContentTreeService contentTreeService, MainUriResolveStrategy mainUriResolveStrategy, EntityDefaultValueService defaultValueService, BinaryFactory binaryFactory, CascadingDeleteService cascadingDeleteService, SecurityManager securityManager, boolean publishResources, AbstractZipExtractionJob.Progress progress)
-
-
Method Details
-
createTaskData
protected Function<Context,Map<ch.tocco.nice2.dms.impl.upload.zip.EntryPath, createTaskData()ContentTreeNode>> Description copied from class:AbstractPartitionedPersistTask
Create a function that creates an instance of Z. This function is called once for each context and should be used to load entities (or otherContext
related objects) which are used in every iteration.- Specified by:
createTaskData
in classAbstractPartitionedPersistTask<ZipEntryImportTask.InputArgs,
Void, Map<ch.tocco.nice2.dms.impl.upload.zip.EntryPath, ContentTreeNode>>
-
run
public Iterable<Void> run(Optional<Iterable<ZipEntryImportTask.InputArgs>> inputArgs, CommandContext commandContext) throws Exception - Throws:
Exception
-