Package com.polarion.alm.builder.spi
Class BuildArtifactJobParameter
java.lang.Object
com.polarion.platform.jobs.spi.AbstractJobParameter
com.polarion.alm.builder.spi.BuildArtifactJobParameter
- All Implemented Interfaces:
IJobDescriptor.IJobParameter
IJobDescriptor.IJobParameter
implementation which holds values of type IBuildArtifact
.
Value passed to convertValue(Object)
can be one of these:
null
IBuildArtifact
IBuildArtifactSelector
- GROUP_ID:ARTIFACT_ID[:REPOSITORY_TAG] (e.g. "test:test-maven2:tags/tag1")
If selector is passed (either as a class or in textual form), attempt to find this artifact is done.
If more than one artifact is found and IJobUnit
is known then its IJobUnit.getScope()
is used for narrowing the search results. Conversion succeeds if and only if exactly one artifact is
found.
Parameter type is IJobDescriptor.IJobParameterPrimitiveType
with type class IBuildArtifact
.
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBuildArtifactJobParameter
(IJobDescriptor.IJobParameterGroup group, String name, String label, IBuilderService builder, IJobUnit unit) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionconvertValue
(Object value) Helper method for conversion from arbitraryObject
to desired class.Methods inherited from class com.polarion.platform.jobs.spi.AbstractJobParameter
getDefaultValue, getDescription, getGroup, getLabel, getName, getType, isActive, isRequired, setActive, setDefaultValue, setDescription, setLabel, setRequired
-
Constructor Details
-
BuildArtifactJobParameter
public BuildArtifactJobParameter(IJobDescriptor.IJobParameterGroup group, String name, String label, IBuilderService builder, IJobUnit unit) Constructor.- Parameters:
group
- job parameter groupname
- job namelabel
- job labelbuilder
- builder serviceunit
- job unit (can benull
)- Throws:
IllegalArgumentException
- if group isnull
IllegalArgumentException
- if name isnull
IllegalArgumentException
- if label isnull
IllegalArgumentException
- if builder isnull
-
-
Method Details
-
convertValue
Description copied from interface:IJobDescriptor.IJobParameter
Helper method for conversion from arbitraryObject
to desired class.It is not required that
null
is converted tonull
or that non-null
is not converted tonull
.- Parameters:
value
- arbitrary value (may benull
)- Returns:
- converted value or
null
-