|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.importer.importers.JiraImporter
public class JiraImporter
Field Summary | |
---|---|
protected DirectoryManager |
directoryManager
|
protected org.springframework.jdbc.core.JdbcOperations |
jdbcTemplate
|
protected PasswordHelper |
passwordHelper
|
Constructor Summary | |
---|---|
JiraImporter(DirectoryManager directoryManager,
PasswordHelper passwordHelper)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.springframework.jdbc.core.JdbcOperations jdbcTemplate
protected DirectoryManager directoryManager
protected PasswordHelper passwordHelper
Constructor Detail |
---|
public JiraImporter(DirectoryManager directoryManager, PasswordHelper passwordHelper)
Method Detail |
---|
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
init
in interface Importer
configuration
- can contain any setup params such as database settings that need init'ingpublic 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 import
ImporterException
- general exception if anything happened during the importpublic boolean supportsMultipleDirectories(Configuration configuration) throws ImporterException
Importer
supportsMultipleDirectories
in interface Importer
configuration
- the Importer Configuration
ImporterException
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |