-
Method Summary
Find all artifact definitions
findAll(int firstResult,
int maxResults)
Get artifact definition of specified id
Find artifact definition of a given name associated with a producer job.
Find artifact definition of a given name which has sharedArtifact property set to true,
associated with a producer job that belongs to the chain.
Get list of artifact definitions associated with a plan
Find all shared artifacts that exist for a particular chain.
Find maximum oid used by existing objects in the db.
void
Remove all artifact definitions associated with a plan.
-
Method Details
-
findById
Get artifact definition of specified id
- Parameters:
id
- id of artifact definition
- Returns:
- artifact definition of specified id or null if not found
-
findByName
Find artifact definition of a given name associated with a producer job.
- Parameters:
plan
- plan which associated artifact definition should be retrieved
name
- name to search among plan's artifact definitions
- Returns:
- artifact definition matching plan and label or null if not found
-
findByNameInChain
Find artifact definition of a given name which has sharedArtifact property set to true,
associated with a producer job that belongs to the chain.
- Parameters:
chain
- chain which associated artifact definition should be retrieved
name
- name to search among plan's artifact definitions
- Returns:
- artifact definition matching plan and label or null if not found
-
findAll
Find all artifact definitions
- Returns:
- Collection of all artifact definitions
-
-
findByProducer
Get list of artifact definitions associated with a plan
- Parameters:
plan
- plan which associated artifact definitions should be retrieved
- Returns:
- list of artifact definitions
-
findSharedArtifactsByChain
Find all shared artifacts that exist for a particular chain.
- Parameters:
chain
- chain which associated artifact definitions should be retrieved
- Returns:
- shared artifacts that exist for the specified particular chain
-
removeByProducer
Remove all artifact definitions associated with a plan.
- Parameters:
plan
- plan which associated artifact definitions should be removed
-
getMaxArtifactDefinitionOid
@NotNull
@NotNull BambooEntityOid getMaxArtifactDefinitionOid(int serverKey)
Find maximum oid used by existing objects in the db.
- Parameters:
serverKey
-
- Returns: