Class ImmutableArtifactDefinitionImpl
java.lang.Object
com.atlassian.bamboo.plan.artifact.ImmutableArtifactDefinitionImpl
- All Implemented Interfaces:
BambooIdProvider
,ImmutableArtifactDefinition
,ImmutableArtifactDefinitionBase
,NameProvider
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
@NotNull String
Get artifact copy patternGet artifact copy patternsGet artifact exclusion patternslong
getId()
Exposes the id of theArtifactDefinition
Get artifact location@NotNull String
getName()
Get artifact name@NotNull ImmutableJob
Get Buildable that is a producer of artifact@NotNull com.google.common.collect.ImmutableList<ImmutableArtifactSubscription>
Get List of ArtifactSubscriptions on this ArtifactDefinition.boolean
boolean
boolean
boolean
Get value of "SharedArtifact" flag.
-
Method Details
-
getId
public long getId()Description copied from interface:ImmutableArtifactDefinitionBase
Exposes the id of theArtifactDefinition
- Specified by:
getId
in interfaceBambooIdProvider
- Specified by:
getId
in interfaceImmutableArtifactDefinitionBase
- Returns:
- -1 if the id is unknown
-
getName
Description copied from interface:ImmutableArtifactDefinitionBase
Get artifact name- Specified by:
getName
in interfaceImmutableArtifactDefinitionBase
- Specified by:
getName
in interfaceNameProvider
- Returns:
- Artifact name
-
getLocation
Description copied from interface:ImmutableArtifactDefinitionBase
Get artifact location- Specified by:
getLocation
in interfaceImmutableArtifactDefinitionBase
- Returns:
- artifact's contents path or null if none specified (then build root is supposed to be used)
-
getCopyPattern
Description copied from interface:ImmutableArtifactDefinitionBase
Get artifact copy pattern- Specified by:
getCopyPattern
in interfaceImmutableArtifactDefinitionBase
- Returns:
- Ant-compatible copy pattern
-
getCopyPatterns
Description copied from interface:ImmutableArtifactDefinitionBase
Get artifact copy patterns- Specified by:
getCopyPatterns
in interfaceImmutableArtifactDefinitionBase
- Returns:
- Ant-compatible copy patterns
-
getExclusionPatterns
Description copied from interface:ImmutableArtifactDefinitionBase
Get artifact exclusion patterns- Specified by:
getExclusionPatterns
in interfaceImmutableArtifactDefinitionBase
- Returns:
- Ant-compatible exclusion patterns
-
isRequired
public boolean isRequired()- Specified by:
isRequired
in interfaceImmutableArtifactDefinitionBase
- Returns:
- true if artifact is required for successful build completion
-
isHttpCompressionOn
public boolean isHttpCompressionOn()- Specified by:
isHttpCompressionOn
in interfaceImmutableArtifactDefinitionBase
- Returns:
- true if use of compression enabled to transfer artifact between server and agent (both directions)
-
getProducerJob
Description copied from interface:ImmutableArtifactDefinition
Get Buildable that is a producer of artifact- Specified by:
getProducerJob
in interfaceImmutableArtifactDefinition
- Returns:
Job
object
-
getSubscriptions
@NotNull public @NotNull com.google.common.collect.ImmutableList<ImmutableArtifactSubscription> getSubscriptions()Description copied from interface:ImmutableArtifactDefinition
Get List of ArtifactSubscriptions on this ArtifactDefinition.- Specified by:
getSubscriptions
in interfaceImmutableArtifactDefinition
- Returns:
- List of
ArtifactSubscription
objects
-
hasSubscriptions
public boolean hasSubscriptions()- Specified by:
hasSubscriptions
in interfaceImmutableArtifactDefinition
- Returns:
- true if this artifact has any subscriptions
-
builder
-