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