|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConfigurationService
Manages the applications configuration properties.
| Field Summary | |
|---|---|
static String |
PNAME_SYSTEM_BASE_URL
|
| Method Summary | |
|---|---|
boolean |
configurationItemExists(Configuration configuration)
|
boolean |
configurationItemUpToDate(Configuration configuration)
|
Configuration |
createConfigurationItem(Configuration configuration)
This method will create a new Configuration for persistance in the database. |
CustomField |
createCustomField(CustomField customField)
This method will create a new CustomField for persistance in the database. |
CustomFieldValue |
createCustomFieldValue(CustomFieldValue customFieldValue)
This method will create a new CustomFieldValue for persistance in the database. |
ProjectScript |
createProjectScript(ProjectScript projectScript)
This method will create a new project script for persistance in the database. |
WorkflowScript |
createWorkflowScript(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)
|
Configuration |
getConfigurationItem(Integer id)
|
List<Configuration> |
getConfigurationItemsByType(int type)
Returns all the configuration items of a particular type. |
List<Configuration> |
getConfigurationItemsByType(int type,
Locale locale)
Returns all the configuration items of a particular type. |
CustomField |
getCustomField(Integer id)
This method will return the requested custom field. |
List<CustomField> |
getCustomFields()
This method will return all the custom fields defined in the system. |
List<CustomField> |
getCustomFields(Locale locale)
Deprecated. use CustomFieldUtilities to retrieve localization to custom fields |
CustomFieldValue |
getCustomFieldValue(Integer id)
This method will return the requested custom field value. |
Map<String,String> |
getDefinedKeys(String locale)
|
List<NameValuePair> |
getDefinedKeysAsArray(String locale)
|
int |
getIntegerProperty(String name,
int defaultValue)
|
List<Language> |
getLanguage(Locale locale)
returns languages for the locale as list of Language-objects |
Language |
getLanguageItemByKey(String key,
Locale locale)
This method will return the translation for a particular key in a locale. |
List<Language> |
getLanguageItemsByKey(String key)
This method will return all the translations for a particular key. |
long |
getLongProperty(String name,
long defaultValue)
|
int |
getNumberAvailableLanguages()
|
int |
getNumberDefinedKeys(String locale)
|
ProjectScript |
getProjectScript(Integer id)
This method will return the requested project script. |
List<ProjectScript> |
getProjectScripts()
This method will return all defined project scripts. |
Properties |
getProperties()
|
String |
getProperty(String name)
|
String |
getProperty(String name,
String defaultValue)
|
String[] |
getSortedKeys()
Returns all of the keys currently defined in the base locale sorted and grouped in a logical manner. |
String |
getSystemBaseURL()
|
SystemConfiguration |
getSystemConfiguration(Locale locale)
This method will return the current configuration of the system. |
WorkflowScript |
getWorkflowScript(Integer id)
This method will return the requested workflow script. |
List<WorkflowScript> |
getWorkflowScripts()
This method will return all defined workflow scripts. |
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. |
void |
removeConfigurationItem(Integer id)
This method will remove the configuration item with the supplied id. |
void |
removeConfigurationItems(Configuration configuration)
This method will remove all configuration items that match the supplied models type and value. |
void |
removeConfigurationItems(int 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(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)
This method will reset any caches in the system of configuration items for the specified configuration item type. |
Configuration |
updateConfigurationItem(Configuration configuration)
This method updates a configuration item in the database. |
List<Configuration> |
updateConfigurationItems(List<Configuration> configurations,
int type)
|
CustomField |
updateCustomField(CustomField customField)
This method updates a custom field in the database. |
CustomFieldValue |
updateCustomFieldValue(CustomFieldValue customFieldValue)
This method updates a custom field value in the database. |
List<CustomFieldValue> |
updateCustomFieldValues(Integer customFieldId,
List<CustomFieldValue> customFieldValues)
This method updates a set of custom field values in the database. |
void |
updateLanguage(Locale locale,
List<Language> languages)
|
void |
updateLanguage(Locale locale,
List<Language> languages,
Configuration config)
|
Language |
updateLanguageItem(Language language)
Updates a translations for a particular key and locale. |
ProjectScript |
updateProjectScript(ProjectScript projectScript)
This method updates a project script in the database. |
WorkflowScript |
updateWorkflowScript(WorkflowScript workflowScript)
This method updates a workflow script in the database. |
| Field Detail |
|---|
static final String PNAME_SYSTEM_BASE_URL
| Method Detail |
|---|
Properties getProperties()
String getProperty(String name)
String getProperty(String name,
String defaultValue)
boolean getBooleanProperty(String name,
boolean defaultValue)
int getIntegerProperty(String name,
int defaultValue)
long getLongProperty(String name,
long defaultValue)
Configuration getConfigurationItem(Integer id)
List<Configuration> getConfigurationItemsByType(int type)
type - the type of configuration items to retrieve
List<Configuration> getConfigurationItemsByType(int type,
Locale locale)
type - the type of configuration items to retrievelocale - the locale to use when setting the configuration items name values
Configuration createConfigurationItem(Configuration configuration)
model - the model to create the bean fromConfiguration updateConfigurationItem(Configuration configuration)
model - a Configuration of the item to update
List<Configuration> updateConfigurationItems(List<Configuration> configurations,
int type)
boolean configurationItemExists(Configuration configuration)
boolean configurationItemUpToDate(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(Configuration configuration)
model - the model to determine the type and value fromvoid resetConfigurationCache()
void resetConfigurationCache(int type)
type - the type of configuration item to reset in any cachesProjectScript getProjectScript(Integer id)
id - the id of the requested script
List<ProjectScript> getProjectScripts()
ProjectScript createProjectScript(ProjectScript projectScript)
model - the model to create the script fromProjectScript updateProjectScript(ProjectScript projectScript)
model - a ProjectScript of the item to update
void removeProjectScript(Integer id)
id - The id of the project scriptWorkflowScript getWorkflowScript(Integer id)
id - the id of the requested script
List<WorkflowScript> getWorkflowScripts()
WorkflowScript createWorkflowScript(WorkflowScript workflowScript)
model - the model to create the script fromWorkflowScript updateWorkflowScript(WorkflowScript workflowScript)
model - a WorkflowScript of the item to update
void removeWorkflowScript(Integer id)
id - The id of the workflow scriptCustomField getCustomField(Integer id)
id - the id of the requested field
List<CustomField> getCustomFields()
List<CustomField> getCustomFields(Locale locale)
CustomFieldUtilities to retrieve localization to custom fields
locale - the locale to use to initialize the labels
CustomField createCustomField(CustomField customField)
model - the model to create the field fromCustomField updateCustomField(CustomField customField)
model - a CustomField of the item to update
boolean removeCustomField(Integer customFieldId)
customFieldValueId - the id of the custom field to removeCustomFieldValue getCustomFieldValue(Integer id)
id - the id of the requested field value
CustomFieldValue createCustomFieldValue(CustomFieldValue customFieldValue)
model - the model to create the field fromCustomFieldValue updateCustomFieldValue(CustomFieldValue customFieldValue)
model - a CustomFieldValue of the item to update
List<CustomFieldValue> updateCustomFieldValues(Integer customFieldId,
List<CustomFieldValue> customFieldValues)
customFieldId - the id of the custom field to updatemodels - an array of CustomFieldValueModels to update
boolean 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 for
Language getLanguageItemByKey(String key,
Locale locale)
key - the key to look uplocale - the localue to translate the key for
List<Language> getLanguageItemsByKey(String key)
key - the key to look up
Language updateLanguageItem(Language language)
model - A Language for the key to update
boolean removeLanguageKey(String key)
key - the key to removevoid removeLanguageItem(Language language)
SystemConfiguration getSystemConfiguration(Locale locale)
String[] getSortedKeys()
Map<String,String> getDefinedKeys(String locale)
List<NameValuePair> getDefinedKeysAsArray(String locale)
int getNumberDefinedKeys(String locale)
Map<String,List<String>> getAvailableLanguages()
int getNumberAvailableLanguages()
List<Language> getLanguage(Locale locale)
locale -
void updateLanguage(Locale locale,
List<Language> languages)
void updateLanguage(Locale locale,
List<Language> languages,
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||