Class ImmutableArtifactDefinitionImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.artifact.ImmutableArtifactDefinitionImpl
-
- All Implemented Interfaces:
BambooIdProvider
,ImmutableArtifactDefinition
,ImmutableArtifactDefinitionBase
,NameProvider
public class ImmutableArtifactDefinitionImpl extends Object implements ImmutableArtifactDefinition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableArtifactDefinitionImpl.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableArtifactDefinitionImpl.Builder
builder()
@NotNull String
getCopyPattern()
Get artifact copy pattern@NotNull List<String>
getCopyPatterns()
Get artifact copy patterns@NotNull List<String>
getExclusionPatterns()
Get artifact exclusion patternslong
getId()
Exposes the id of theArtifactDefinition
String
getLocation()
Get artifact location@NotNull String
getName()
Get artifact name@NotNull ImmutableJob
getProducerJob()
Get Buildable that is a producer of artifact@NotNull com.google.common.collect.ImmutableList<ImmutableArtifactSubscription>
getSubscriptions()
Get List of ArtifactSubscriptions on this ArtifactDefinition.boolean
hasSubscriptions()
boolean
isHttpCompressionOn()
boolean
isRequired()
boolean
isSharedArtifact()
Get value of "SharedArtifact" flag.
-
-
-
Method Detail
-
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
@NotNull public @NotNull String getName()
Description copied from interface:ImmutableArtifactDefinitionBase
Get artifact name- Specified by:
getName
in interfaceImmutableArtifactDefinitionBase
- Specified by:
getName
in interfaceNameProvider
- Returns:
- Artifact name
-
getLocation
public String 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
@NotNull public @NotNull String getCopyPattern()
Description copied from interface:ImmutableArtifactDefinitionBase
Get artifact copy pattern- Specified by:
getCopyPattern
in interfaceImmutableArtifactDefinitionBase
- Returns:
- Ant-compatible copy pattern
-
getCopyPatterns
@NotNull public @NotNull List<String> getCopyPatterns()
Description copied from interface:ImmutableArtifactDefinitionBase
Get artifact copy patterns- Specified by:
getCopyPatterns
in interfaceImmutableArtifactDefinitionBase
- Returns:
- Ant-compatible copy patterns
-
getExclusionPatterns
@NotNull public @NotNull List<String> getExclusionPatterns()
Description copied from interface:ImmutableArtifactDefinitionBase
Get artifact exclusion patterns- Specified by:
getExclusionPatterns
in interfaceImmutableArtifactDefinitionBase
- Returns:
- Ant-compatible exclusion patterns
-
isSharedArtifact
public boolean isSharedArtifact()
Description copied from interface:ImmutableArtifactDefinitionBase
Get value of "SharedArtifact" flag.- Specified by:
isSharedArtifact
in interfaceImmutableArtifactDefinitionBase
- Returns:
- true if ArtifactDefinition is marked as "SharedArtifact"
-
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
@NotNull public @NotNull ImmutableJob 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
public static ImmutableArtifactDefinitionImpl.Builder builder()
-
-