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
FieldsModifier and TypeFieldDescriptionstatic final Stringfield aggregationResources of classCollectionofILocalDeploymentDefinitionsstatic final Stringfield artifactId of classStringstatic final Stringfield baseLocation of classILocationstatic final Stringfield buildDependencies of classCollectionofIBuildArtifactSelectorsstatic final Stringfield buildDescriptors of classCollectionofIBuildDescriptorstatic final Stringfield calculationDescriptors of classCollectionofICalculationDescriptorstatic final Stringfield containedArtifacts of classCollectionofSubterraURIsstatic final Stringfield description of classStringstatic final Stringfield groupEntity of classSubterraURIstatic final Stringfield groupId of classStringstatic final Stringfield label of classStringstatic final Stringprototype namestatic final Stringfield repositoryTag of classStringstatic final Stringfield resources of classCollectionofILocalDeploymentDefinitionsstatic final Stringfield type of classStringstatic final Stringfield typeSpecificData of classCollectionofIStructuresstatic final Stringstatic 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
adaptMethods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChangedMethods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomFieldMethods 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 classCollectionofSubterraURIs- See Also:
-
GROUP_ENTITY
field groupEntity of classSubterraURI- See Also:
-
BUILD_DESCRIPTORS
field buildDescriptors of classCollectionofIBuildDescriptor- See Also:
-
CALCULATION_DESCRIPTORS
field calculationDescriptors of classCollectionofICalculationDescriptor- See Also:
-
BASE_LOCATION
field baseLocation of classILocation- See Also:
-
RESOURCES
field resources of classCollectionofILocalDeploymentDefinitions- See Also:
-
AGGREGATION_RESOURCES
field aggregationResources of classCollectionofILocalDeploymentDefinitions- See Also:
-
BUILD_DEPENDENCIES
field buildDependencies of classCollectionofIBuildArtifactSelectors- See Also:
-
TYPE_SPECIFIC_DATA
field typeSpecificData of classCollectionofIStructures- 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:
ListofIBuildArtifacts (notnull)
-
getGroupEntity
IGroupEntity getGroupEntity()AssociatedIGroupEntity.IProjectGrouphas only one artifact,IProjectmay have more.- Returns:
- repository object (not
null)
-
getBuildDescriptors
Collection getBuildDescriptors()Build descriptors applicable to this artifact.- Returns:
CollectionofIBuildDescriptors (notnull)
-
getCalculationDescriptors
Collection getCalculationDescriptors()Calculation descriptors applicable to this artifact.- Returns:
CollectionofICalculationDescriptors (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 isnullIllegalArgumentException- 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
nullif and only if associatedgetGroupEntity()is not located in repository.- Returns:
- base location or
nullin special case
-
getResources
List getResources()Resources which comprise this artifact.Returned locations are relative to
getBaseLocation().Is empty for project groups.
- Returns:
ListofILocalDeploymentDefinitions (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:
ListofILocalDeploymentDefinitions (notnull)
-
getBuildDependencies
List getBuildDependencies()Build dependencies (only direct, not transitional).All selector's fields are treated literally (no pattern matching).
- Returns:
ListofIBuildArtifactSelectors (notnull)
-
getTypeSpecificValue
Type specific data.- Parameters:
key- data key- Returns:
- value or
nullif key is not known - Throws:
IllegalArgumentException- if key isnull
-