@Service public class OperationsImpl extends Object implements Operations
Constructor and Description |
---|
OperationsImpl() |
Modifier and Type | Method and Description |
---|---|
Boolean |
addProperty(String name)
Add property with name and value on all configurations.
|
DynConfigurationList |
export()
Write all stored dynamic configurations into the build tool.
|
DynConfigurationList |
findConfigurations()
Get all stored dynamic configurations.
|
DynConfiguration |
getBaseConfiguration()
Get base dynamic configuration.
|
DynConfiguration |
getBaseProperty(String name)
Get the base dynamic configuration if contains a property name, else
empty.
|
DynConfiguration |
getConfiguration(String name)
Get stored dynamic configuration with a name.
|
boolean |
isProjectAvailable()
Is project available ?
|
DynConfiguration |
saveActiveConfiguration(String name)
Store new dynamic configuration with base properties.
|
DynConfiguration |
setActiveConfiguration(String name)
Link files with the properties of the dynamic configuration.
|
DynProperty |
updateProperty(String configuration,
String property)
Set a configuration property with no value.
|
DynProperty |
updateProperty(String configuration,
String property,
String value)
Set a value on a configuration property.
|
public boolean isProjectAvailable()
Operations
isProjectAvailable
in interface Operations
public DynConfiguration saveActiveConfiguration(String name)
If configuration already exists, previous configuration will be deleted.
saveActiveConfiguration
in interface Operations
name
- Name for the dynamic configurationpublic DynConfiguration setActiveConfiguration(String name)
setActiveConfiguration
in interface Operations
name
- Dynamic configuration name to activatepublic DynConfigurationList findConfigurations()
findConfigurations
in interface Operations
public DynConfiguration getConfiguration(String name)
If dynamic configuration with name not exists, null will be returned.
getConfiguration
in interface Operations
name
- Name of the dynamic configurationpublic DynConfiguration getBaseConfiguration()
getBaseConfiguration
in interface Operations
public DynConfiguration getBaseProperty(String name)
getBaseProperty
in interface Operations
name
- Property namepublic DynProperty updateProperty(String configuration, String property)
updateProperty
in interface Operations
configuration
- Configuration name to updateproperty
- Property name to updatepublic DynProperty updateProperty(String configuration, String property, String value)
updateProperty
in interface Operations
configuration
- Configuration name to updateproperty
- Property name to updatevalue
- Value to setpublic Boolean addProperty(String name)
addProperty
in interface Operations
name
- Property namepublic DynConfigurationList export()
If no dynamic configuration active returns null. If no dynamic configurations returns empty List.
export
in interface Operations
Copyright © 2010–2015 General Directorate for Information Technologies (DGTI) of the Regional Ministry of Finance and Public Administration of the Generalitat Valenciana.. All rights reserved.