Class ArtifactSubscriptionSubstitutionAwareImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.artifact.ArtifactSubscriptionSubstitutionAwareImpl
-
- All Implemented Interfaces:
BambooIdProvider
,BambooObject
,ArtifactSubscription
,ArtifactSubscriptionSubstitutionAware
,ImmutableArtifactSubscription
,NameProvider
public class ArtifactSubscriptionSubstitutionAwareImpl extends Object implements ArtifactSubscriptionSubstitutionAware
-
-
Constructor Summary
Constructors Constructor Description ArtifactSubscriptionSubstitutionAwareImpl(@NotNull ArtifactSubscription artifactSubscription)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull ArtifactDefinition
getArtifactDefinition()
Get definition of artifact we're subscribed to.@NotNull Job
getConsumerJob()
Get job which consumes the artifactString
getDestinationDirectory()
Get destination path.long
getId()
String
getName()
String
getVariableName()
void
setArtifactDefinition(@NotNull ArtifactDefinition artifactDefinition)
void
setConsumerJob(@NotNull Job consumerJob)
void
setDestinationDirectory(String destinationDirectory)
void
setId(long id)
void
setVariableName(String name)
-
-
-
Constructor Detail
-
ArtifactSubscriptionSubstitutionAwareImpl
public ArtifactSubscriptionSubstitutionAwareImpl(@NotNull @NotNull ArtifactSubscription artifactSubscription)
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
-
setId
public void setId(long id)
- Specified by:
setId
in interfaceBambooObject
-
getVariableName
public String getVariableName()
- Specified by:
getVariableName
in interfaceArtifactSubscriptionSubstitutionAware
-
setVariableName
public void setVariableName(String name)
- Specified by:
setVariableName
in interfaceArtifactSubscriptionSubstitutionAware
-
getArtifactDefinition
@NotNull public @NotNull ArtifactDefinition getArtifactDefinition()
Description copied from interface:ArtifactSubscription
Get definition of artifact we're subscribed to.- Specified by:
getArtifactDefinition
in interfaceArtifactSubscription
- Specified by:
getArtifactDefinition
in interfaceImmutableArtifactSubscription
- Returns:
ArtifactDefinition
object
-
getConsumerJob
@NotNull public @NotNull Job getConsumerJob()
Description copied from interface:ArtifactSubscription
Get job which consumes the artifact- Specified by:
getConsumerJob
in interfaceArtifactSubscription
- Specified by:
getConsumerJob
in interfaceImmutableArtifactSubscription
- Returns:
Job
object
-
getDestinationDirectory
public String getDestinationDirectory()
Description copied from interface:ImmutableArtifactSubscription
Get destination path. This represents a location where consumer job expects to find an artifact.- Specified by:
getDestinationDirectory
in interfaceImmutableArtifactSubscription
- Returns:
- Path to the expected location of artifact
-
getName
public String getName()
- Specified by:
getName
in interfaceImmutableArtifactSubscription
- Specified by:
getName
in interfaceNameProvider
-
setArtifactDefinition
public void setArtifactDefinition(@NotNull @NotNull ArtifactDefinition artifactDefinition)
- Specified by:
setArtifactDefinition
in interfaceArtifactSubscription
-
setConsumerJob
public void setConsumerJob(@NotNull @NotNull Job consumerJob)
- Specified by:
setConsumerJob
in interfaceArtifactSubscription
-
setDestinationDirectory
public void setDestinationDirectory(String destinationDirectory)
- Specified by:
setDestinationDirectory
in interfaceArtifactSubscription
-
-