|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.businessfacades.environment.DefaultParameterManager
public class DefaultParameterManager
This is the default implementation of ParameterManager
.
Constructor Summary | |
---|---|
DefaultParameterManager()
Creates a new instance of DefaultParameterManager |
Method Summary | |
---|---|
java.util.List |
getAllParameters()
Search all the parameter instances. |
Parameter |
getParameter(java.lang.String name)
Get a parameter by its name. |
ParameterValue |
getParameterValue(long id)
Retrieve the ParameterValue having this unique identifier |
java.util.List |
getParameterValues(java.lang.String environmentKey,
java.lang.String targetName)
Retrieve the list of current parameter values for a given environment and a given target. |
void |
removeParameter(Parameter parameter)
Remove a parameter. |
void |
removeParameterValue(ParameterValue value)
Remove a parameter value. |
java.util.List |
renderParameterValues(java.lang.String environmentKey,
java.lang.String targetName)
Retrieve and render the list of current parameter values for a given environment and a given target. |
void |
saveParameter(Parameter parameter)
Save a parameter within datastore. |
void |
saveParameterValue(ParameterValue value)
Save a parameter value wrapper within datastore. |
void |
setParameterDao(ParameterDao dao)
|
void |
setParameterValueDao(ParameterValueDao dao)
|
void |
setPhysicalEnvironmentDao(PhysicalEnvironmentDao dao)
|
void |
setPropertiesExtractor(PropertiesExtractor extractor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultParameterManager()
Method Detail |
---|
public void setParameterDao(ParameterDao dao)
dao
- A Parameter data access objectpublic void setParameterValueDao(ParameterValueDao dao)
dao
- A ParameterValue data access objectpublic void setPhysicalEnvironmentDao(PhysicalEnvironmentDao dao)
dao
- A PysicalEnvironment data access objectpublic void setPropertiesExtractor(PropertiesExtractor extractor)
extractor
- The PropertiesExtractor implementation to usepublic void saveParameter(Parameter parameter)
saveParameter
in interface ParameterManager
parameter
- The parameter to savepublic Parameter getParameter(java.lang.String name)
getParameter
in interface ParameterManager
name
- The parameter name to get
public java.util.List getAllParameters()
getAllParameters
in interface ParameterManager
Parameter
public void removeParameter(Parameter parameter)
removeParameter
in interface ParameterManager
parameter
- The parameter to remove.public void saveParameterValue(ParameterValue value)
saveParameterValue
in interface ParameterManager
value
- The parameter value to savepublic java.util.List getParameterValues(java.lang.String environmentKey, java.lang.String targetName)
getParameterValues
in interface ParameterManager
environmentKey
- The key of the physical environment to retrieve values fortargetName
- The name of the deployment target to retrieve values for
org.figure8.join.businessobjects.environment.ParameterValue
public java.util.List renderParameterValues(java.lang.String environmentKey, java.lang.String targetName)
renderParameterValues
in interface ParameterManager
environmentKey
- The key of the physical environment to retrieve values fortargetName
- The name of the deployment target to retrieve values for
org.figure8.join.businessobjects.environment.ParameterValue
public ParameterValue getParameterValue(long id)
getParameterValue
in interface ParameterManager
id
- The unique identifier of value ot retrieve
public void removeParameterValue(ParameterValue value)
removeParameterValue
in interface ParameterManager
value
- The parameter value to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |