Class ArtifactSubscriptionImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.hibernate.HibernateBambooEntityObject
-
- com.atlassian.bamboo.plan.artifact.ArtifactSubscriptionImpl
-
- All Implemented Interfaces:
BambooIdProvider
,BambooObject
,ArtifactSubscription
,ImmutableArtifactSubscription
,NameProvider
,Cloneable
@Entity public class ArtifactSubscriptionImpl extends HibernateBambooEntityObject implements ArtifactSubscription
-
-
Constructor Summary
Constructors Constructor Description ArtifactSubscriptionImpl()
ArtifactSubscriptionImpl(ArtifactDefinition artifactDefinition, Job consumerJob, String destinationDirectory)
-
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.String
getName()
void
setArtifactDefinition(@NotNull ArtifactDefinition artifactDefinition)
void
setConsumerJob(@NotNull Job consumerJob)
void
setDestinationDirectory(String destinationDirectory)
-
Methods inherited from class com.atlassian.bamboo.hibernate.HibernateBambooEntityObject
getId, setId
-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Constructor Detail
-
ArtifactSubscriptionImpl
public ArtifactSubscriptionImpl()
-
ArtifactSubscriptionImpl
public ArtifactSubscriptionImpl(ArtifactDefinition artifactDefinition, Job consumerJob, String destinationDirectory)
-
-
Method Detail
-
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
-
-