Skip to content
Snippets Groups Projects
Commit a339fbd4 authored by felmer's avatar felmer
Browse files

SE-236 extend DefaultStorageProcessor

SVN: 15536
parent 4edbaa17
No related branches found
No related tags found
No related merge requests found
...@@ -64,9 +64,21 @@ public class DefaultStorageProcessor extends AbstractStorageProcessor ...@@ -64,9 +64,21 @@ public class DefaultStorageProcessor extends AbstractStorageProcessor
throw new EnvironmentFailureException(String.format(NO_RENAME, throw new EnvironmentFailureException(String.format(NO_RENAME,
incomingDataSetDirectory, targetFile)); incomingDataSetDirectory, targetFile));
} }
transform(targetFile, rootDir);
return rootDir; return rootDir;
} }
/**
* Transforms the specified original data set and stores it in the specified folder. Note, that
* the target folder is the rootDir argument of
* {@link IStorageProcessor#storeData(DataSetInformation, ITypeExtractor, IMailClient, File, File)}.
* This implementation does nothing.
*/
protected void transform(File originalDataSet, File targetFolderForTransformedDataSet)
{
}
public UnstoreDataAction rollback(final File incomingDataSetDirectory, public UnstoreDataAction rollback(final File incomingDataSetDirectory,
final File storedDataDirectory, Throwable exception) final File storedDataDirectory, Throwable exception)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment