com.atlassian.bamboo.plan.artifact
Class ArtifactSubscriptionContextImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.artifact.ArtifactSubscriptionContextImpl
All Implemented Interfaces:
ArtifactSubscriptionContext, java.io.Serializable

public class ArtifactSubscriptionContextImpl
extends java.lang.Object
implements ArtifactSubscriptionContext

See Also:
Serialized Form

Constructor Summary
ArtifactSubscriptionContextImpl(ArtifactDefinitionContext artifactDefinitionContext, java.lang.String destinationPath, SecureToken token, java.lang.String variableName)
           
 
Method Summary
 ArtifactDefinitionContext getArtifactDefinitionContext()
           
 java.lang.String getDestinationPath()
           
 java.lang.String getEffectiveDestinationPath()
           
 SecureToken getToken()
           
 java.lang.String getVariableName()
           
 boolean isSingleFile()
           
 void setEffectiveDestinationPath(java.lang.String effectiveDestinationPath)
           
 void setSingleFile(boolean singleFile)
           
 void substituteVariables(CustomVariableContext customVariableContext)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArtifactSubscriptionContextImpl

public ArtifactSubscriptionContextImpl(@NotNull
                                       ArtifactDefinitionContext artifactDefinitionContext,
                                       @Nullable
                                       java.lang.String destinationPath,
                                       @NotNull
                                       SecureToken token,
                                       @NotNull
                                       java.lang.String variableName)
Method Detail

substituteVariables

public void substituteVariables(@NotNull
                                CustomVariableContext customVariableContext)
Specified by:
substituteVariables in interface ArtifactSubscriptionContext

getArtifactDefinitionContext

public ArtifactDefinitionContext getArtifactDefinitionContext()
Specified by:
getArtifactDefinitionContext in interface ArtifactSubscriptionContext
Returns:
representation of transferred artifact

getDestinationPath

@NotNull
public java.lang.String getDestinationPath()
Specified by:
getDestinationPath in interface ArtifactSubscriptionContext
Returns:
path to artifact as defined in ArtifactSubscription

getToken

@NotNull
public SecureToken getToken()
Specified by:
getToken in interface ArtifactSubscriptionContext
Returns:
secure token used for artifact transfer

getVariableName

@NotNull
public java.lang.String getVariableName()
Specified by:
getVariableName in interface ArtifactSubscriptionContext
Returns:
name of the variable which contains artifact path

isSingleFile

public boolean isSingleFile()
Specified by:
isSingleFile in interface ArtifactSubscriptionContext
Returns:
true iff artifact is a single file

setSingleFile

public void setSingleFile(boolean singleFile)
Specified by:
setSingleFile in interface ArtifactSubscriptionContext

getEffectiveDestinationPath

@NotNull
public java.lang.String getEffectiveDestinationPath()
Specified by:
getEffectiveDestinationPath in interface ArtifactSubscriptionContext
Returns:
actual path to artifact

setEffectiveDestinationPath

public void setEffectiveDestinationPath(@NotNull
                                        java.lang.String effectiveDestinationPath)
Specified by:
setEffectiveDestinationPath in interface ArtifactSubscriptionContext

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012 Atlassian. All Rights Reserved.