Modifier and Type | Field and Description |
---|---|
protected DirectoryManager |
directoryManager |
Constructor and Description |
---|
CsvImporter(DirectoryManager directoryManager) |
Modifier and Type | Method and Description |
---|---|
Collection<GroupTemplate> |
findGroups(Configuration configuration)
Will locate and build a collection of GroupTemplate objects based on the passed in Configuration
|
Collection<MembershipDTO> |
findGroupToGroupMemberships(Configuration configuration)
Will locate and build a collection of
MembershipDTO objects which
represent membership relationships between groups and groups based on the passed in Configuration. |
Collection<UserTemplateWithCredentialAndAttributes> |
findUsers(Configuration configuration)
Will locate and build a collection of UserTemplate objects based on the passed in Configuration
|
Collection<MembershipDTO> |
findUserToGroupMemberships(Configuration configuration)
Will locate and build a collection of
MembershipDTO objects which
represent membership relationships between users and groups based on the passed in Configuration. |
Class |
getConfigurationType()
The type of configuration being used for this Import.
|
protected Result |
importGroupMemberships(Iterable<MembershipDTO> memberships,
Configuration configuration) |
protected Result |
importGroups(Collection<GroupTemplate> groups,
Configuration configuration) |
protected Result |
importUserMemberships(Iterable<MembershipDTO> memberships,
Configuration configuration) |
protected Result |
importUsers(Collection<UserTemplateWithCredentialAndAttributes> users,
Configuration configuration) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
importUsersGroupsAndMemberships, retrieveRemoteSourceDirectory, supportsMultipleDirectories
protected final DirectoryManager directoryManager
public CsvImporter(DirectoryManager directoryManager)
public void init(Configuration configuration)
Importer
public Class getConfigurationType()
Importer
getConfigurationType
in interface Importer
public Collection<MembershipDTO> findUserToGroupMemberships(Configuration configuration) throws ImporterException
MembershipDTO
objects which
represent membership relationships between users and groups based on the passed in Configuration.configuration
- the Importer ConfigurationImporterException
- if there is an error finding group membershipspublic Collection<MembershipDTO> findGroupToGroupMemberships(Configuration configuration) throws ImporterException
MembershipDTO
objects which
represent membership relationships between groups and groups based on the passed in Configuration.configuration
- the Importer ConfigurationImporterException
- if there is an error finding group membershipspublic Collection<GroupTemplate> findGroups(Configuration configuration) throws ImporterException
configuration
- the Importer ConfigurationImporterException
- if there is an error finding the groupspublic Collection<UserTemplateWithCredentialAndAttributes> findUsers(Configuration configuration) throws ImporterException
configuration
- the Importer ConfigurationImporterException
- if there is an error finding the usersprotected Result importGroups(Collection<GroupTemplate> groups, Configuration configuration) throws ImporterException
ImporterException
protected Result importUsers(Collection<UserTemplateWithCredentialAndAttributes> users, Configuration configuration) throws ImporterException
ImporterException
protected Result importUserMemberships(Iterable<MembershipDTO> memberships, Configuration configuration) throws ImporterException
ImporterException
protected Result importGroupMemberships(Iterable<MembershipDTO> memberships, Configuration configuration) throws ImporterException
ImporterException
public Result importUsersGroupsAndMemberships(Configuration configuration) throws ImporterException
Importer
Configuration
importUsersGroupsAndMemberships
in interface Importer
configuration
- the Configuration, this could be a JDBC configuration or a CSVConfigurationImporterException
- general exception if anything happened during the importpublic boolean supportsMultipleDirectories(Configuration configuration)
Importer
supportsMultipleDirectories
in interface Importer
configuration
- the Importer Configurationpublic Set<Directory> retrieveRemoteSourceDirectory(Configuration configuration)
Importer
retrieveRemoteSourceDirectory
in interface Importer
configuration
- the import configuration.Copyright © 2021 Atlassian. All rights reserved.