public class AoImportTemporaryFilesImpl extends Object implements AoImportTemporaryFiles
Constructor and Description |
---|
AoImportTemporaryFilesImpl(File parentDirectory) |
Modifier and Type | Method and Description |
---|---|
File |
createFileForEntity(String entityName)
Creates a new the file object for an entity.
|
void |
deleteTempFiles()
Deletes the temporary files held in this object.
|
SortedMap<String,Long> |
getAOEntityWeights()
Returns a map from each AOEntity to the weight used for sorting the entity.
|
SortedMap<String,File> |
getAOXmlFiles()
Returns a map from each AOEntity to the temporary XML partition file for the Entity.
|
File |
getFileForEntity(String entityName)
Returns the file registered for an entity.
|
File |
getParentDirectory()
Returns the temporary directory which is the parent of all the temporary partition files.
|
void |
registerAoEntities()
Register all the AO entities that are defined to be imported by plugins.
|
void |
registerAoXmlFile(String entityName,
File file)
Record the entityName -> file mapping.
|
public AoImportTemporaryFilesImpl(File parentDirectory) throws IOException
IOException
public void registerAoEntities()
AoImportTemporaryFiles
registerAoEntities
in interface AoImportTemporaryFiles
public File getParentDirectory()
AoImportTemporaryFiles
getParentDirectory
in interface AoImportTemporaryFiles
public SortedMap<String,File> getAOXmlFiles()
AoImportTemporaryFiles
getAOXmlFiles
in interface AoImportTemporaryFiles
public File createFileForEntity(String entityName)
AoImportTemporaryFiles
createFileForEntity
in interface AoImportTemporaryFiles
entityName
- The name of the entity.public File getFileForEntity(String entityName)
AoImportTemporaryFiles
getFileForEntity
in interface AoImportTemporaryFiles
entityName
- The name of the entity.public SortedMap<String,Long> getAOEntityWeights()
AoImportTemporaryFiles
getAOEntityWeights
in interface AoImportTemporaryFiles
public void deleteTempFiles()
AoImportTemporaryFiles
deleteTempFiles
in interface AoImportTemporaryFiles
public void registerAoXmlFile(String entityName, File file)
AoImportTemporaryFiles
registerAoXmlFile
in interface AoImportTemporaryFiles
entityName
- The name of the entity.file
- the temporary XML partition file.Copyright © 2002-2021 Atlassian. All Rights Reserved.