Class BuildPromotionParameters
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.AbstractParametersProvider
-
- jetbrains.buildServer.serverSide.impl.BuildPromotionParameters
-
- All Implemented Interfaces:
InternalParameters
,ReadOnlyUserParameters
public class BuildPromotionParameters extends AbstractParametersProvider implements ReadOnlyUserParameters
Created by Eugene Petrenko (eugene.petrenko@gmail.com) Date: 06.02.12 12:49
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.serverSide.impl.AbstractParametersProvider
ACCEPT_ALL_FILTER, BUILD_PARAM_FILTER, CONFIG_PARAM_FILTER
-
-
Constructor Summary
Constructors Constructor Description BuildPromotionParameters(long promotionId, BuildPromotionContext context, ReadOnlyUserParameters defaultParametersProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getCustomParameters()
Collection<Parameter>
getCustomParametersCollection()
Map<String,String>
getDefaultParameters()
Parameter
getParameter(String paramName)
Map<String,String>
getParameters()
Returns map of build and configuration parameters.Collection<Parameter>
getParametersCollection()
Returns build and configuration parameters in single collection.String
getParameterValue(String paramName)
void
loadParametersIfNeeded()
void
persistParameters()
void
setCustomParameters(Collection<Parameter> parameters)
void
setCustomParameters(Map<String,String> _parameters)
-
Methods inherited from class jetbrains.buildServer.serverSide.impl.AbstractParametersProvider
convertParameters, getBuildParameters, getConfigParameters
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.InternalParameters
getBooleanInternalParameter, getBooleanInternalParameterOrTrue, getInternalParameterValue
-
-
-
-
Constructor Detail
-
BuildPromotionParameters
public BuildPromotionParameters(long promotionId, @NotNull BuildPromotionContext context, @NotNull ReadOnlyUserParameters defaultParametersProvider)
-
-
Method Detail
-
getCustomParametersCollection
@NotNull public Collection<Parameter> getCustomParametersCollection()
-
setCustomParameters
public void setCustomParameters(@NotNull Collection<Parameter> parameters)
-
getParametersCollection
@NotNull public Collection<Parameter> getParametersCollection()
Description copied from interface:ReadOnlyUserParameters
Returns build and configuration parameters in single collection.- Specified by:
getParametersCollection
in interfaceReadOnlyUserParameters
- Specified by:
getParametersCollection
in classAbstractParametersProvider
- Returns:
- see above
-
getParameter
public Parameter getParameter(@NotNull String paramName)
- Specified by:
getParameter
in interfaceReadOnlyUserParameters
-
getParameters
@NotNull public Map<String,String> getParameters()
Description copied from interface:ReadOnlyUserParameters
Returns map of build and configuration parameters.- Specified by:
getParameters
in interfaceReadOnlyUserParameters
- Overrides:
getParameters
in classAbstractParametersProvider
- Returns:
- build and configuration parameters map
-
getParameterValue
@Nullable public String getParameterValue(@NotNull String paramName)
- Specified by:
getParameterValue
in interfaceReadOnlyUserParameters
- Specified by:
getParameterValue
in classAbstractParametersProvider
- Parameters:
paramName
- parameter name- Returns:
- value of the parameter with given name or null if there is no such parameter
-
persistParameters
public void persistParameters()
-
loadParametersIfNeeded
public void loadParametersIfNeeded()
-
-