|
||||||||||
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(Build build,
BuildResults buildResults)
|
void |
addChildBuild(Build build,
java.lang.String childBuildKey)
|
void |
createBuild(Build build,
BuildConfiguration buildConfiguration,
HibernateAcl acl)
Save a new build object with the passed buildConfiguration |
void |
deleteBuild(java.lang.String buildKey)
Removes the build from system |
void |
deleteProject(Project project)
Removes the project from the system |
java.util.Collection<Build> |
getAllBuilds()
Returns a collection of all Build objects |
java.util.Collection<Build> |
getAllBuildsForClone()
|
java.util.Collection<Build> |
getAllBuildsForEdit()
|
java.util.Collection<Build> |
getAllBuildsForRead()
|
java.util.Collection<Project> |
getAllProjects()
Returns a collection of Project objects |
Build |
getBuildById(long id)
Returns the build given the id |
Build |
getBuildByKey(java.lang.String key)
Returns the build given a key |
Build |
getBuildByProjectAndName(java.lang.String projectKey,
java.lang.String buildName)
|
BuildResults |
getBuildResults(Build build,
java.lang.Integer buildNumber)
|
java.util.Collection |
getBuildsByProjectForRead(Project project)
This is the manager equivalent of a project.getBuilds. |
java.util.Collection<Build> |
getBuildsForDeletion()
|
Project |
getProjectById(long id)
Returns the build given the id |
Project |
getProjectByKey(java.lang.String key)
Returns the prokect given a project key |
Project |
getProjectByName(java.lang.String projectName)
|
boolean |
isAllowBuilding(java.lang.String planKey)
Checks if a particular build is allowed to be built. |
boolean |
isExistingBuildKey(java.lang.String buildKey)
Returns true if the build key already exists |
boolean |
isExistingBuildKey(java.lang.String projectKey,
java.lang.String buildKey)
Returns true if the build key already exists within the given project key |
boolean |
isExistingBuildName(java.lang.String buildName)
Returns true if the build name already exists |
boolean |
isExistingBuildName(java.lang.String projectKey,
java.lang.String buildName)
Returns true if the build name already exists within the given project key |
boolean |
isExistingProjectKey(java.lang.String projectKey)
Returns true if the project name already exists |
boolean |
isExistingProjectName(java.lang.String projectName)
Returns true if the project name already exists |
void |
recordLastBuildNumber(Build build,
BuildResultsSummary summary,
BuildContext buildContext)
Records the last build number built and also the vcsRevisionKey |
void |
removeDependencies(Build dependentBuild)
Removes a build from all dependency lists. |
java.util.Collection<Build> |
retreiveAllBuilds()
|
int |
retrieveNextBuildNumber(java.lang.String planKey)
|
void |
saveBuild(Build build)
Perists a build |
void |
saveBuildAndDefinition(Build build)
|
void |
saveBuildConfig(Build build,
BuildConfiguration buildConfiguration)
Save an existing build with the given build configuration |
void |
updateLatestVcsKey(java.lang.String planKey,
java.lang.String vcsRevisionKey)
Updates the build to the latest passed revision key |
void |
updateNames(java.lang.String projectName,
java.lang.String buildName,
Build build)
|
Method Detail |
---|
void removeDependencies(Build dependentBuild)
dependentBuild
- - the name of the build that is triggered@Nullable Build getBuildByKey(java.lang.String key)
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.EMPTY_LIST
if none existsjava.util.Collection<Build> getAllBuildsForRead()
java.util.Collection<Build> retreiveAllBuilds()
java.util.Collection<Build> getAllBuildsForEdit()
java.util.Collection<Build> getAllBuildsForClone()
java.util.Collection<Build> getBuildsForDeletion()
java.util.Collection getBuildsByProjectForRead(Project project)
project
-
java.util.Collection<Project> getAllProjects()
Project
objects
Collections.EMPTY_LIST
if none existsProject getProjectByKey(java.lang.String key)
key
- - the project key e.g. BAMBOO (not BAMBOO-TRUNK)
Project
if the key matches. Otherwise nullProject getProjectById(long id)
id
-
Project
. null if not found.boolean isExistingBuildName(java.lang.String buildName)
buildName
- name to check
boolean isExistingBuildKey(java.lang.String buildKey)
buildKey
- key of the build
boolean isExistingProjectName(java.lang.String projectName)
projectName
- to check
boolean isExistingProjectKey(java.lang.String projectKey)
projectName
- to check
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
void createBuild(Build build, BuildConfiguration buildConfiguration, HibernateAcl acl)
build
- @NotNullbuildConfiguration
- @NotNullvoid saveBuild(Build build)
build
- cannot be nullvoid saveBuildAndDefinition(Build build)
void saveBuildConfig(Build build, BuildConfiguration buildConfiguration)
build
- @NotNullbuildConfiguration
- @NotNullvoid deleteBuild(java.lang.String buildKey)
buildKey
- String name for buildvoid deleteProject(Project project)
project
- projectvoid addBuildResults(Build build, BuildResults buildResults)
BuildResults getBuildResults(Build build, java.lang.Integer buildNumber)
int retrieveNextBuildNumber(java.lang.String planKey)
void recordLastBuildNumber(Build build, BuildResultsSummary summary, BuildContext buildContext)
build
- summary
- buildContext
- void addChildBuild(Build build, java.lang.String childBuildKey)
Project getProjectByName(java.lang.String projectName)
Build getBuildByProjectAndName(java.lang.String projectKey, java.lang.String buildName)
void updateNames(java.lang.String projectName, java.lang.String buildName, Build build)
void updateLatestVcsKey(@NotNull java.lang.String planKey, @NotNull java.lang.String vcsRevisionKey)
planKey
- - Plan keyvcsRevisionKey
- - revision keyboolean isAllowBuilding(@NotNull java.lang.String planKey)
planKey
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |