Class Configuration

java.lang.Object
com.atlassian.crowd.importer.config.Configuration
Direct Known Subclasses:
CsvConfiguration, DirectoryConfiguration, JdbcConfiguration

public class Configuration extends Object
This class represents the properties required to connect with a database, specifically the details for a JIRA, Confluence or Bamboo database.
  • Field Details

    • overwriteTarget

      protected boolean overwriteTarget
      Override 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 too
      application - the name of the application, eg. 'csv', 'directory', 'jira' etc.
      importPasswords - whether or not passwords should be imported
      overwriteTarget - overwrite any current objects in the target directory
  • Method Details

    • getApplication

      public String getApplication()
    • setApplication

      public void setApplication(String application)
    • getDirectoryID

      public Long getDirectoryID()
    • setDirectoryID

      public void setDirectoryID(Long directoryID)
    • 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

      public void isValid() throws ImporterConfigurationException
      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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object