public interface ArtifactDefinitionDao extends BambooObjectDao<ArtifactDefinition>
Modifier and Type | Method and Description |
---|---|
@NotNull Collection<? extends ArtifactDefinition> |
findAll()
Find all artifact definitions
|
@NotNull Collection<? extends ArtifactDefinition> |
findAll(int firstResult,
int maxResults) |
@Nullable ArtifactDefinition |
findById(long id)
Get artifact definition of specified id
|
@Nullable ArtifactDefinition |
findByName(@NotNull ImmutablePlan plan,
@NotNull String name)
Find artifact definition of a given name associated with a producer job.
|
@Nullable ArtifactDefinition |
findByNameInChain(@NotNull ImmutableChain chain,
@NotNull String name)
Find artifact definition of a given name which has sharedArtifact property set to true,
associated with a producer job that belongs to the chain.
|
@NotNull List<ArtifactDefinition> |
findByProducer(@NotNull ImmutablePlan plan)
Get list of artifact definitions associated with a plan
|
@NotNull List<ArtifactDefinition> |
findSharedArtifactsByChain(@NotNull ImmutableChain chain)
Find all shared artifacts that exist for a particular chain.
|
@NotNull BambooEntityOid |
getMaxArtifactDefinitionOid(int serverKey)
Find maximum oid used by existing objects in the db.
|
void |
removeByProducer(@NotNull ImmutablePlan plan)
Remove all artifact definitions associated with a plan.
|
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@Nullable @Nullable ArtifactDefinition findById(long id)
id
- id of artifact definition@Nullable @Nullable ArtifactDefinition findByName(@NotNull @NotNull ImmutablePlan plan, @NotNull @NotNull String name)
plan
- plan which associated artifact definition should be retrievedname
- name to search among plan's artifact definitions@Nullable @Nullable ArtifactDefinition findByNameInChain(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull String name)
chain
- chain which associated artifact definition should be retrievedname
- name to search among plan's artifact definitions@NotNull @NotNull Collection<? extends ArtifactDefinition> findAll()
@NotNull @NotNull Collection<? extends ArtifactDefinition> findAll(int firstResult, int maxResults)
@NotNull @NotNull List<ArtifactDefinition> findByProducer(@NotNull @NotNull ImmutablePlan plan)
plan
- plan which associated artifact definitions should be retrieved@NotNull @NotNull List<ArtifactDefinition> findSharedArtifactsByChain(@NotNull @NotNull ImmutableChain chain)
chain
- chain which associated artifact definitions should be retrievedvoid removeByProducer(@NotNull @NotNull ImmutablePlan plan)
plan
- plan which associated artifact definitions should be removed@NotNull @NotNull BambooEntityOid getMaxArtifactDefinitionOid(int serverKey)
serverKey
- Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.