com.atlassian.jira.imports.fogbugz
Class FogBugzConfigBean

java.lang.Object
  extended by com.atlassian.jira.imports.importer.impl.AbstractConfigBean
      extended by com.atlassian.jira.imports.fogbugz.FogBugzConfigBean
All Implemented Interfaces:
ImportConfigBean

public class FogBugzConfigBean
extends AbstractConfigBean
implements ImportConfigBean


Field Summary
protected  java.lang.String configFileLocation
           
protected  FogBugzConnectionBean connectionBean
           
 
Fields inherited from class com.atlassian.jira.imports.importer.impl.AbstractConfigBean
authenticationContext, constantsManager, workflowManager, workflowSchemeManager
 
Fields inherited from interface com.atlassian.jira.imports.importer.ImportConfigBean
NULL_VALUE
 
Constructor Summary
FogBugzConfigBean(FogBugzConnectionBean connectionBean, org.apache.commons.configuration.PropertiesConfiguration configFile)
           
 
Method Summary
 java.util.Map getAvailableFieldMappings()
           
 java.util.Collection getAvailableLinkMappings()
           
 java.lang.String getConfigFileLocation()
           
 java.lang.String getConfigFileText()
          Reads the current configuration as a file formatted as text
 FogBugzConnectionBean getConnectionBean()
           
 java.lang.String getFieldMapping(java.lang.String fieldName)
           
 java.util.List getFogBugzFieldNames()
           
 java.util.List getFogBugzLinkNames()
           
 java.util.List getFogBugzProjectNames()
           
 java.lang.String getLinkMapping(java.lang.String linkName)
           
 org.apache.commons.configuration.PropertiesConfiguration getNewConfigurationFile()
           
 java.util.Collection getProjectCategories()
           
 java.lang.String getProjectCategory(java.lang.String projectName)
           
 java.lang.String getProjectCategoryFieldName(java.lang.String projectName)
           
 java.lang.String getProjectKey(java.lang.String projectName)
           
 java.lang.String getUsernameForFullName(java.lang.String sFullName)
           
 ValueMappingHelper getValueMappingHelper()
           
 boolean isSelectedFieldMapping(java.lang.String fieldName, java.lang.String mappedField)
           
 void populateFieldMappings(java.util.Map actionParams)
           
 void populateLinkMappings(java.util.Map actionParams)
           
 void populateProjectKeyMappings(java.util.Map actionParams)
           
 void saveToFile(java.io.File fileToSaveTo)
           
 void validateRequiredStatuses(ErrorCollection errors)
           
 
Methods inherited from class com.atlassian.jira.imports.importer.impl.AbstractConfigBean
constantInGvList, getI18n
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionBean

protected FogBugzConnectionBean connectionBean

configFileLocation

protected java.lang.String configFileLocation
Constructor Detail

FogBugzConfigBean

public FogBugzConfigBean(FogBugzConnectionBean connectionBean,
                         org.apache.commons.configuration.PropertiesConfiguration configFile)
Method Detail

validateRequiredStatuses

public void validateRequiredStatuses(ErrorCollection errors)

getFogBugzProjectNames

public java.util.List getFogBugzProjectNames()

getProjectKey

public java.lang.String getProjectKey(java.lang.String projectName)

populateProjectKeyMappings

public void populateProjectKeyMappings(java.util.Map actionParams)

getProjectCategoryFieldName

public java.lang.String getProjectCategoryFieldName(java.lang.String projectName)

getProjectCategories

public java.util.Collection getProjectCategories()

getProjectCategory

public java.lang.String getProjectCategory(java.lang.String projectName)

getFogBugzFieldNames

public java.util.List getFogBugzFieldNames()

getAvailableFieldMappings

public java.util.Map getAvailableFieldMappings()

getFieldMapping

public java.lang.String getFieldMapping(java.lang.String fieldName)

isSelectedFieldMapping

public boolean isSelectedFieldMapping(java.lang.String fieldName,
                                      java.lang.String mappedField)

populateFieldMappings

public void populateFieldMappings(java.util.Map actionParams)

getValueMappingHelper

public ValueMappingHelper getValueMappingHelper()

getUsernameForFullName

public java.lang.String getUsernameForFullName(java.lang.String sFullName)

getFogBugzLinkNames

public java.util.List getFogBugzLinkNames()

getAvailableLinkMappings

public java.util.Collection getAvailableLinkMappings()

getLinkMapping

public java.lang.String getLinkMapping(java.lang.String linkName)

populateLinkMappings

public void populateLinkMappings(java.util.Map actionParams)

saveToFile

public void saveToFile(java.io.File fileToSaveTo)
                throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException

getNewConfigurationFile

public org.apache.commons.configuration.PropertiesConfiguration getNewConfigurationFile()

getConfigFileText

public java.lang.String getConfigFileText()
                                   throws java.io.IOException,
                                          org.apache.commons.configuration.ConfigurationException
Reads the current configuration as a file formatted as text

Returns:
content of the temp config file
Throws:
java.io.IOException - if creation of temp file fails
org.apache.commons.configuration.ConfigurationException - if writing to the temp file fails

getConfigFileLocation

public java.lang.String getConfigFileLocation()

getConnectionBean

public FogBugzConnectionBean getConnectionBean()


Copyright © 2002-2010 Atlassian. All Rights Reserved.