com.atlassian.jira.config.properties
Class ApplicationPropertiesStore

java.lang.Object
  extended by com.atlassian.jira.config.properties.ApplicationPropertiesStore

public class ApplicationPropertiesStore
extends Object

This class is responsible for loading jira's configuration properties.

Since:
v4.4

Field Summary
static String JIRA_CONFIG_PROPERTIES
           
 
Constructor Summary
ApplicationPropertiesStore(PropertiesManager propertiesManager, JiraHome jiraHome)
           
 
Method Summary
 boolean existsInDb(String key)
           
 ApplicationProperty getApplicationPropertyFromKey(String key)
           
 Map<String,String> getDefaultsWithOverlays()
           
 List<ApplicationProperty> getEditableApplicationProperties()
           
 Collection<String> getKeysStoredInDb()
           
 Boolean getOption(String key)
           
 String getOverlayedString(String key)
           
 Map<String,Object> getPropertiesAsMap()
           
 String getString(String key)
           
 String getStringFromDb(String key)
           
 Collection<String> getStringsWithPrefixFromDb(String prefix)
           
 String getTextFromDb(String key)
           
 void refresh()
           
 void refreshDbProperties()
           
 ApplicationProperty setApplicationProperty(String key, String value)
           
 void setOption(String key, Boolean value)
           
 void setString(String key, String value)
           
 void setText(String key, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JIRA_CONFIG_PROPERTIES

public static final String JIRA_CONFIG_PROPERTIES
See Also:
Constant Field Values
Constructor Detail

ApplicationPropertiesStore

public ApplicationPropertiesStore(PropertiesManager propertiesManager,
                                  JiraHome jiraHome)
Method Detail

getEditableApplicationProperties

public List<ApplicationProperty> getEditableApplicationProperties()

getOption

public Boolean getOption(String key)

getApplicationPropertyFromKey

public ApplicationProperty getApplicationPropertyFromKey(String key)

setApplicationProperty

public ApplicationProperty setApplicationProperty(String key,
                                                  String value)

setString

public void setString(String key,
                      String value)

setOption

public void setOption(String key,
                      Boolean value)

getTextFromDb

public String getTextFromDb(String key)

setText

public void setText(String key,
                    String value)

getStringFromDb

public String getStringFromDb(String key)

existsInDb

public boolean existsInDb(String key)

getKeysStoredInDb

public Collection<String> getKeysStoredInDb()

getPropertiesAsMap

public Map<String,Object> getPropertiesAsMap()

refreshDbProperties

public void refreshDbProperties()

refresh

public void refresh()

getDefaultsWithOverlays

public Map<String,String> getDefaultsWithOverlays()

getStringsWithPrefixFromDb

public Collection<String> getStringsWithPrefixFromDb(String prefix)

getString

public String getString(String key)

getOverlayedString

public String getOverlayedString(String key)


Copyright © 2002-2012 Atlassian. All Rights Reserved.