|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ArtifactDefinitionManager
Method Summary | |
---|---|
java.util.Map<ArtifactDefinition,ArtifactDefinition> |
cloneArtifactDefinitions(Job sourcePlan,
Job targetPlan)
Creates artifact definitions objects for a Buildable plan based according to definitions associated with input Buildable plan. |
java.util.Map<ArtifactDefinition,ArtifactDefinition> |
cloneArtifactDefinitions(Job sourcePlan,
Job targetPlan,
boolean preserveSharedFlag)
Creates artifact definitions objects for a Buildable plan based according to definitions associated with
input Buildable plan. |
ArtifactDefinition |
findArtifactDefinition(long id)
Get artifact definition of specified id |
ArtifactDefinition |
findArtifactDefinition(Plan plan,
java.lang.String label)
Get artifact definition associated with a plan of a given label |
java.util.List<ArtifactDefinition> |
findArtifactDefinitionsByPlan(Plan plan)
Get list of artifact definitions associated with a plan |
com.google.common.collect.Multimap<Job,ArtifactDefinition> |
getArtifactDefinitionsByJob(Chain chain,
com.google.common.base.Predicate<ArtifactDefinitionBase> predicate)
Returns ArtifactDefinition grouped by Job where definitions are defined |
boolean |
isArtifactDefinitionNameUniqueInChain(ArtifactDefinition artifactDefinition)
Test if artifact definition's name is unique within a chain that producer plan belongs to. |
boolean |
isArtifactDefinitionNameUniqueInJob(ArtifactDefinition artifactDefinition)
Test if artifact definition's name is unique within a producer job. |
java.util.Collection<ArtifactDefinitionContext> |
prepareDefinitionContexts(Plan plan)
Get list of 'lightweight' artifact definitions associated with a plan |
void |
removeArtifactDefinition(ArtifactDefinition artifactDefinition)
Remove artifact definition. |
void |
removeArtifactDefinitionsByPlan(Plan plan)
Remove all artifact definitions associated with a plan. |
void |
saveArtifactDefinition(ArtifactDefinition artifactDefinition)
Save artifact definition. |
void |
saveArtifactDefinitions(java.util.Collection<ArtifactDefinition> artifactDefinitions)
Save all artifact definitions in a collection. |
Method Detail |
---|
@Nullable ArtifactDefinition findArtifactDefinition(long id)
id
- id of artifact definition
@Nullable ArtifactDefinition findArtifactDefinition(@NotNull Plan plan, @NotNull java.lang.String label)
plan
- plan which associated artifact definition should be retrievedlabel
- label to search among plan's artifact definitions
@NotNull java.util.List<ArtifactDefinition> findArtifactDefinitionsByPlan(@NotNull Plan plan)
plan
- plan which associated artifact definitions should be retrieved
@NotNull java.util.Collection<ArtifactDefinitionContext> prepareDefinitionContexts(@NotNull Plan plan)
plan
- plan with associated artifact definitions should be retrieved
void removeArtifactDefinition(@NotNull ArtifactDefinition artifactDefinition)
artifactDefinition
- ArtifactDefinition
to be removedvoid removeArtifactDefinitionsByPlan(@NotNull Plan plan)
plan
- plan which associated artifact definitions should be removedvoid saveArtifactDefinition(@NotNull ArtifactDefinition artifactDefinition)
artifactDefinition
- object to be saved/updatedvoid saveArtifactDefinitions(@NotNull java.util.Collection<ArtifactDefinition> artifactDefinitions)
artifactDefinitions
- collection of objects to be saved/updated@NotNull java.util.Map<ArtifactDefinition,ArtifactDefinition> cloneArtifactDefinitions(@NotNull Job sourcePlan, @NotNull Job targetPlan, boolean preserveSharedFlag)
Buildable
plan based according to definitions associated with
input Buildable
plan. This method does not persist the objects.
sourcePlan
- plan which associated artifact definitions should be clonedtargetPlan
- plan for which artifacts should be createdpreserveSharedFlag
- false will degrade all the artifacts to job level artifacts
@NotNull java.util.Map<ArtifactDefinition,ArtifactDefinition> cloneArtifactDefinitions(@NotNull Job sourcePlan, @NotNull Job targetPlan)
Buildable
plan based according to definitions associated with input Buildable
plan.
This method does not persist the objects. SharedArtifact flags are copied.
sourcePlan
- plan which associated artifact definitions should be clonedtargetPlan
- plan for which artifacts should be created
boolean isArtifactDefinitionNameUniqueInJob(@NotNull ArtifactDefinition artifactDefinition)
artifactDefinition
- artifact definition to be validated
boolean isArtifactDefinitionNameUniqueInChain(@NotNull ArtifactDefinition artifactDefinition)
ArtifactDefinitionBase.isSharedArtifact()
returns true.
If ArtifactDefinitionBase.isSharedArtifact()
returns false this method will always return true.
artifactDefinition
- artifact definition to be validated
@NotNull com.google.common.collect.Multimap<Job,ArtifactDefinition> getArtifactDefinitionsByJob(@NotNull Chain chain, com.google.common.base.Predicate<ArtifactDefinitionBase> predicate)
ArtifactDefinition
grouped by Job
where definitions are defined
chain
- predicate
- for filtering definition types
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |