Class ImmutableArtifactManagerImpl
java.lang.Object
com.atlassian.bamboo.plan.artifact.ImmutableArtifactManagerImpl
- All Implemented Interfaces:
ImmutableArtifactManager
-
Constructor Summary
ConstructorDescriptionImmutableArtifactManagerImpl
(ArtifactDefinitionManager artifactDefinitionManager, ArtifactSubscriptionManager artifactSubscriptionManager) -
Method Summary
Modifier and TypeMethodDescriptionlong
countSubscriptionsOfArtifact
(@org.jetbrains.annotations.NotNull long artifactDefinitionId) createImmutableArtifactDefinition
(@NotNull ImmutableArtifactSubscription artifactSubscription) CreateImmutableArtifactDefinition
representing artifact thatartifactSubscription
points to@NotNull com.google.common.collect.ImmutableList<ImmutableArtifactDefinition>
findImmutableArtifactDefinitionsByProducer
(@NotNull ImmutablePlan plan) Create list ofImmutableArtifactDefinition
s produced byplan
@NotNull com.google.common.collect.ImmutableList<ImmutableArtifactSubscription>
findImmutableArtifactSubscriptionsByDefinition
(@NotNull ImmutableArtifactDefinition artifactDefinition) Create list ofImmutableArtifactSubscription
s which referartifactDefinition
@NotNull com.google.common.collect.ImmutableList<ImmutableArtifactSubscription>
findImmutableArtifactSubscriptionsByPlan
(@NotNull ImmutablePlan plan) Create list ofImmutableArtifactSubscription
s defined inplan
-
Constructor Details
-
ImmutableArtifactManagerImpl
public ImmutableArtifactManagerImpl(ArtifactDefinitionManager artifactDefinitionManager, ArtifactSubscriptionManager artifactSubscriptionManager)
-
-
Method Details
-
findImmutableArtifactDefinitionsByProducer
@NotNull public @NotNull com.google.common.collect.ImmutableList<ImmutableArtifactDefinition> findImmutableArtifactDefinitionsByProducer(@NotNull @NotNull ImmutablePlan plan) Description copied from interface:ImmutableArtifactManager
Create list ofImmutableArtifactDefinition
s produced byplan
- Specified by:
findImmutableArtifactDefinitionsByProducer
in interfaceImmutableArtifactManager
- Parameters:
plan
- producer of artifact definitions- Returns:
- list of
ImmutableArtifactDefinition
-
createImmutableArtifactDefinition
public ImmutableArtifactDefinition createImmutableArtifactDefinition(@NotNull @NotNull ImmutableArtifactSubscription artifactSubscription) Description copied from interface:ImmutableArtifactManager
CreateImmutableArtifactDefinition
representing artifact thatartifactSubscription
points to- Specified by:
createImmutableArtifactDefinition
in interfaceImmutableArtifactManager
- Parameters:
artifactSubscription
-ArtifactSubscription
that defines artifact definition- Returns:
ImmutableArtifactDefinition
-
findImmutableArtifactSubscriptionsByDefinition
@NotNull public @NotNull com.google.common.collect.ImmutableList<ImmutableArtifactSubscription> findImmutableArtifactSubscriptionsByDefinition(@NotNull @NotNull ImmutableArtifactDefinition artifactDefinition) Description copied from interface:ImmutableArtifactManager
Create list ofImmutableArtifactSubscription
s which referartifactDefinition
- Specified by:
findImmutableArtifactSubscriptionsByDefinition
in interfaceImmutableArtifactManager
- Parameters:
artifactDefinition
-ArtifactDefinition
that defines list of artifact subscriptions- Returns:
- list of
ImmutableArtifactSubscription
-
findImmutableArtifactSubscriptionsByPlan
@NotNull public @NotNull com.google.common.collect.ImmutableList<ImmutableArtifactSubscription> findImmutableArtifactSubscriptionsByPlan(@NotNull @NotNull ImmutablePlan plan) Description copied from interface:ImmutableArtifactManager
Create list ofImmutableArtifactSubscription
s defined inplan
- Specified by:
findImmutableArtifactSubscriptionsByPlan
in interfaceImmutableArtifactManager
- Parameters:
plan
-Plan
that defines list of artifact subscriptions- Returns:
- list of
ImmutableArtifactSubscription
-
countSubscriptionsOfArtifact
public long countSubscriptionsOfArtifact(@NotNull @org.jetbrains.annotations.NotNull long artifactDefinitionId) - Specified by:
countSubscriptionsOfArtifact
in interfaceImmutableArtifactManager
- Returns:
- amount of subscriptions existing for an artifact
-