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
ConstructorDescriptionArtifactSubscriptionImpl
(ArtifactDefinition artifactDefinition, Job consumerJob, String destinationDirectory) -
Method Summary
Modifier and TypeMethodDescription@NotNull ArtifactDefinition
Get definition of artifact we're subscribed to.@NotNull Job
Get job which consumes the artifactGet destination path.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 Details
-
ArtifactSubscriptionImpl
public ArtifactSubscriptionImpl() -
ArtifactSubscriptionImpl
public ArtifactSubscriptionImpl(ArtifactDefinition artifactDefinition, Job consumerJob, String destinationDirectory)
-
-
Method Details
-
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
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
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
- Specified by:
getName
in interfaceImmutableArtifactSubscription
- Specified by:
getName
in interfaceNameProvider
-
setArtifactDefinition
- Specified by:
setArtifactDefinition
in interfaceArtifactSubscription
-
setConsumerJob
- Specified by:
setConsumerJob
in interfaceArtifactSubscription
-
setDestinationDirectory
- Specified by:
setDestinationDirectory
in interfaceArtifactSubscription
-