public class ImporterManagerImpl extends Object implements ImporterManager
ImporterManager
Constructor and Description |
---|
ImporterManagerImpl() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAtlassianSupportedApplications()
A list of Atlassian supported applications
|
Set<String> |
getSupportedApplications()
A list of supported applications
|
Result |
performImport(Configuration configuration)
Will perform the import based on the given
configuration into Crowd. |
Set<Directory> |
retrieveRemoteSourceDirectories(Configuration configuration)
The retrieve the set of remote source directories.
|
void |
setAuditLogContext(AuditLogContext auditLogContext) |
void |
setDirectoryManager(DirectoryManager directoryManager) |
void |
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) |
void |
setImporterFactory(ImporterFactory importerFactory) |
boolean |
supportsMultipleDirectories(Configuration configuration)
Returns true if the source application supports multiple directories such as if it is crowdified.
|
void |
testConfiguration(Configuration configuration)
Tests that the connection succeeded or failed based on the provided configuration
|
public Result performImport(Configuration configuration) throws ImporterException
ImporterManager
configuration
into Crowd.performImport
in interface ImporterManager
configuration
- The Configuration
for the importImporterException
- will be thrown if an error occurs connecting
or importing the users into Crowd, or if the provided configuration
is invalid.public boolean supportsMultipleDirectories(Configuration configuration) throws ImporterException
ImporterManager
supportsMultipleDirectories
in interface ImporterManager
configuration
- the import configuration.ImporterException
- will be thrown if an error occurs connecting,
or if the provided configuration
is invalid.public Set<Directory> retrieveRemoteSourceDirectories(Configuration configuration) throws ImporterException
ImporterManager
retrieveRemoteSourceDirectories
in interface ImporterManager
configuration
- the import configuration.ImporterException
- will be thrown if an error occurs connecting,
or if the provided configuration
is invalid.public void testConfiguration(Configuration configuration) throws ImporterConfigurationException
ImporterManager
testConfiguration
in interface ImporterManager
configuration
- the configuration to use with the importerImporterConfigurationException
- thrown if there is an error connecting to the external datasourcepublic Set<String> getSupportedApplications()
ImporterManager
getSupportedApplications
in interface ImporterManager
public Set<String> getAtlassianSupportedApplications()
ImporterManager
getAtlassianSupportedApplications
in interface ImporterManager
public void setImporterFactory(ImporterFactory importerFactory)
public void setAuditLogContext(AuditLogContext auditLogContext)
public void setDirectoryManager(DirectoryManager directoryManager)
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
Copyright © 2020 Atlassian. All rights reserved.