com.atlassian.bamboo.plan.artifact
Class ArtifactSubscriptionImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.plan.artifact.ArtifactSubscriptionImpl
All Implemented Interfaces:
BambooIdProvider, BambooObject, ArtifactSubscription, NameProvider, java.lang.Cloneable

public class ArtifactSubscriptionImpl
extends BambooEntityObject
implements ArtifactSubscription


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
ArtifactSubscriptionImpl()
           
ArtifactSubscriptionImpl(ArtifactDefinition artifactDefinition, Job consumerJob, java.lang.String destinationDirectory)
           
 
Method Summary
 ArtifactDefinition getArtifactDefinition()
          Get definition of artifact we're subscribed to.
 Job getConsumerJob()
          Get job which consumes the artifact
 java.lang.String getDestinationDirectory()
          Get destination path.
 java.lang.String getName()
           
 void setArtifactDefinition(ArtifactDefinition artifactDefinition)
           
 void setConsumerJob(Job consumerJob)
           
 void setDestinationDirectory(java.lang.String destinationDirectory)
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
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.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Constructor Detail

ArtifactSubscriptionImpl

public ArtifactSubscriptionImpl()

ArtifactSubscriptionImpl

public ArtifactSubscriptionImpl(ArtifactDefinition artifactDefinition,
                                Job consumerJob,
                                java.lang.String destinationDirectory)
Method Detail

getArtifactDefinition

@NotNull
public ArtifactDefinition getArtifactDefinition()
Description copied from interface: ArtifactSubscription
Get definition of artifact we're subscribed to.

Specified by:
getArtifactDefinition in interface ArtifactSubscription
Returns:
ArtifactDefinition object

getConsumerJob

@NotNull
public Job getConsumerJob()
Description copied from interface: ArtifactSubscription
Get job which consumes the artifact

Specified by:
getConsumerJob in interface ArtifactSubscription
Returns:
Job object

getDestinationDirectory

public java.lang.String getDestinationDirectory()
Description copied from interface: ArtifactSubscription
Get destination path. This represents a location where consumer job expects to find an artifact.

Specified by:
getDestinationDirectory in interface ArtifactSubscription
Returns:
Path to the expected location of artifact

getName

public java.lang.String getName()
Specified by:
getName in interface NameProvider

setArtifactDefinition

public void setArtifactDefinition(@NotNull
                                  ArtifactDefinition artifactDefinition)
Specified by:
setArtifactDefinition in interface ArtifactSubscription

setConsumerJob

public void setConsumerJob(@NotNull
                           Job consumerJob)
Specified by:
setConsumerJob in interface ArtifactSubscription

setDestinationDirectory

public void setDestinationDirectory(java.lang.String destinationDirectory)
Specified by:
setDestinationDirectory in interface ArtifactSubscription


Copyright © 2012 Atlassian. All Rights Reserved.