org.apache.maven.continuum.builddefinition
Class DefaultBuildDefinitionService
java.lang.Object
org.apache.maven.continuum.builddefinition.DefaultBuildDefinitionService
- All Implemented Interfaces:
- BuildDefinitionService, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
public class DefaultBuildDefinitionService
- extends Object
- implements BuildDefinitionService, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
- Since:
- 15 sept. 07
- Version:
- $Id: DefaultBuildDefinitionService.java 1372267 2012-08-13 05:47:30Z brett $
- Author:
- olamy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBuildDefinitionService
public DefaultBuildDefinitionService()
initialize
public void initialize()
throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
- Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
- Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
getBuildDefinition
public BuildDefinition getBuildDefinition(int buildDefinitionId)
throws BuildDefinitionServiceException
- Specified by:
getBuildDefinition in interface BuildDefinitionService
- Returns:
- null if not in store
- Throws:
BuildDefinitionServiceException
addBuildDefinition
public BuildDefinition addBuildDefinition(BuildDefinition buildDefinition)
throws BuildDefinitionServiceException
- Specified by:
addBuildDefinition in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
removeBuildDefinition
public void removeBuildDefinition(BuildDefinition buildDefinition)
throws BuildDefinitionServiceException
- Specified by:
removeBuildDefinition in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
updateBuildDefinition
public void updateBuildDefinition(BuildDefinition buildDefinition)
throws BuildDefinitionServiceException
- Specified by:
updateBuildDefinition in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
getAllBuildDefinitions
public List<BuildDefinition> getAllBuildDefinitions()
throws BuildDefinitionServiceException
- Specified by:
getAllBuildDefinitions in interface BuildDefinitionService
- Returns:
- List all build defintions
- Throws:
BuildDefinitionServiceException
getAllTemplates
public List<BuildDefinition> getAllTemplates()
throws BuildDefinitionServiceException
- Specified by:
getAllTemplates in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
cloneBuildDefinition
public BuildDefinition cloneBuildDefinition(BuildDefinition buildDefinition)
- Specified by:
cloneBuildDefinition in interface BuildDefinitionService
- Returns:
- clone of
BuildDefinition template/continuumDefault set to false - See Also:
BuildDefinitionService.cloneBuildDefinition(org.apache.maven.continuum.model.project.BuildDefinition)
getContinuumDefaultWithType
public BuildDefinitionTemplate getContinuumDefaultWithType(String type)
throws BuildDefinitionServiceException
- Specified by:
getContinuumDefaultWithType in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
getDefaultAntBuildDefinitionTemplate
public BuildDefinitionTemplate getDefaultAntBuildDefinitionTemplate()
throws BuildDefinitionServiceException
- Specified by:
getDefaultAntBuildDefinitionTemplate in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
getDefaultMavenOneBuildDefinitionTemplate
public BuildDefinitionTemplate getDefaultMavenOneBuildDefinitionTemplate()
throws BuildDefinitionServiceException
- Specified by:
getDefaultMavenOneBuildDefinitionTemplate in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
getDefaultMavenTwoBuildDefinitionTemplate
public BuildDefinitionTemplate getDefaultMavenTwoBuildDefinitionTemplate()
throws BuildDefinitionServiceException
- Specified by:
getDefaultMavenTwoBuildDefinitionTemplate in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
getDefaultShellBuildDefinitionTemplate
public BuildDefinitionTemplate getDefaultShellBuildDefinitionTemplate()
throws BuildDefinitionServiceException
- Specified by:
getDefaultShellBuildDefinitionTemplate in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
getAllBuildDefinitionTemplate
public List<BuildDefinitionTemplate> getAllBuildDefinitionTemplate()
throws BuildDefinitionServiceException
- Specified by:
getAllBuildDefinitionTemplate in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
getBuildDefinitionTemplate
public BuildDefinitionTemplate getBuildDefinitionTemplate(int id)
throws BuildDefinitionServiceException
- Specified by:
getBuildDefinitionTemplate in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
removeBuildDefinitionTemplate
public void removeBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
throws BuildDefinitionServiceException
- Specified by:
removeBuildDefinitionTemplate in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
updateBuildDefinitionTemplate
public BuildDefinitionTemplate updateBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
throws BuildDefinitionServiceException
- Specified by:
updateBuildDefinitionTemplate in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
addBuildDefinitionTemplate
public BuildDefinitionTemplate addBuildDefinitionTemplate(BuildDefinitionTemplate buildDefinitionTemplate)
throws BuildDefinitionServiceException
- Specified by:
addBuildDefinitionTemplate in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
addBuildDefinitionInTemplate
public BuildDefinitionTemplate addBuildDefinitionInTemplate(BuildDefinitionTemplate buildDefinitionTemplate,
BuildDefinition buildDefinition,
boolean template)
throws BuildDefinitionServiceException
- Specified by:
addBuildDefinitionInTemplate in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
removeBuildDefinitionFromTemplate
public BuildDefinitionTemplate removeBuildDefinitionFromTemplate(BuildDefinitionTemplate buildDefinitionTemplate,
BuildDefinition buildDefinition)
throws BuildDefinitionServiceException
- Specified by:
removeBuildDefinitionFromTemplate in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
addTemplateInProject
public void addTemplateInProject(int buildDefinitionTemplateId,
Project project)
throws BuildDefinitionServiceException
- Specified by:
addTemplateInProject in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
addBuildDefinitionTemplateToProjectGroup
public ProjectGroup addBuildDefinitionTemplateToProjectGroup(int projectGroupId,
BuildDefinitionTemplate template)
throws BuildDefinitionServiceException,
ContinuumObjectNotFoundException
- Specified by:
addBuildDefinitionTemplateToProjectGroup in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
ContinuumObjectNotFoundException
getBuildDefinitionTemplatesWithType
public List<BuildDefinitionTemplate> getBuildDefinitionTemplatesWithType(String type)
throws BuildDefinitionServiceException
- Specified by:
getBuildDefinitionTemplatesWithType in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
getContinuumBuildDefinitionTemplates
public List<BuildDefinitionTemplate> getContinuumBuildDefinitionTemplates()
throws BuildDefinitionServiceException
- Specified by:
getContinuumBuildDefinitionTemplates in interface BuildDefinitionService
- Throws:
BuildDefinitionServiceException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.