Class ConfluenceTempDirExportFileNameGenerator
java.lang.Object
com.atlassian.confluence.importexport.impl.ConfluenceTempDirExportFileNameGenerator
- All Implemented Interfaces:
ExportFileNameGenerator
public class ConfluenceTempDirExportFileNameGenerator
extends Object
implements ExportFileNameGenerator
A file name generator that will create directories and filenames appropriate for the configured Confluence temporary
directory.
-
Constructor Summary
ConstructorsConstructorDescriptionConfluenceTempDirExportFileNameGenerator
(BootstrapManager bootstrapManager, String exportDirPrefix, String extension, String dateFormat, String timeFormat) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExportFileNameGenerator
create
(ConfluenceDirectories confluenceDirectories, String exportDirPrefix, String extension, String dateFormat, String timeFormat) Create a unique directory within which an export operation can create any necessary files and final output.getExportFileName
(String... differentiators) Generate a unique file name encompassing the differentiator parameters supplied.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.importexport.impl.ExportFileNameGenerator
getExportFile
-
Constructor Details
-
ConfluenceTempDirExportFileNameGenerator
@Deprecated public ConfluenceTempDirExportFileNameGenerator(BootstrapManager bootstrapManager, String exportDirPrefix, String extension, String dateFormat, String timeFormat) Deprecated.
-
-
Method Details
-
create
public static ExportFileNameGenerator create(ConfluenceDirectories confluenceDirectories, String exportDirPrefix, String extension, String dateFormat, String timeFormat) - Since:
- 7.14
-
createExportDirectory
Description copied from interface:ExportFileNameGenerator
Create a unique directory within which an export operation can create any necessary files and final output. The client has no control over the naming of this directory.- Specified by:
createExportDirectory
in interfaceExportFileNameGenerator
- Returns:
- a File representing an directory which exists.
- Throws:
IOException
- if there is a problem creating the output directory.
-
getExportFileName
Description copied from interface:ExportFileNameGenerator
Generate a unique file name encompassing the differentiator parameters supplied. Multiple calls with the same differentiator parameters will each result in unique file names.- Specified by:
getExportFileName
in interfaceExportFileNameGenerator
- Parameters:
differentiators
- 0 or more components that will be used in creation of the file name.- Returns:
- a unique file name that may be created.
-
create(ConfluenceDirectories, String, String, String, String)