Class BuildPromotionParameterCollection
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.AbstractParametersProvider
-
- jetbrains.buildServer.serverSide.impl.BuildPromotionParameterCollection
-
- All Implemented Interfaces:
InternalParameters
,ReadOnlyUserParameters
public abstract class BuildPromotionParameterCollection extends AbstractParametersProvider
Created by Eugene Petrenko (eugene.petrenko@gmail.com) Date: 03.02.12 14:36
-
-
Field Summary
Fields Modifier and Type Field Description static int
PARAM_NAME_LIMIT
static int
PARAM_VALUE_LIMIT
-
Fields inherited from class jetbrains.buildServer.serverSide.impl.AbstractParametersProvider
ACCEPT_ALL_FILTER, BUILD_PARAM_FILTER, CONFIG_PARAM_FILTER
-
-
Constructor Summary
Constructors Constructor Description BuildPromotionParameterCollection(long promotionId, BuildPromotionContext context, ReadOnlyUserParameters parentHolder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract GenericQuery
getDeleteQuery()
protected abstract GenericQuery<Map<String,String>>
getFetchQuery()
protected abstract GenericQuery
getInsertQuery()
Map<String,String>
getOwnParameters()
Collection<Parameter>
getOwnParametersCollection()
Parameter
getParameter(String paramName)
Collection<Parameter>
getParametersCollection()
Returns build and configuration parameters in single collection.String
getParameterValue(String paramName)
void
loadParametersIfNeeded()
void
persistParameters()
void
resetLoadedParameters()
void
setParameters(Collection<Parameter> parameters)
void
setParameters(Map<String,String> parameters)
-
Methods inherited from class jetbrains.buildServer.serverSide.impl.AbstractParametersProvider
convertParameters, getBuildParameters, getConfigParameters, getParameters
-
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
-
-
-
-
Field Detail
-
PARAM_NAME_LIMIT
public static final int PARAM_NAME_LIMIT
- See Also:
- Constant Field Values
-
PARAM_VALUE_LIMIT
public static final int PARAM_VALUE_LIMIT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BuildPromotionParameterCollection
public BuildPromotionParameterCollection(long promotionId, @NotNull BuildPromotionContext context, @NotNull ReadOnlyUserParameters parentHolder)
-
-
Method Detail
-
getFetchQuery
@NotNull protected abstract GenericQuery<Map<String,String>> getFetchQuery()
-
getInsertQuery
@NotNull protected abstract GenericQuery getInsertQuery()
-
getDeleteQuery
@NotNull protected abstract GenericQuery getDeleteQuery()
-
getOwnParametersCollection
@NotNull public Collection<Parameter> getOwnParametersCollection()
-
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
-
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
-
setParameters
public void setParameters(@NotNull Collection<Parameter> parameters)
-
loadParametersIfNeeded
public void loadParametersIfNeeded()
-
resetLoadedParameters
public void resetLoadedParameters()
-
persistParameters
public void persistParameters()
-
-