org.itracker.core.resources.ITrackerResourcesProvider
ConfigurationServiceImpl
public interface ConfigurationService
extends org.itracker.core.resources.ITrackerResourcesProvider
Modifier and Type | Field | Description |
---|---|---|
static String |
PNAME_SYSTEM_BASE_URL |
Modifier and Type | Method | Description |
---|---|---|
boolean |
configurationItemExists(org.itracker.model.Configuration configuration) |
|
org.itracker.model.Configuration |
createConfigurationItem(org.itracker.model.Configuration configuration) |
Creates a
Configuration . |
org.itracker.model.CustomField |
createCustomField(org.itracker.model.CustomField customField) |
This method will create a new CustomField for persistance in the database.
|
org.itracker.model.CustomFieldValue |
createCustomFieldValue(org.itracker.model.CustomFieldValue customFieldValue) |
This method will create a new CustomFieldValue for persistance in the database.
|
org.itracker.model.ProjectScript |
createProjectScript(org.itracker.model.ProjectScript projectScript) |
This method will create a new project script for persistance in the database.
|
org.itracker.model.WorkflowScript |
createWorkflowScript(org.itracker.model.WorkflowScript workflowScript) |
This method will create a new workflow script for persistance in the database.
|
Map<String,List<String>> |
getAvailableLanguages() |
|
boolean |
getBooleanProperty(String name,
boolean defaultValue) |
Load a configuration from application properties.
|
org.itracker.model.Configuration |
getConfigurationItem(Integer id) |
Load a configuration from database.
|
List<org.itracker.model.Configuration> |
getConfigurationItemsByType(int type) |
Deprecated.
use getConfigurationItemsByType(Configuration.Type type)
|
List<org.itracker.model.Configuration> |
getConfigurationItemsByType(int type,
Locale locale) |
Deprecated.
use getConfigurationItemsByType(Configuration.Type type, Locale locale)
|
List<org.itracker.model.Configuration> |
getConfigurationItemsByType(org.itracker.model.Configuration.Type type) |
Returns all the configuration items of a particular type.
|
List<org.itracker.model.Configuration> |
getConfigurationItemsByType(org.itracker.model.Configuration.Type type,
Locale locale) |
Returns all the configuration items of a particular type.
|
org.itracker.model.CustomField |
getCustomField(Integer id) |
This method will return the requested custom field.
|
List<org.itracker.model.CustomField> |
getCustomFields() |
This method will return all the custom fields defined in the system.
|
org.itracker.model.CustomFieldValue |
getCustomFieldValue(Integer id) |
This method will return the requested custom field value.
|
Map<String,String> |
getDefinedKeys(String locale) |
|
List<org.itracker.model.NameValuePair> |
getDefinedKeysAsArray(String locale) |
|
int |
getIntegerProperty(String name,
int defaultValue) |
Load a configuration from application properties.
|
String |
getJndiPropertiesOverridePrefix() |
The JNDI context where the configuration.properties values can be overridden.
|
org.itracker.model.Language |
getLanguageItemByKey(String key,
Locale locale) |
This method will return the translation for a particular key in a locale.
|
List<org.itracker.model.Language> |
getLanguageItemsByKey(String key) |
This method will return all the translations for a particular key.
|
Properties |
getLanguageProperties(Locale locale) |
|
String |
getLanguageValue(String key,
Locale locale) |
|
long |
getLongProperty(String name,
long defaultValue) |
Load a configuration from application properties.
|
String |
getMailSessionLookupName() |
The JNDI lookup name for the mail-session.
|
int |
getNumberAvailableLanguages() |
|
int |
getNumberDefinedKeys(String locale) |
|
org.itracker.model.ProjectScript |
getProjectScript(Integer id) |
This method will return the requested project script.
|
List<org.itracker.model.ProjectScript> |
getProjectScripts() |
This method will return all defined project scripts.
|
String |
getProperty(String name) |
Load a configuration from application properties.
|
String |
getProperty(String name,
String defaultValue) |
Load a configuration from application properties.
|
String[] |
getSortedKeys() |
Returns all of the keys currently defined in the base locale sorted and grouped in a
logical manner.
|
String |
getSystemBaseURL() |
|
org.itracker.model.SystemConfiguration |
getSystemConfiguration(Locale locale) |
This method will return the current configuration of the system.
|
org.itracker.model.WorkflowScript |
getWorkflowScript(Integer id) |
This method will return the requested workflow script.
|
List<org.itracker.model.WorkflowScript> |
getWorkflowScripts() |
This method will return all defined workflow scripts.
|
void |
initializeAllLanguages(boolean forceReload) |
This method will attempt to load all of the locales defined in the
ITracker.properties file, and add them to the database if they don't
already exist.
|
void |
initializeConfiguration() |
This method will load the some default system configuration data into the database.
|
boolean |
initializeLocale(String locale,
boolean forceReload) |
This method will load the specified locale.
|
boolean |
isConfigurationItemUpToDate(org.itracker.model.Configuration configuration) |
|
void |
removeConfigurationItem(Integer id) |
This method will remove the configuration item with the supplied id.
|
void |
removeConfigurationItems(int type) |
Deprecated.
use removeConfigurationItems(Configuration.Type type)
|
void |
removeConfigurationItems(org.itracker.model.Configuration configuration) |
This method will remove all configuration items that match the supplied models
type and value.
|
void |
removeConfigurationItems(org.itracker.model.Configuration.Type type) |
This method will remove all configuration items that match the supplied type.
|
boolean |
removeCustomField(Integer customFieldId) |
Removes a single custom field from the database.
|
boolean |
removeCustomFieldValue(Integer customFieldValueId) |
Removes a single custom field value from the database.
|
boolean |
removeCustomFieldValues(Integer customFieldId) |
Removes all custom field values from the database for a single custom field.
|
void |
removeLanguageItem(org.itracker.model.Language language) |
|
boolean |
removeLanguageKey(String key) |
This method will remove all language items with the supplied key regardless
of locale.
|
void |
removeProjectScript(Integer id) |
This method removes a project script in the database.
|
void |
removeWorkflowScript(Integer id) |
This method removes a workflow script in the database.
|
void |
resetConfigurationCache() |
This method will reset any caches in the system of configuration items for all configuration
item types.
|
void |
resetConfigurationCache(int type) |
Deprecated.
use resetConfigurationCache(Configuration.Type type)
|
void |
resetConfigurationCache(org.itracker.model.Configuration.Type type) |
This method will reset any caches in the system of configuration items for the specified
configuration item type.
|
void |
setJndiPropertiesOverridePrefix(String jndiPropertiesOverridePrefix) |
|
void |
setMailSessionLookupName(String mailSessionLookupName) |
|
org.itracker.model.Configuration |
updateConfigurationItem(org.itracker.model.Configuration configuration) |
This method updates a configuration item in the database.
|
List<org.itracker.model.Configuration> |
updateConfigurationItems(List<org.itracker.model.Configuration> configurations,
org.itracker.model.Configuration.Type type) |
Updates the configuration items.
|
org.itracker.model.CustomField |
updateCustomField(org.itracker.model.CustomField customField) |
This method updates a custom field in the database.
|
org.itracker.model.CustomFieldValue |
updateCustomFieldValue(org.itracker.model.CustomFieldValue customFieldValue) |
This method updates a custom field value in the database.
|
List<org.itracker.model.CustomFieldValue> |
updateCustomFieldValues(Integer customFieldId,
List<org.itracker.model.CustomFieldValue> customFieldValues) |
This method updates a set of custom field values in the database.
|
void |
updateLanguage(Locale locale,
List<org.itracker.model.Language> languages) |
|
void |
updateLanguage(Locale locale,
List<org.itracker.model.Language> languages,
org.itracker.model.Configuration config) |
|
org.itracker.model.Language |
updateLanguageItem(org.itracker.model.Language language) |
Updates a translations for a particular key and locale.
|
org.itracker.model.ProjectScript |
updateProjectScript(org.itracker.model.ProjectScript projectScript) |
This method updates a project script in the database.
|
org.itracker.model.WorkflowScript |
updateWorkflowScript(org.itracker.model.WorkflowScript workflowScript) |
This method updates a workflow script in the database.
|
static final String PNAME_SYSTEM_BASE_URL
String getProperty(String name)
name
- configuration keyString getProperty(String name, String defaultValue)
getProperty
in interface org.itracker.core.resources.ITrackerResourcesProvider
name
- configuration keydefaultValue
- returned if the value is nullboolean getBooleanProperty(String name, boolean defaultValue)
name
- configuration keydefaultValue
- returned if the value is nullint getIntegerProperty(String name, int defaultValue)
name
- configuration keydefaultValue
- returned if the value is nulllong getLongProperty(String name, long defaultValue)
name
- configuration keydefaultValue
- returned if the value is nullorg.itracker.model.Configuration getConfigurationItem(Integer id)
id
- the row identifierString getJndiPropertiesOverridePrefix()
void setJndiPropertiesOverridePrefix(String jndiPropertiesOverridePrefix)
String getMailSessionLookupName()
void setMailSessionLookupName(String mailSessionLookupName)
List<org.itracker.model.Configuration> getConfigurationItemsByType(int type)
type
- the type of configuration items to retrieveList<org.itracker.model.Configuration> getConfigurationItemsByType(org.itracker.model.Configuration.Type type)
type
- the type of configuration items to retrieveList<org.itracker.model.Configuration> getConfigurationItemsByType(org.itracker.model.Configuration.Type type, Locale locale)
type
- the type of configuration items to retrievelocale
- the locale to use when setting the configuration items name valuesList<org.itracker.model.Configuration> getConfigurationItemsByType(int type, Locale locale)
type
- the type of configuration items to retrievelocale
- the locale to use when setting the configuration items name valuesorg.itracker.model.Configuration createConfigurationItem(org.itracker.model.Configuration configuration)
Configuration
.configuration
- The Configuration
to storeConfiguration
after savingorg.itracker.model.Configuration updateConfigurationItem(org.itracker.model.Configuration configuration)
Version will be fixed to current initialized version.
configuration
- a Configuration of the item to updateList<org.itracker.model.Configuration> updateConfigurationItems(List<org.itracker.model.Configuration> configurations, org.itracker.model.Configuration.Type type)
Version will be fixed to current initialized version.
configurations
- the ConfigurationModels
to updatetype
- The type of the ConfigurationItem
s to updateboolean configurationItemExists(org.itracker.model.Configuration configuration)
boolean isConfigurationItemUpToDate(org.itracker.model.Configuration configuration)
void removeConfigurationItem(Integer id)
id
- the id of the configuration information to removevoid removeConfigurationItems(int type)
type
- the type of configuration information to removevoid removeConfigurationItems(org.itracker.model.Configuration.Type type)
type
- the type of configuration information to removevoid removeConfigurationItems(org.itracker.model.Configuration configuration)
configuration
- the model to determine the type and value fromvoid resetConfigurationCache()
void resetConfigurationCache(int type)
type
- the type of configuration item to reset in any cachesvoid resetConfigurationCache(org.itracker.model.Configuration.Type type)
type
- the type of configuration item to reset in any cachesorg.itracker.model.ProjectScript getProjectScript(Integer id)
id
- the id of the requested scriptList<org.itracker.model.ProjectScript> getProjectScripts()
org.itracker.model.ProjectScript createProjectScript(org.itracker.model.ProjectScript projectScript)
projectScript
- the model to create the script fromorg.itracker.model.ProjectScript updateProjectScript(org.itracker.model.ProjectScript projectScript)
projectScript
- a ProjectScript of the item to updatevoid removeProjectScript(Integer id)
id
- The id of the project scriptorg.itracker.model.WorkflowScript getWorkflowScript(Integer id)
id
- the id of the requested scriptList<org.itracker.model.WorkflowScript> getWorkflowScripts()
org.itracker.model.WorkflowScript createWorkflowScript(org.itracker.model.WorkflowScript workflowScript)
workflowScript
- the model to create the script fromorg.itracker.model.WorkflowScript updateWorkflowScript(org.itracker.model.WorkflowScript workflowScript)
workflowScript
- a WorkflowScript of the item to updatevoid removeWorkflowScript(Integer id)
id
- The id of the workflow scriptorg.itracker.model.CustomField getCustomField(Integer id)
id
- the id of the requested fieldList<org.itracker.model.CustomField> getCustomFields()
org.itracker.model.CustomField createCustomField(org.itracker.model.CustomField customField)
customField
- the model to create the field fromorg.itracker.model.CustomField updateCustomField(org.itracker.model.CustomField customField)
customField
- a CustomField of the item to updateboolean removeCustomField(Integer customFieldId)
customFieldId
- the id of the custom field to removeorg.itracker.model.CustomFieldValue getCustomFieldValue(Integer id)
id
- the id of the requested field valueorg.itracker.model.CustomFieldValue createCustomFieldValue(org.itracker.model.CustomFieldValue customFieldValue)
customFieldValue
- the model to create the field fromorg.itracker.model.CustomFieldValue updateCustomFieldValue(org.itracker.model.CustomFieldValue customFieldValue)
customFieldValue
- a CustomFieldValue of the item to updateList<org.itracker.model.CustomFieldValue> updateCustomFieldValues(Integer customFieldId, List<org.itracker.model.CustomFieldValue> customFieldValues)
customFieldId
- the id of the custom field to updatecustomFieldValues
- an array of CustomFieldValueModels to updateboolean removeCustomFieldValue(Integer customFieldValueId)
customFieldValueId
- the id of the custom field value to removeboolean removeCustomFieldValues(Integer customFieldId)
customFieldId
- the id of the custom field to remove the values fororg.itracker.model.Language getLanguageItemByKey(String key, Locale locale)
key
- the key to look uplocale
- the localue to translate the key forList<org.itracker.model.Language> getLanguageItemsByKey(String key)
key
- the key to look uporg.itracker.model.Language updateLanguageItem(org.itracker.model.Language language)
language
- A Language for the key to updateboolean removeLanguageKey(String key)
key
- the key to removevoid removeLanguageItem(org.itracker.model.Language language)
org.itracker.model.SystemConfiguration getSystemConfiguration(Locale locale)
String[] getSortedKeys()
int getNumberDefinedKeys(String locale)
int getNumberAvailableLanguages()
Properties getLanguageProperties(Locale locale)
getLanguageProperties
in interface org.itracker.core.resources.ITrackerResourcesProvider
void updateLanguage(Locale locale, List<org.itracker.model.Language> languages, org.itracker.model.Configuration config)
boolean initializeLocale(String locale, boolean forceReload)
locale
- the locale to loadforceReload
- if true, it will reload the languages from the property file even if it is listed
as being up to datevoid initializeConfiguration()
String getSystemBaseURL()
void initializeAllLanguages(boolean forceReload)
forceReload
- if true, it will reload the languages from the property files
even if they are listed as being up to dateCopyright © 2002–2022 itracker. All rights reserved.