Modifier and Type | Field and Description |
---|---|
protected DirectoryManager |
directoryManager |
protected org.springframework.jdbc.core.JdbcOperations |
jdbcTemplate |
Constructor and Description |
---|
JiraImporter(DirectoryManager directoryManager) |
Modifier and Type | Method and Description |
---|---|
Importer |
determineImporter(Configuration configuration)
Determines the appropriate importer to delegate the import operation to.
|
Class |
getConfigurationType()
The type of configuration being used for this Import.
|
Result |
importUsersGroupsAndMemberships(Configuration configuration)
This method will handle the importing of Users, Groups and Memberships from Confluence.
|
void |
init(Configuration configuration)
Initialise anything required for the import process.
|
Set<Directory> |
retrieveRemoteSourceDirectory(Configuration configuration)
The retrieve the set of remote source directories.
|
void |
setJdbcTemplate(JdbcConfiguration configuration) |
boolean |
supportsMultipleDirectories(Configuration configuration)
Some sources might be capable of handling more than one directory.
|
protected org.springframework.jdbc.core.JdbcOperations jdbcTemplate
protected DirectoryManager directoryManager
public JiraImporter(DirectoryManager directoryManager)
public Importer determineImporter(Configuration configuration) throws ImporterException
configuration
- the configuration required for the import.ImporterException
- if anything happened during the import.public void init(Configuration configuration)
Importer
public Class getConfigurationType()
Importer
getConfigurationType
in interface Importer
public void setJdbcTemplate(JdbcConfiguration configuration)
public Result importUsersGroupsAndMemberships(Configuration configuration) throws ImporterException
importUsersGroupsAndMemberships
in interface Importer
configuration
- the configuration required for the importImporterException
- general exception if anything happened during the importpublic boolean supportsMultipleDirectories(Configuration configuration) throws ImporterException
Importer
supportsMultipleDirectories
in interface Importer
configuration
- the Importer ConfigurationImporterException
- if there is an error figuring out source directories.public Set<Directory> retrieveRemoteSourceDirectory(Configuration configuration) throws ImporterException
Importer
retrieveRemoteSourceDirectory
in interface Importer
configuration
- the import configuration.ImporterException
- will be thrown if an error occurs connecting,
or if the provided configuration
is invalid.Copyright © 2020 Atlassian. All rights reserved.