org.apache.maven.continuum.builddefinition
Interface BuildDefinitionService

All Known Implementing Classes:
DefaultBuildDefinitionService

public interface BuildDefinitionService

Since:
15 sept. 07
Version:
$Id: BuildDefinitionService.java 1372267 2012-08-13 05:47:30Z brett $
Author:
olamy

Method Summary
 BuildDefinition addBuildDefinition(BuildDefinition buildDefinition)
           
 BuildDefinitionTemplate addBuildDefinitionInTemplate(BuildDefinitionTemplate buildDefinitionTemplate, BuildDefinition buildDefinition, boolean template)
           
 BuildDefinitionTemplate addBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
           
 ProjectGroup addBuildDefinitionTemplateToProjectGroup(int projectGroupId, BuildDefinitionTemplate buildDefinitionTemplate)
           
 void addTemplateInProject(int buildDefinitionTemplateId, Project project)
           
 BuildDefinition cloneBuildDefinition(BuildDefinition buildDefinition)
           
 List<BuildDefinition> getAllBuildDefinitions()
           
 List<BuildDefinitionTemplate> getAllBuildDefinitionTemplate()
           
 List<BuildDefinition> getAllTemplates()
           
 BuildDefinition getBuildDefinition(int buildDefinitionId)
           
 BuildDefinitionTemplate getBuildDefinitionTemplate(int id)
           
 List<BuildDefinitionTemplate> getBuildDefinitionTemplatesWithType(String type)
           
 List<BuildDefinitionTemplate> getContinuumBuildDefinitionTemplates()
           
 BuildDefinitionTemplate getContinuumDefaultWithType(String type)
           
 BuildDefinitionTemplate getDefaultAntBuildDefinitionTemplate()
           
 BuildDefinitionTemplate getDefaultMavenOneBuildDefinitionTemplate()
           
 BuildDefinitionTemplate getDefaultMavenTwoBuildDefinitionTemplate()
           
 BuildDefinitionTemplate getDefaultShellBuildDefinitionTemplate()
           
 void removeBuildDefinition(BuildDefinition buildDefinition)
           
 BuildDefinitionTemplate removeBuildDefinitionFromTemplate(BuildDefinitionTemplate buildDefinitionTemplate, BuildDefinition buildDefinition)
           
 void removeBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
           
 void updateBuildDefinition(BuildDefinition buildDefinition)
           
 BuildDefinitionTemplate updateBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
           
 

Method Detail

getBuildDefinition

BuildDefinition getBuildDefinition(int buildDefinitionId)
                                   throws BuildDefinitionServiceException
Parameters:
buildDefinitionId -
Returns:
null if not in store
Throws:
BuildDefinitionServiceException

getAllBuildDefinitions

List<BuildDefinition> getAllBuildDefinitions()
                                             throws BuildDefinitionServiceException
Returns:
List all build defintions
Throws:
BuildDefinitionServiceException

addBuildDefinition

BuildDefinition addBuildDefinition(BuildDefinition buildDefinition)
                                   throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

removeBuildDefinition

void removeBuildDefinition(BuildDefinition buildDefinition)
                           throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

updateBuildDefinition

void updateBuildDefinition(BuildDefinition buildDefinition)
                           throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

getAllTemplates

List<BuildDefinition> getAllTemplates()
                                      throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

cloneBuildDefinition

BuildDefinition cloneBuildDefinition(BuildDefinition buildDefinition)
Parameters:
buildDefinition -
Returns:
clone of BuildDefinition template/continuumDefault set to false

addTemplateInProject

void addTemplateInProject(int buildDefinitionTemplateId,
                          Project project)
                          throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

getAllBuildDefinitionTemplate

List<BuildDefinitionTemplate> getAllBuildDefinitionTemplate()
                                                            throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

getBuildDefinitionTemplate

BuildDefinitionTemplate getBuildDefinitionTemplate(int id)
                                                   throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

addBuildDefinitionTemplate

BuildDefinitionTemplate addBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
                                                   throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

updateBuildDefinitionTemplate

BuildDefinitionTemplate updateBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
                                                      throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

removeBuildDefinitionTemplate

void removeBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
                                   throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

addBuildDefinitionInTemplate

BuildDefinitionTemplate addBuildDefinitionInTemplate(BuildDefinitionTemplate buildDefinitionTemplate,
                                                     BuildDefinition buildDefinition,
                                                     boolean template)
                                                     throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

removeBuildDefinitionFromTemplate

BuildDefinitionTemplate removeBuildDefinitionFromTemplate(BuildDefinitionTemplate buildDefinitionTemplate,
                                                          BuildDefinition buildDefinition)
                                                          throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

getDefaultAntBuildDefinitionTemplate

BuildDefinitionTemplate getDefaultAntBuildDefinitionTemplate()
                                                             throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

getDefaultMavenOneBuildDefinitionTemplate

BuildDefinitionTemplate getDefaultMavenOneBuildDefinitionTemplate()
                                                                  throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

getDefaultMavenTwoBuildDefinitionTemplate

BuildDefinitionTemplate getDefaultMavenTwoBuildDefinitionTemplate()
                                                                  throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

getDefaultShellBuildDefinitionTemplate

BuildDefinitionTemplate getDefaultShellBuildDefinitionTemplate()
                                                               throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

getContinuumDefaultWithType

BuildDefinitionTemplate getContinuumDefaultWithType(String type)
                                                    throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

getBuildDefinitionTemplatesWithType

List<BuildDefinitionTemplate> getBuildDefinitionTemplatesWithType(String type)
                                                                  throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException

addBuildDefinitionTemplateToProjectGroup

ProjectGroup addBuildDefinitionTemplateToProjectGroup(int projectGroupId,
                                                      BuildDefinitionTemplate buildDefinitionTemplate)
                                                      throws BuildDefinitionServiceException,
                                                             ContinuumObjectNotFoundException
Throws:
BuildDefinitionServiceException
ContinuumObjectNotFoundException

getContinuumBuildDefinitionTemplates

List<BuildDefinitionTemplate> getContinuumBuildDefinitionTemplates()
                                                                   throws BuildDefinitionServiceException
Throws:
BuildDefinitionServiceException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.