Interface IBuildArtifact
- All Superinterfaces:
IAdaptable
,IChangeListener
,IHasCustomValues
,IHasValues
,IPObject
Smallest building/reporting entity.
Identification (group and artifact ids) is modelled after Maven 2's artifact identification.
Object id is unique within one getGroupEntity()
and consists of
getGroupId()
, getArtifactId()
and getRepositoryTag()
(linked with
colon ":").
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
field aggregationResources of classCollection
ofILocalDeploymentDefinition
sstatic final String
field artifactId of classString
static final String
field baseLocation of classILocation
static final String
field buildDependencies of classCollection
ofIBuildArtifactSelector
sstatic final String
field buildDescriptors of classCollection
ofIBuildDescriptor
static final String
field calculationDescriptors of classCollection
ofICalculationDescriptor
static final String
field containedArtifacts of classCollection
ofSubterraURI
sstatic final String
field description of classString
static final String
field groupEntity of classSubterraURI
static final String
field groupId of classString
static final String
field label of classString
static final String
prototype namestatic final String
field repositoryTag of classString
static final String
field resources of classCollection
ofILocalDeploymentDefinition
sstatic final String
field type of classString
static final String
field typeSpecificData of classCollection
ofIStructure
sstatic final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionResources which are needed for reports aggregation (minimal set of resources).Artifact id.Base location for this build artifact.Build dependencies (only direct, not transitional).getBuildDescriptor
(String name) Build descriptor of given name (if any).Build descriptors applicable to this artifact.Calculation descriptor of given name (if any).Calculation descriptors applicable to this artifact.Calculation descriptor of given name (if any) with all extensions expanded.All contained artifacts.Arbitrary, human-readable description (if any).AssociatedIGroupEntity
.Group id.getLabel()
Human-readable build artifact label (short description).Repository tag (if any).Resources which comprise this artifact.getType()
Artifact type.Type specific data.Methods inherited from interface com.polarion.platform.persistence.model.IAdaptable
adapt
Methods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChanged
Methods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomField
Methods inherited from interface com.polarion.platform.persistence.model.IPObject
can, copyTo, createStructureForKey, forget, getContextId, getDataRevision, getDataSvc, getEnumerationOptionForField, getEnumerationTypeForField, getFieldLabel, getFieldType, getIncompatibleCustomField, getIncompatibleCustomFieldPrototype, getIncompatibleCustomFieldsList, getLastRevision, getLocalId, getObjectId, getPrototype, getRevision, getUri, getValue, isModified, isPersisted, isReadOnly, isResolved, isUnresolvable, resolve, save, setEnumerationValue, setValue, update
-
Field Details
-
PROTO
prototype name- See Also:
-
GROUP_ID
field groupId of classString
- See Also:
-
ARTIFACT_ID
field artifactId of classString
- See Also:
-
REPOSITORY_TAG
field repositoryTag of classString
- See Also:
-
TYPE
field type of classString
- See Also:
-
LABEL
field label of classString
- See Also:
-
DESCRIPTION
field description of classString
- See Also:
-
CONTAINED_ARTIFACTS
field containedArtifacts of classCollection
ofSubterraURI
s- See Also:
-
GROUP_ENTITY
field groupEntity of classSubterraURI
- See Also:
-
BUILD_DESCRIPTORS
field buildDescriptors of classCollection
ofIBuildDescriptor
- See Also:
-
CALCULATION_DESCRIPTORS
field calculationDescriptors of classCollection
ofICalculationDescriptor
- See Also:
-
BASE_LOCATION
field baseLocation of classILocation
- See Also:
-
RESOURCES
field resources of classCollection
ofILocalDeploymentDefinition
s- See Also:
-
AGGREGATION_RESOURCES
field aggregationResources of classCollection
ofILocalDeploymentDefinition
s- See Also:
-
BUILD_DEPENDENCIES
field buildDependencies of classCollection
ofIBuildArtifactSelector
s- See Also:
-
TYPE_SPECIFIC_DATA
field typeSpecificData of classCollection
ofIStructure
s- See Also:
-
TYPE_SPECIFIC_DATA_KEY
- See Also:
-
TYPE_SPECIFIC_DATA_VALUE
- See Also:
-
-
Method Details
-
getGroupId
String getGroupId()Group id.Required, never
null
.- Returns:
- group id (not
null
)
-
getArtifactId
String getArtifactId()Artifact id.Required, never
null
.- Returns:
- artifact id (not
null
)
-
getRepositoryTag
String getRepositoryTag()Repository tag (if any).- Returns:
- repository tag or
null
-
getType
String getType()Artifact type.- Returns:
- artifact type (not
null
)
-
getLabel
String getLabel()Human-readable build artifact label (short description).- Returns:
- label (not
null
)
-
getDescription
String getDescription()Arbitrary, human-readable description (if any).- Returns:
- description or
null
-
getContainedArtifacts
List getContainedArtifacts()All contained artifacts.Project groups contain subgroups and subprojects.
- Returns:
List
ofIBuildArtifact
s (notnull
)
-
getGroupEntity
IGroupEntity getGroupEntity()AssociatedIGroupEntity
.IProjectGroup
has only one artifact,IProject
may have more.- Returns:
- repository object (not
null
)
-
getBuildDescriptors
Collection getBuildDescriptors()Build descriptors applicable to this artifact.- Returns:
Collection
ofIBuildDescriptor
s (notnull
)
-
getCalculationDescriptors
Collection getCalculationDescriptors()Calculation descriptors applicable to this artifact.- Returns:
Collection
ofICalculationDescriptor
s (notnull
)
-
getBuildDescriptor
Build descriptor of given name (if any).- Parameters:
name
- descriptor name- Returns:
- build descriptor or
null
- Throws:
IllegalArgumentException
- if name isnull
-
getCalculationDescriptor
Calculation descriptor of given name (if any).- Parameters:
name
- descriptor name- Returns:
- calculation descriptor or
null
- Throws:
IllegalArgumentException
- if name isnull
-
getCalculationDescriptorWithExtensions
Calculation descriptor of given name (if any) with all extensions expanded.- Parameters:
name
- descriptor name- Returns:
- calculation descriptor or
null
- Throws:
IllegalArgumentException
- if name isnull
IllegalArgumentException
- if extensions are of different type, have cycles or do not exist
-
getBaseLocation
ILocation getBaseLocation()Base location for this build artifact.Normally it is set to location of associated
getGroupEntity()
, but can be set to arbitrary location.Base location should contain all resources for this artifact (no resources should be located in parent folders or in other unrelated folders).
May return
null
if and only if associatedgetGroupEntity()
is not located in repository.- Returns:
- base location or
null
in special case
-
getResources
List getResources()Resources which comprise this artifact.Returned locations are relative to
getBaseLocation()
.Is empty for project groups.
- Returns:
List
ofILocalDeploymentDefinition
s (notnull
)
-
getAggregationResources
List getAggregationResources()Resources which are needed for reports aggregation (minimal set of resources).Returned locations are relative to
getBaseLocation()
.Is empty for project groups.
- Returns:
List
ofILocalDeploymentDefinition
s (notnull
)
-
getBuildDependencies
List getBuildDependencies()Build dependencies (only direct, not transitional).All selector's fields are treated literally (no pattern matching).
- Returns:
List
ofIBuildArtifactSelector
s (notnull
)
-
getTypeSpecificValue
Type specific data.- Parameters:
key
- data key- Returns:
- value or
null
if key is not known - Throws:
IllegalArgumentException
- if key isnull
-