Class ArtifactSubscriptionContextImpl
java.lang.Object
com.atlassian.bamboo.plan.artifact.ArtifactSubscriptionContextImpl
- All Implemented Interfaces:
ArtifactSubscriptionContext
,Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionArtifactSubscriptionContextImpl
(@NotNull ArtifactDefinitionContext artifactDefinitionContext, @Nullable String destinationPath, @NotNull SecureToken token, @NotNull String variableName) -
Method Summary
Modifier and TypeMethodDescription@NotNull String
@NotNull String
@NotNull SecureToken
getToken()
@NotNull String
boolean
void
setEffectiveDestinationPath
(@NotNull String effectiveDestinationPath) void
setSingleFile
(boolean singleFile) void
substituteVariables
(@NotNull CustomVariableContext customVariableContext) toString()
-
Constructor Details
-
ArtifactSubscriptionContextImpl
public ArtifactSubscriptionContextImpl(@NotNull @NotNull ArtifactDefinitionContext artifactDefinitionContext, @Nullable @Nullable String destinationPath, @NotNull @NotNull SecureToken token, @NotNull @NotNull String variableName)
-
-
Method Details
-
substituteVariables
- Specified by:
substituteVariables
in interfaceArtifactSubscriptionContext
-
getArtifactDefinitionContext
- Specified by:
getArtifactDefinitionContext
in interfaceArtifactSubscriptionContext
- Returns:
- representation of transferred artifact
-
getDestinationPath
- Specified by:
getDestinationPath
in interfaceArtifactSubscriptionContext
- Returns:
- path to artifact as defined in
ArtifactSubscription
-
getToken
- Specified by:
getToken
in interfaceArtifactSubscriptionContext
- Returns:
- secure token used for artifact transfer
-
getVariableName
- Specified by:
getVariableName
in interfaceArtifactSubscriptionContext
- Returns:
- name of the variable which contains artifact path
-
isSingleFile
public boolean isSingleFile()- Specified by:
isSingleFile
in interfaceArtifactSubscriptionContext
- Returns:
- true iff artifact is a single file
-
setSingleFile
public void setSingleFile(boolean singleFile) - Specified by:
setSingleFile
in interfaceArtifactSubscriptionContext
-
getEffectiveDestinationPath
- Specified by:
getEffectiveDestinationPath
in interfaceArtifactSubscriptionContext
- Returns:
- actual path to artifact
-
setEffectiveDestinationPath
- Specified by:
setEffectiveDestinationPath
in interfaceArtifactSubscriptionContext
-
toString
-