org.apache.continuum.dao
Interface BuildDefinitionDao

All Known Implementing Classes:
BuildDefinitionDaoImpl

public interface BuildDefinitionDao

Version:
$Id: BuildDefinitionDao.java 751594 2009-03-09 06:07:19Z evenisse $
Author:
Emmanuel Venisse

Method Summary
 BuildDefinition addBuildDefinition(BuildDefinition buildDefinition)
           
 List<BuildDefinition> getAllBuildDefinitions()
           
 List<BuildDefinition> getAllTemplates()
           
 BuildDefinition getBuildDefinition(int buildDefinitionId)
           
 List<BuildDefinition> getBuildDefinitionsBySchedule(int scheduleId)
           
 BuildDefinition getDefaultBuildDefinition(int projectId)
          returns the default build definition of the project, if the project doesn't have on declared the default of the project group will be returned

this should be the most common usage of the default build definition accessing methods

 BuildDefinition getDefaultBuildDefinitionForProject(int projectId)
          returns the default build definition of the project, if the project doesn't have on declared the default of the project group will be returned

this should be the most common usage of the default build definition accessing methods

 BuildDefinition getDefaultBuildDefinitionForProject(Project project)
          returns the default build definition for the project without consulting the project group
 Map<Integer,Integer> getDefaultBuildDefinitions()
          Returns the default build definition of all projects.
 List<BuildDefinition> getDefaultBuildDefinitionsForProjectGroup(int projectGroupId)
          returns the default build definitions for the project group and there should always be at least one declared.
 List<BuildDefinition> getDefaultBuildDefinitionsForProjectGroup(ProjectGroup projectGroup)
          returns the default build definitions for the project group and there should always be at least one declared.
 void removeBuildDefinition(BuildDefinition buildDefinition)
           
 BuildDefinition storeBuildDefinition(BuildDefinition buildDefinition)
           
 

Method Detail

getBuildDefinition

BuildDefinition getBuildDefinition(int buildDefinitionId)
                                   throws ContinuumStoreException
Throws:
ContinuumStoreException

removeBuildDefinition

void removeBuildDefinition(BuildDefinition buildDefinition)
                           throws ContinuumStoreException
Throws:
ContinuumStoreException

storeBuildDefinition

BuildDefinition storeBuildDefinition(BuildDefinition buildDefinition)
                                     throws ContinuumStoreException
Throws:
ContinuumStoreException

addBuildDefinition

BuildDefinition addBuildDefinition(BuildDefinition buildDefinition)
                                   throws ContinuumStoreException
Throws:
ContinuumStoreException

getAllBuildDefinitions

List<BuildDefinition> getAllBuildDefinitions()
                                             throws ContinuumStoreException
Throws:
ContinuumStoreException

getDefaultBuildDefinitions

Map<Integer,Integer> getDefaultBuildDefinitions()
Returns the default build definition of all projects. The key is the project id and the value is the build definition id.

Returns:
a map of all default build definitions

getDefaultBuildDefinitionsForProjectGroup

List<BuildDefinition> getDefaultBuildDefinitionsForProjectGroup(int projectGroupId)
                                                                throws ContinuumStoreException
returns the default build definitions for the project group and there should always be at least one declared.

Parameters:
projectGroupId - The project group id
Returns:
The list of default build definitions
Throws:
ContinuumStoreException - if the build definitions list can't be obtain

getDefaultBuildDefinitionsForProjectGroup

List<BuildDefinition> getDefaultBuildDefinitionsForProjectGroup(ProjectGroup projectGroup)
                                                                throws ContinuumStoreException
returns the default build definitions for the project group and there should always be at least one declared.

Parameters:
projectGroup - The project group
Returns:
The list of default build definitions
Throws:
ContinuumStoreException - if the build definitions list can't be obtain

getDefaultBuildDefinitionForProject

BuildDefinition getDefaultBuildDefinitionForProject(int projectId)
                                                    throws ContinuumStoreException
returns the default build definition of the project, if the project doesn't have on declared the default of the project group will be returned

this should be the most common usage of the default build definition accessing methods

Parameters:
projectId -
Returns:
Throws:
ContinuumStoreException
ContinuumObjectNotFoundException

getDefaultBuildDefinitionForProject

BuildDefinition getDefaultBuildDefinitionForProject(Project project)
                                                    throws ContinuumStoreException
returns the default build definition for the project without consulting the project group

Parameters:
project -
Returns:
Throws:
ContinuumStoreException
ContinuumObjectNotFoundException

getDefaultBuildDefinition

BuildDefinition getDefaultBuildDefinition(int projectId)
                                          throws ContinuumStoreException
returns the default build definition of the project, if the project doesn't have on declared the default of the project group will be returned

this should be the most common usage of the default build definition accessing methods

Parameters:
projectId -
Returns:
Throws:
ContinuumStoreException
ContinuumObjectNotFoundException

getAllTemplates

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

getBuildDefinitionsBySchedule

List<BuildDefinition> getBuildDefinitionsBySchedule(int scheduleId)


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