com.atlassian.jira.functest.framework.admin
Class GeneralConfigurationImpl

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.admin.GeneralConfigurationImpl
All Implemented Interfaces:
GeneralConfiguration, com.atlassian.jira.testkit.client.log.FuncTestLogger

public class GeneralConfigurationImpl
extends AbstractFuncTestUtil
implements GeneralConfiguration

Since:
v3.13

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.admin.GeneralConfiguration
GeneralConfiguration.CommentVisibility, GeneralConfiguration.EmailVisibility
 
Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Constructor Summary
GeneralConfigurationImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
           
 
Method Summary
 void disableVoting()
           
 void disableWatching()
          Disable watching of issues
 void enableRemoteApi()
           
 void enableVoting()
           
 void enableWatching()
          Enable watching of issues
 void fixBaseUrl()
          Set the baseUrl to that of the functional base URL.
protected  Navigation getNavigation()
           
 void setAllowUnassignedIssues(boolean enable)
           
 void setBaseUrl(String baseUrl)
          Set the baseUrl of this JIRA instance to the String provided.
 void setCommentVisibility(GeneralConfiguration.CommentVisibility commentVisibility)
           
 void setDefaultUserTimeZone(String timeZoneID)
          Sets the default user time zone for this JIRA instance.
 void setExternalUserManagement(boolean enable)
           
 void setJiraLocale(String locale)
          Sets the default locale of this JIRA instance.
 void setJiraLocaleByValue(String localeValue)
          Sets the default locale of this JIRA instance.
 void setJiraLocaleToSystemDefault()
          Sets the default locale to the system locale
 void setJqlAutocomplete(boolean enable)
           
 void setUserEmailVisibility(GeneralConfiguration.EmailVisibility emailVisibility)
          Set the visibility level of user emails.
 void turnOnGZipCompression()
          Turn on compression of web pages that JIRA sends to the browser.
 GeneralConfiguration useGravatars(boolean useGravatars)
          Enables or disables the use of Gravatars.
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralConfigurationImpl

public GeneralConfigurationImpl(net.sourceforge.jwebunit.WebTester tester,
                                JIRAEnvironmentData environmentData)
Method Detail

setAllowUnassignedIssues

public void setAllowUnassignedIssues(boolean enable)
Specified by:
setAllowUnassignedIssues in interface GeneralConfiguration

setExternalUserManagement

public void setExternalUserManagement(boolean enable)
Specified by:
setExternalUserManagement in interface GeneralConfiguration

enableVoting

public void enableVoting()
Specified by:
enableVoting in interface GeneralConfiguration

enableRemoteApi

public void enableRemoteApi()
Specified by:
enableRemoteApi in interface GeneralConfiguration

setCommentVisibility

public void setCommentVisibility(GeneralConfiguration.CommentVisibility commentVisibility)
Specified by:
setCommentVisibility in interface GeneralConfiguration

setUserEmailVisibility

public void setUserEmailVisibility(GeneralConfiguration.EmailVisibility emailVisibility)
Description copied from interface: GeneralConfiguration
Set the visibility level of user emails.

Specified by:
setUserEmailVisibility in interface GeneralConfiguration
Parameters:
emailVisibility - one of the predefined visibility levels
See Also:
GeneralConfiguration.EmailVisibility

setJqlAutocomplete

public void setJqlAutocomplete(boolean enable)
Specified by:
setJqlAutocomplete in interface GeneralConfiguration
Parameters:
enable - enable or disable JQL Auto-complete globally

disableVoting

public void disableVoting()
Specified by:
disableVoting in interface GeneralConfiguration

setBaseUrl

public void setBaseUrl(String baseUrl)
Description copied from interface: GeneralConfiguration
Set the baseUrl of this JIRA instance to the String provided.

Specified by:
setBaseUrl in interface GeneralConfiguration
Parameters:
baseUrl - The baseurl to use for this instance

fixBaseUrl

public void fixBaseUrl()
Description copied from interface: GeneralConfiguration
Set the baseUrl to that of the functional base URL.

Specified by:
fixBaseUrl in interface GeneralConfiguration

setJiraLocale

public void setJiraLocale(String locale)
Description copied from interface: GeneralConfiguration
Sets the default locale of this JIRA instance.

Specified by:
setJiraLocale in interface GeneralConfiguration
Parameters:
locale - The locale to use by default e.g. "German (Germany)", "English (UK)"

setJiraLocaleByValue

public void setJiraLocaleByValue(String localeValue)
Description copied from interface: GeneralConfiguration
Sets the default locale of this JIRA instance. Note that the system locale will have a value of -1. You can use GeneralConfiguration.setJiraLocaleToSystemDefault() instead for this.

Specified by:
setJiraLocaleByValue in interface GeneralConfiguration
Parameters:
localeValue - The value of the locale to use e.g. "en_AU", "en_UK".

setJiraLocaleToSystemDefault

public void setJiraLocaleToSystemDefault()
Description copied from interface: GeneralConfiguration
Sets the default locale to the system locale

Specified by:
setJiraLocaleToSystemDefault in interface GeneralConfiguration

disableWatching

public void disableWatching()
Description copied from interface: GeneralConfiguration
Disable watching of issues

Specified by:
disableWatching in interface GeneralConfiguration

enableWatching

public void enableWatching()
Description copied from interface: GeneralConfiguration
Enable watching of issues

Specified by:
enableWatching in interface GeneralConfiguration

turnOnGZipCompression

public void turnOnGZipCompression()
Description copied from interface: GeneralConfiguration
Turn on compression of web pages that JIRA sends to the browser.

Specified by:
turnOnGZipCompression in interface GeneralConfiguration

setDefaultUserTimeZone

public void setDefaultUserTimeZone(String timeZoneID)
Description copied from interface: GeneralConfiguration
Sets the default user time zone for this JIRA instance. A null time zone means that JIRA will use the default JVM time zone.

Specified by:
setDefaultUserTimeZone in interface GeneralConfiguration

useGravatars

public GeneralConfiguration useGravatars(boolean useGravatars)
Description copied from interface: GeneralConfiguration
Enables or disables the use of Gravatars.

Specified by:
useGravatars in interface GeneralConfiguration
Parameters:
useGravatars - a boolean indicating whether to turn on Gravatars
Returns:
this

getNavigation

protected Navigation getNavigation()


Copyright © 2002-2013 Atlassian. All Rights Reserved.