|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.chains.ChainManagerImpl
public class ChainManagerImpl
Constructor Summary | |
---|---|
ChainManagerImpl(ChainDao chainDao,
com.atlassian.event.EventManager eventManager,
BuildNumberGeneratorService buildNumberGenerator)
|
Method Summary | |
---|---|
Chain |
create(Project project,
java.lang.String chainKey,
java.lang.String name,
java.lang.String description)
Creates a new Chain |
boolean |
exists(java.lang.String fullKey)
Checks if the Chain exists using the full key (eg BAM-BOO) |
java.util.Collection<Chain> |
getAllChains()
Returns all the Chain 's |
Chain |
getByChainKey(java.lang.String key)
Gets the Chain by its key (eg. |
Chain |
getByPlanKey(PlanKey planKey)
Gets the Chain by its PlanKey |
int |
getNextChainNumber(Chain chain)
Get Next Chain Number |
boolean |
isExistingKey(Project project,
java.lang.String key)
Checks if the Chain exists by its key |
boolean |
isExistingName(Project project,
java.lang.String name)
Checks if the Chain exists by its name |
void |
moveStage(Chain chain,
int newPosition,
ChainStage chainStage)
Move a ChainStage to a new position |
void |
save(Chain chain)
Saves the Chain |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChainManagerImpl(@NotNull ChainDao chainDao, @NotNull com.atlassian.event.EventManager eventManager, @NotNull BuildNumberGeneratorService buildNumberGenerator)
Method Detail |
---|
@Nullable public Chain getByPlanKey(@NotNull PlanKey planKey)
ChainManager
Chain
by its PlanKey
getByPlanKey
in interface ChainManager
@Nullable public Chain getByChainKey(@NotNull java.lang.String key)
ChainManager
Chain
by its key (eg. BAM-FOO)
getByChainKey
in interface ChainManager
@NotNull public java.util.Collection<Chain> getAllChains()
ChainManager
Chain
's
getAllChains
in interface ChainManager
@NotNull public Chain create(@NotNull Project project, @NotNull java.lang.String chainKey, @NotNull java.lang.String name, java.lang.String description)
ChainManager
create
in interface ChainManager
public void save(@NotNull Chain chain)
ChainManager
Chain
save
in interface ChainManager
public boolean exists(@NotNull java.lang.String fullKey)
ChainManager
Chain
exists using the full key (eg BAM-BOO)
exists
in interface ChainManager
public boolean isExistingKey(@NotNull Project project, @NotNull java.lang.String key)
ChainManager
Chain
exists by its key
isExistingKey
in interface ChainManager
public boolean isExistingName(@NotNull Project project, @NotNull java.lang.String name)
ChainManager
Chain
exists by its name
isExistingName
in interface ChainManager
public int getNextChainNumber(@NotNull Chain chain)
ChainManager
getNextChainNumber
in interface ChainManager
public void moveStage(@NotNull Chain chain, int newPosition, @NotNull ChainStage chainStage)
ChainManager
ChainStage
to a new position
moveStage
in interface ChainManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |