1 package org.apache.continuum.dao;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.continuum.model.project.BuildDefinitionTemplate;
23 import org.apache.maven.continuum.store.ContinuumStoreException;
24
25 import java.util.List;
26
27
28
29
30
31 public interface BuildDefinitionTemplateDao
32 {
33 List<BuildDefinitionTemplate> getAllBuildDefinitionTemplate()
34 throws ContinuumStoreException;
35
36 BuildDefinitionTemplate getBuildDefinitionTemplate( int id )
37 throws ContinuumStoreException;
38
39 BuildDefinitionTemplate addBuildDefinitionTemplate( BuildDefinitionTemplate buildDefinitionTemplate )
40 throws ContinuumStoreException;
41
42 BuildDefinitionTemplate updateBuildDefinitionTemplate( BuildDefinitionTemplate buildDefinitionTemplate )
43 throws ContinuumStoreException;
44
45 void removeBuildDefinitionTemplate( BuildDefinitionTemplate buildDefinitionTemplate )
46 throws ContinuumStoreException;
47
48 public List<BuildDefinitionTemplate> getBuildDefinitionTemplatesWithType( String type )
49 throws ContinuumStoreException;
50
51 public List<BuildDefinitionTemplate> getContinuumBuildDefinitionTemplates()
52 throws ContinuumStoreException;
53
54
55
56
57
58
59 BuildDefinitionTemplate getContinuumBuildDefinitionTemplateWithType( String type )
60 throws ContinuumStoreException;
61
62
63
64
65
66
67
68 List<BuildDefinitionTemplate> getContinuumDefaultdDefinitions()
69 throws ContinuumStoreException;
70 }