public interface Importer
Modifier and Type | Method and Description |
---|---|
Class |
getConfigurationType()
The type of configuration being used for this Import.
|
Result |
importUsersGroupsAndMemberships(Configuration configuration)
Responsible for the import of both users and groups into Crowd using the given
Configuration |
void |
init(Configuration configuration)
Initialise anything required for the import process.
|
Set<Directory> |
retrieveRemoteSourceDirectory(Configuration configuration)
The retrieve the set of remote source directories.
|
boolean |
supportsMultipleDirectories(Configuration configuration)
Some sources might be capable of handling more than one directory.
|
Result importUsersGroupsAndMemberships(Configuration configuration) throws ImporterException
Configuration
configuration
- the Configuration, this could be a JDBC configuration or a CSVConfigurationImporterException
- general exception if anything happened during the importvoid init(Configuration configuration)
configuration
- can contain any setup params such as database settings that need init'ingClass getConfigurationType()
boolean supportsMultipleDirectories(Configuration configuration) throws ImporterException
configuration
- the Importer ConfigurationImporterException
- if there is an error figuring out source directories.Set<Directory> retrieveRemoteSourceDirectory(Configuration configuration) throws ImporterException
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.