Interface ImmutableArtifactManager
-
- All Known Implementing Classes:
ImmutableArtifactManagerImpl
public interface ImmutableArtifactManager
Builds immutable artifact object in a Hibernate transaction to eliminate risk of LazyInitializationException
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
countSubscriptionsOfArtifact(@org.jetbrains.annotations.NotNull long artifactDefinitionId)
@Nullable ImmutableArtifactDefinition
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
-
-
-
Method Detail
-
createImmutableArtifactDefinition
@Nullable @Nullable ImmutableArtifactDefinition createImmutableArtifactDefinition(@NotNull @NotNull ImmutableArtifactSubscription artifactSubscription)
CreateImmutableArtifactDefinition
representing artifact thatartifactSubscription
points to- Parameters:
artifactSubscription
-ArtifactSubscription
that defines artifact definition- Returns:
ImmutableArtifactDefinition
-
findImmutableArtifactDefinitionsByProducer
@NotNull @NotNull com.google.common.collect.ImmutableList<ImmutableArtifactDefinition> findImmutableArtifactDefinitionsByProducer(@NotNull @NotNull ImmutablePlan plan)
Create list ofImmutableArtifactDefinition
s produced byplan
- Parameters:
plan
- producer of artifact definitions- Returns:
- list of
ImmutableArtifactDefinition
-
findImmutableArtifactSubscriptionsByDefinition
@NotNull @NotNull com.google.common.collect.ImmutableList<ImmutableArtifactSubscription> findImmutableArtifactSubscriptionsByDefinition(@NotNull @NotNull ImmutableArtifactDefinition artifactDefinition)
Create list ofImmutableArtifactSubscription
s which referartifactDefinition
- Parameters:
artifactDefinition
-ArtifactDefinition
that defines list of artifact subscriptions- Returns:
- list of
ImmutableArtifactSubscription
-
findImmutableArtifactSubscriptionsByPlan
@NotNull @NotNull com.google.common.collect.ImmutableList<ImmutableArtifactSubscription> findImmutableArtifactSubscriptionsByPlan(@NotNull @NotNull ImmutablePlan plan)
Create list ofImmutableArtifactSubscription
s defined inplan
- Parameters:
plan
-Plan
that defines list of artifact subscriptions- Returns:
- list of
ImmutableArtifactSubscription
-
countSubscriptionsOfArtifact
long countSubscriptionsOfArtifact(@NotNull @org.jetbrains.annotations.NotNull long artifactDefinitionId)
- Returns:
- amount of subscriptions existing for an artifact
- Since:
- 7.1
-
-