Class JiraImporter
java.lang.Object
com.atlassian.crowd.importer.importers.ConditionalImporter
com.atlassian.crowd.importer.importers.JiraImporter
- All Implemented Interfaces:
Importer
-
Field Summary
Modifier and TypeFieldDescriptionprotected DirectoryManager
protected org.springframework.jdbc.core.JdbcOperations
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe type of configuration being used for this Import.protected Importer
protected Importer
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.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.
-
Field Details
-
jdbcTemplate
protected org.springframework.jdbc.core.JdbcOperations jdbcTemplate -
directoryManager
-
-
Constructor Details
-
JiraImporter
-
-
Method Details
-
getCrowdifiedImporter
- Specified by:
getCrowdifiedImporter
in classConditionalImporter
-
getFallbackImporter
- Specified by:
getFallbackImporter
in classConditionalImporter
-
init
Description copied from interface:Importer
Initialise anything required for the import process. -
getConfigurationType
Description copied from interface:Importer
The type of configuration being used for this Import.- Specified by:
getConfigurationType
in interfaceImporter
- Returns:
- Class that should be a subclass of Configuration
-
setJdbcTemplate
-
importUsersGroupsAndMemberships
This method will handle the importing of Users, Groups and Memberships from Confluence.- Specified by:
importUsersGroupsAndMemberships
in interfaceImporter
- Parameters:
configuration
- the configuration required for the import- Returns:
- success or failure for the import.
- Throws:
ImporterException
- general exception if anything happened during the import
-
supportsMultipleDirectories
Description copied from interface:Importer
Some sources might be capable of handling more than one directory.- Specified by:
supportsMultipleDirectories
in interfaceImporter
- Parameters:
configuration
- the Importer Configuration- Returns:
- true if the source can have multiple directories.
- Throws:
ImporterException
- if there is an error figuring out source directories.
-
retrieveRemoteSourceDirectory
public Set<Directory> retrieveRemoteSourceDirectory(Configuration configuration) throws ImporterException Description copied from interface:Importer
The retrieve the set of remote source directories.- Specified by:
retrieveRemoteSourceDirectory
in interfaceImporter
- Parameters:
configuration
- the import configuration.- Returns:
- the set of source directories.
- Throws:
ImporterException
- will be thrown if an error occurs connecting, or if the providedconfiguration
is invalid.
-