com.atlassian.greenhopper.service.configuration
Interface GreenHopperSettingsService

All Superinterfaces:
GreenHopperAnalyticsSettingsSupplier
All Known Implementing Classes:
GreenHopperSettingsServiceImpl

public interface GreenHopperSettingsService
extends GreenHopperAnalyticsSettingsSupplier

This service provides general system wide GreenHopper configuration. Currently this passes through to GHConfiguration


Method Summary
 void disableBetaFeature(BetaFeatures feature)
          Disable the specified beta feature.
 void enableBetaFeature(BetaFeatures feature)
          Enable the specified beta feature.
 java.util.List<BetaFeatures> getAllBetaFeatures()
           
 boolean getPreviousAnalyticsPreference()
          Retrieve the previously set Analytics preference.
 int getQueryResultLimit()
          Get the query result limit for this instance.
 int getWorklogCacheSize()
          Wrapper for GHConfiguration.getWorklogHistoryCacheSize()
 boolean isBetaFeatureEnabled(BetaFeatures feature)
          Is the specified beta feature enabled?
 boolean isDarkFeatureEnabled(DarkFeatures feature)
          Is specified dark feature enabled
 boolean isHostedEnvironment()
          Is this JIRA instance hosted?
 boolean isQueryResultLimited()
          Is a query result limit set?
 void setPreviousAnalyticsPreference(boolean wasEnabled)
          Store a value to reflect the previously set Analytics preference.
 
Methods inherited from interface com.atlassian.greenhopper.analytics.GreenHopperAnalyticsSettingsSupplier
isAnalyticsEnabled
 

Method Detail

getQueryResultLimit

int getQueryResultLimit()
Get the query result limit for this instance.

Returns:
the set resource limit or Integer.MAX_VALUE if not set. The returned int is guaranteed to be positive (limit > 0)

isQueryResultLimited

boolean isQueryResultLimited()
Is a query result limit set?


isHostedEnvironment

boolean isHostedEnvironment()
Is this JIRA instance hosted?


getAllBetaFeatures

java.util.List<BetaFeatures> getAllBetaFeatures()
Returns:
all the GH beta features applicable to this instance.

isBetaFeatureEnabled

boolean isBetaFeatureEnabled(BetaFeatures feature)
Is the specified beta feature enabled?

Parameters:
feature - the feature
Returns:
true if enabled; false otherwise

enableBetaFeature

void enableBetaFeature(BetaFeatures feature)
Enable the specified beta feature.

Parameters:
feature - the feature to enable

disableBetaFeature

void disableBetaFeature(BetaFeatures feature)
Disable the specified beta feature.

Parameters:
feature - the feature to disable

setPreviousAnalyticsPreference

void setPreviousAnalyticsPreference(boolean wasEnabled)
Store a value to reflect the previously set Analytics preference.

Parameters:
wasEnabled - whether the previous value was true or false.

getPreviousAnalyticsPreference

boolean getPreviousAnalyticsPreference()
Retrieve the previously set Analytics preference. This was reset for legal reasons in GH 6.3 in order to show users the new opt in message.

Returns:

isDarkFeatureEnabled

boolean isDarkFeatureEnabled(DarkFeatures feature)
Is specified dark feature enabled

Parameters:
feature - the feature
Returns:
true if enabled; false otherwise

getWorklogCacheSize

int getWorklogCacheSize()
Wrapper for GHConfiguration.getWorklogHistoryCacheSize()

Returns:
the size


Copyright © 2007-2014 Atlassian. All Rights Reserved.