Class ConditionalImporter
java.lang.Object
com.atlassian.crowd.importer.importers.ConditionalImporter
- All Implemented Interfaces:
Importer
- Direct Known Subclasses:
BambooImporter
,ConfluenceImporter
,JiraImporter
Responsible for identifying the appropriate Importer based on
whether the source product is integrated with Embedded Crowd
- Since:
- 4.4.3/5.0.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DirectoryManager
protected org.springframework.jdbc.core.JdbcOperations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe type of configuration being used for this Import.protected abstract Importer
protected abstract 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
-
ConditionalImporter
-
-
Method Details
-
getCrowdifiedImporter
-
getFallbackImporter
-
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.
-