|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BuildManager
Manager to handle all build related activities
| Method Summary | |
|---|---|
void |
addBuildResults(Buildable buildable,
BuildResults buildResults)
Deprecated. |
boolean |
exists(java.lang.String key)
Deprecated. Returns true if build exists with the provided key (eg. |
java.util.Set<Build> |
filterFavouritedBuilds(java.util.Collection<Build> builds,
com.atlassian.user.User user)
Deprecated. since 2.7 please use equivalent method of PlanManager to get chains as well |
java.util.Collection<Build> |
getAllBuilds()
Deprecated. Returns a collection of all Build objects |
java.util.Collection<Build> |
getAllBuildsForClone()
Deprecated. since 2.7 use PlanManager.getAllPlansForClone(Class) |
java.util.Collection<Build> |
getAllBuildsForEdit()
Deprecated. |
java.util.Collection<Build> |
getAllBuildsForRead()
Deprecated. |
Build |
getBuildById(long id)
Deprecated. Returns the build given the id |
Build |
getBuildByKey(java.lang.String key)
Deprecated. use PlanManager.getPlanByKey(String, Class) |
Build |
getBuildByProjectAndName(java.lang.String projectKey,
java.lang.String buildName)
Deprecated. |
BuildResults |
getBuildResults(Buildable build,
java.lang.Integer buildNumber)
Deprecated. Return BuildResults for the given Build and buildNumber |
BuildResults |
getBuildResults(Build build,
java.lang.Integer buildNumber)
Deprecated. Return BuildResults for the given Build and buildNumber |
BuildResults |
getBuildResults(java.lang.String planKey,
java.lang.Integer buildNumber)
Deprecated. Return BuildResults for the given planKey and buildNumber |
java.util.Collection<Build> |
getBuildsByProjectForRead(Project project)
Deprecated. This is the manager equivalent of a project.getBuilds. |
java.util.Collection<Build> |
getBuildsForDeletion()
Deprecated. |
java.util.Collection<Build> |
getFavouriteBuildsForRead(com.atlassian.user.User user)
Deprecated. since 2.7 please use PlanManager.getFavouritePlans |
int |
getPlanCount()
Deprecated. use PlanManager.getPlanCount(Class) or PlanManager.getPlanCount() |
java.util.Map<Project,java.util.Collection<Build>> |
getProjectBuilds(boolean includeEmptyProjects)
Deprecated. since 2.7 please use PlanManager.getProjectPlanMap(Class, boolean) |
boolean |
isAllowBuilding(java.lang.String planKey)
Deprecated. Checks if a particular build is allowed to be built. |
boolean |
isExistingBuildKey(java.lang.String projectKey,
java.lang.String buildKey)
Deprecated. Returns true if the build key already exists within the given project key |
boolean |
isExistingBuildName(java.lang.String projectKey,
java.lang.String buildName)
Deprecated. Returns true if the build name already exists within the given project key |
java.util.Collection<Build> |
retreiveAllBuilds()
Deprecated. |
java.lang.String |
revertVcsRevisionKey(java.lang.String buildKey,
java.lang.String revisionForBuild,
java.lang.String previousRevision)
Deprecated. use PlanManager.revertVcsRevisionKey(String, String, String) |
void |
saveBuild(Build build)
Deprecated. Persists a build |
void |
saveSuspendBuild(java.lang.String buildKey,
boolean setSuspendBuild)
Deprecated. since 2.7. Does not support chains, use PlanManager.savePlanSuspendState instead to save the Plan. |
void |
updateNames(java.lang.String projectName,
java.lang.String buildName,
Build build)
Deprecated. Updates project and plan names. |
void |
updateNamesAndDescription(java.lang.String projectName,
java.lang.String buildName,
java.lang.String description,
Buildable buildable)
Deprecated. Updates project and plan names and plan description. |
java.lang.String |
updateVcsRevisionKey(BuildContext buildContext)
Deprecated. use PlanManager.updateVcsRevisionKey(BuildContext) |
| Method Detail |
|---|
@Nullable @Deprecated Build getBuildByKey(java.lang.String key)
PlanManager.getPlanByKey(String, Class)
key - - full key of the build. eg. BAM-MAIN null safe
Build if the key matches. Otherwise nullBuild getBuildById(long id)
id -
Build. null if not found.java.util.Collection<Build> getAllBuilds()
Build objects
Collections.emptyList() if none existsjava.util.Collection<Build> getAllBuildsForRead()
java.util.Collection<Build> retreiveAllBuilds()
java.util.Collection<Build> getAllBuildsForEdit()
@Deprecated java.util.Collection<Build> getAllBuildsForClone()
PlanManager.getAllPlansForClone(Class)
java.util.Collection<Build> getBuildsForDeletion()
@Deprecated java.util.Collection<Build> getFavouriteBuildsForRead(com.atlassian.user.User user)
user -
@NotNull
@Deprecated
java.util.Set<Build> filterFavouritedBuilds(@NotNull
java.util.Collection<Build> builds,
@NotNull
com.atlassian.user.User user)
Builds that are a subset of the given Builds collection that are favourited by the User
builds - user -
java.util.Collection<Build> getBuildsByProjectForRead(Project project)
project -
boolean isExistingBuildName(java.lang.String projectKey,
java.lang.String buildName)
projectKey - (doesn't have to exist for this check)buildName - to check
boolean isExistingBuildKey(java.lang.String projectKey,
java.lang.String buildKey)
projectKey - (doesn't have to exist for this check)buildKey - to check
boolean exists(java.lang.String key)
key -
@Deprecated int getPlanCount()
PlanManager.getPlanCount(Class) or PlanManager.getPlanCount()
void saveBuild(Build build)
build - cannot be null
@Deprecated
void saveSuspendBuild(java.lang.String buildKey,
boolean setSuspendBuild)
buildKey - of the build to be suspended/resumedsetSuspendBuild - true if the build should be suspended, false if resumed
void addBuildResults(Buildable buildable,
BuildResults buildResults)
@Nullable
BuildResults getBuildResults(Buildable build,
java.lang.Integer buildNumber)
BuildResults for the given Build and buildNumber
build - buildNumber -
@Nullable
BuildResults getBuildResults(Build build,
java.lang.Integer buildNumber)
BuildResults for the given Build and buildNumber
build - buildNumber -
BuildResults getBuildResults(java.lang.String planKey,
java.lang.Integer buildNumber)
BuildResults for the given planKey and buildNumber
planKey - buildNumber -
Build getBuildByProjectAndName(java.lang.String projectKey,
java.lang.String buildName)
void updateNames(java.lang.String projectName,
java.lang.String buildName,
Build build)
projectName - new name of the projectbuildName - new name of the planbuild - build object to be modified and stored.
void updateNamesAndDescription(java.lang.String projectName,
java.lang.String buildName,
@Nullable
java.lang.String description,
Buildable buildable)
projectName - new name of the projectbuildName - new name of the plandescription - new plan descriptionbuildable -
boolean isAllowBuilding(@NotNull
java.lang.String planKey)
planKey -
@Deprecated @NotNull java.util.Map<Project,java.util.Collection<Build>> getProjectBuilds(boolean includeEmptyProjects)
PlanManager.getProjectPlanMap(Class, boolean)
Build collections which belong to a Project
includeEmptyProjects - set to true if you want all of the projects regardless if they have any builds
@Deprecated
java.lang.String updateVcsRevisionKey(@NotNull
BuildContext buildContext)
PlanManager.updateVcsRevisionKey(BuildContext)
buildContext -
@Deprecated
@Nullable
java.lang.String revertVcsRevisionKey(@NotNull
java.lang.String buildKey,
@NotNull
java.lang.String revisionForBuild,
@Nullable
java.lang.String previousRevision)
PlanManager.revertVcsRevisionKey(String, String, String)
buildKey - revisionForBuild - previousRevision -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||