Class Configuration
java.lang.Object
com.atlassian.crowd.importer.config.Configuration
- Direct Known Subclasses:
CsvConfiguration
,DirectoryConfiguration
,JdbcConfiguration
This class represents the properties required to connect with a database,
specifically the details for a JIRA, Confluence or Bamboo database.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Override any data in the target directory from what is found in the source, -
Constructor Summary
ConstructorDescriptionConfiguration
(Long directoryID, String application, boolean importPasswords, boolean overwriteTarget) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
int
hashCode()
boolean
boolean
void
isValid()
Will make sure that all required properties have been set on the Configuration object to perform an import.void
setApplication
(String application) void
setDirectoryID
(Long directoryID) void
setImportNestedGroups
(boolean importNestedGroups) void
setImportPasswords
(boolean importPasswords) void
setOverwriteTarget
(boolean overwriteTarget) toString()
-
Field Details
-
overwriteTarget
protected boolean overwriteTargetOverride any data in the target directory from what is found in the source,
-
-
Constructor Details
-
Configuration
public Configuration() -
Configuration
public Configuration(Long directoryID, String application, boolean importPasswords, boolean overwriteTarget) - Parameters:
directoryID
- the target directory to import users/groups/memberships tooapplication
- the name of the application, eg. 'csv', 'directory', 'jira' etc.importPasswords
- whether or not passwords should be importedoverwriteTarget
- overwrite any current objects in the target directory
-
-
Method Details
-
getApplication
-
setApplication
-
getDirectoryID
-
setDirectoryID
-
isOverwriteTarget
public boolean isOverwriteTarget() -
isImportPasswords
public boolean isImportPasswords() -
setImportPasswords
public void setImportPasswords(boolean importPasswords) -
getImportNestedGroups
public boolean getImportNestedGroups() -
setImportNestedGroups
public void setImportNestedGroups(boolean importNestedGroups) -
isValid
Will make sure that all required properties have been set on the Configuration object to perform an import. Override this method if you require specific validation of your Configuration- Throws:
ImporterConfigurationException
- if there is a problem validating the configuration
-
setOverwriteTarget
public void setOverwriteTarget(boolean overwriteTarget) -
toString
-
equals
-
hashCode
public int hashCode()
-