Class ArtifactContextImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.artifact.ArtifactContextImpl
-
- All Implemented Interfaces:
ArtifactContext
,CommonArtifactContext
,Serializable
public class ArtifactContextImpl extends Object implements ArtifactContext
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArtifactContextImpl(SecureToken secureToken, @NotNull Collection<ArtifactDefinitionContext> definitionContexts, @NotNull Collection<ArtifactSubscriptionContext> subscriptionContexts, Optional<Long> artifactSizeQuota, @NotNull Map<String,String> artifactHandlerConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPublishingResult(ArtifactPublishingResult publishingResult)
@NotNull Map<String,String>
getArtifactHandlerConfiguration()
@NotNull io.atlassian.fugue.Option<Long>
getArtifactSizeQuota()
Maximum allowed size of artifacts per build result in bytes.@NotNull Collection<ArtifactDefinitionContext>
getDefinitionContexts()
@NotNull Collection<ArtifactPublishingResult>
getPublishingResults()
@NotNull SecureToken
getSecureToken()
@NotNull com.google.common.collect.Multimap<String,Artifact>
getSharedArtifactsFromPreviousStages()
@NotNull Collection<ArtifactSubscriptionContext>
getSubscriptionContexts()
void
setSharedArtifactsFromPreviousStages(@NotNull com.google.common.collect.Multimap<String,Artifact> artifactsFromPreviousStages)
-
-
-
Constructor Detail
-
ArtifactContextImpl
public ArtifactContextImpl(SecureToken secureToken, @NotNull @NotNull Collection<ArtifactDefinitionContext> definitionContexts, @NotNull @NotNull Collection<ArtifactSubscriptionContext> subscriptionContexts, Optional<Long> artifactSizeQuota, @NotNull @NotNull Map<String,String> artifactHandlerConfiguration)
-
-
Method Detail
-
getDefinitionContexts
@NotNull public @NotNull Collection<ArtifactDefinitionContext> getDefinitionContexts()
- Specified by:
getDefinitionContexts
in interfaceArtifactContext
-
getPublishingResults
@NotNull public @NotNull Collection<ArtifactPublishingResult> getPublishingResults()
- Specified by:
getPublishingResults
in interfaceCommonArtifactContext
-
getSubscriptionContexts
@NotNull public @NotNull Collection<ArtifactSubscriptionContext> getSubscriptionContexts()
- Specified by:
getSubscriptionContexts
in interfaceArtifactContext
-
getArtifactHandlerConfiguration
@NotNull public @NotNull Map<String,String> getArtifactHandlerConfiguration()
- Specified by:
getArtifactHandlerConfiguration
in interfaceArtifactContext
-
getArtifactSizeQuota
@NotNull public @NotNull io.atlassian.fugue.Option<Long> getArtifactSizeQuota()
Description copied from interface:ArtifactContext
Maximum allowed size of artifacts per build result in bytes.- Specified by:
getArtifactSizeQuota
in interfaceArtifactContext
- Returns:
- maximum artifacts size in bytes or Optional.empty()) if not set
-
addPublishingResult
public void addPublishingResult(ArtifactPublishingResult publishingResult)
- Specified by:
addPublishingResult
in interfaceCommonArtifactContext
-
getSharedArtifactsFromPreviousStages
@NotNull public @NotNull com.google.common.collect.Multimap<String,Artifact> getSharedArtifactsFromPreviousStages()
- Specified by:
getSharedArtifactsFromPreviousStages
in interfaceArtifactContext
-
setSharedArtifactsFromPreviousStages
public void setSharedArtifactsFromPreviousStages(@NotNull @NotNull com.google.common.collect.Multimap<String,Artifact> artifactsFromPreviousStages)
- Specified by:
setSharedArtifactsFromPreviousStages
in interfaceArtifactContext
-
getSecureToken
@NotNull public @NotNull SecureToken getSecureToken()
- Specified by:
getSecureToken
in interfaceCommonArtifactContext
-
-