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
Constructors Constructor Description ConfluenceTempDirExportFileNameGenerator(BootstrapManager bootstrapManager, String exportDirPrefix, String extension, String dateFormat, String timeFormat)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExportFileNameGenerator
create(ConfluenceDirectories confluenceDirectories, String exportDirPrefix, String extension, String dateFormat, String timeFormat)
File
createExportDirectory()
Create a unique directory within which an export operation can create any necessary files and final output.String
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 Detail
-
ConfluenceTempDirExportFileNameGenerator
@Deprecated public ConfluenceTempDirExportFileNameGenerator(BootstrapManager bootstrapManager, String exportDirPrefix, String extension, String dateFormat, String timeFormat)
Deprecated.
-
-
Method Detail
-
create
public static ExportFileNameGenerator create(ConfluenceDirectories confluenceDirectories, String exportDirPrefix, String extension, String dateFormat, String timeFormat)
- Since:
- 7.14
-
createExportDirectory
public File createExportDirectory() throws IOException
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
public String getExportFileName(String... differentiators)
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.
-
-