View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.continuum.web.model;
9   
10  /**
11   * Class GroupSummary.
12   * 
13   * @version $Revision$ $Date$
14   */
15  @SuppressWarnings( "all" )
16  public class GroupSummary
17      implements java.io.Serializable
18  {
19  
20        //--------------------------/
21       //- Class/Member Variables -/
22      //--------------------------/
23  
24      /**
25       * internal continuum group id.
26       */
27      private int id = -1;
28  
29      /**
30       * name of the project group.
31       */
32      private String name;
33  
34      /**
35       * maven groupId of the project group.
36       */
37      private String groupId;
38  
39      /**
40       * description of the project group.
41       */
42      private String description;
43  
44      /**
45       * the number of projects in the project group.
46       */
47      private int numProjects = 0;
48  
49      /**
50       * the type of project, maven2/maven1/ant/shell.
51       */
52      private String projectType;
53  
54      /**
55       * a status message like, (building project X).
56       */
57      private String statusMessage;
58  
59      /**
60       * timestamp for the next scheduled build.
61       */
62      private String nextScheduledBuild;
63  
64      /**
65       * Field projects.
66       */
67      private java.util.List<ProjectSummary> projects;
68  
69      /**
70       * number of successful builds in the project group.
71       */
72      private int numSuccesses = 0;
73  
74      /**
75       * number of failed builds in the project group.
76       */
77      private int numFailures = 0;
78  
79      /**
80       * number of errored builds in the project group.
81       */
82      private int numErrors = 0;
83  
84      /**
85       * local repository id of the project group.
86       */
87      private int repositoryId = -1;
88  
89      /**
90       * local repository name of the project group.
91       */
92      private String repositoryName;
93  
94  
95        //-----------/
96       //- Methods -/
97      //-----------/
98  
99      /**
100      * Method addProject.
101      * 
102      * @param projectSummary
103      */
104     public void addProject( ProjectSummary projectSummary )
105     {
106         getProjects().add( projectSummary );
107     } //-- void addProject( ProjectSummary )
108 
109     /**
110      * Get description of the project group.
111      * 
112      * @return String
113      */
114     public String getDescription()
115     {
116         return this.description;
117     } //-- String getDescription()
118 
119     /**
120      * Get maven groupId of the project group.
121      * 
122      * @return String
123      */
124     public String getGroupId()
125     {
126         return this.groupId;
127     } //-- String getGroupId()
128 
129     /**
130      * Get internal continuum group id.
131      * 
132      * @return int
133      */
134     public int getId()
135     {
136         return this.id;
137     } //-- int getId()
138 
139     /**
140      * Get name of the project group.
141      * 
142      * @return String
143      */
144     public String getName()
145     {
146         return this.name;
147     } //-- String getName()
148 
149     /**
150      * Get timestamp for the next scheduled build.
151      * 
152      * @return String
153      */
154     public String getNextScheduledBuild()
155     {
156         return this.nextScheduledBuild;
157     } //-- String getNextScheduledBuild()
158 
159     /**
160      * Get number of errored builds in the project group.
161      * 
162      * @return int
163      */
164     public int getNumErrors()
165     {
166         return this.numErrors;
167     } //-- int getNumErrors()
168 
169     /**
170      * Get number of failed builds in the project group.
171      * 
172      * @return int
173      */
174     public int getNumFailures()
175     {
176         return this.numFailures;
177     } //-- int getNumFailures()
178 
179     /**
180      * Get the number of projects in the project group.
181      * 
182      * @return int
183      */
184     public int getNumProjects()
185     {
186         return this.numProjects;
187     } //-- int getNumProjects()
188 
189     /**
190      * Get number of successful builds in the project group.
191      * 
192      * @return int
193      */
194     public int getNumSuccesses()
195     {
196         return this.numSuccesses;
197     } //-- int getNumSuccesses()
198 
199     /**
200      * Get the type of project, maven2/maven1/ant/shell.
201      * 
202      * @return String
203      */
204     public String getProjectType()
205     {
206         return this.projectType;
207     } //-- String getProjectType()
208 
209     /**
210      * Method getProjects.
211      * 
212      * @return List
213      */
214     public java.util.List<ProjectSummary> getProjects()
215     {
216         if ( this.projects == null )
217         {
218             this.projects = new java.util.ArrayList<ProjectSummary>();
219         }
220 
221         return this.projects;
222     } //-- java.util.List<ProjectSummary> getProjects()
223 
224     /**
225      * Get local repository id of the project group.
226      * 
227      * @return int
228      */
229     public int getRepositoryId()
230     {
231         return this.repositoryId;
232     } //-- int getRepositoryId()
233 
234     /**
235      * Get local repository name of the project group.
236      * 
237      * @return String
238      */
239     public String getRepositoryName()
240     {
241         return this.repositoryName;
242     } //-- String getRepositoryName()
243 
244     /**
245      * Get a status message like, (building project X).
246      * 
247      * @return String
248      */
249     public String getStatusMessage()
250     {
251         return this.statusMessage;
252     } //-- String getStatusMessage()
253 
254     /**
255      * Method removeProject.
256      * 
257      * @param projectSummary
258      */
259     public void removeProject( ProjectSummary projectSummary )
260     {
261         getProjects().remove( projectSummary );
262     } //-- void removeProject( ProjectSummary )
263 
264     /**
265      * Set description of the project group.
266      * 
267      * @param description
268      */
269     public void setDescription( String description )
270     {
271         this.description = description;
272     } //-- void setDescription( String )
273 
274     /**
275      * Set maven groupId of the project group.
276      * 
277      * @param groupId
278      */
279     public void setGroupId( String groupId )
280     {
281         this.groupId = groupId;
282     } //-- void setGroupId( String )
283 
284     /**
285      * Set internal continuum group id.
286      * 
287      * @param id
288      */
289     public void setId( int id )
290     {
291         this.id = id;
292     } //-- void setId( int )
293 
294     /**
295      * Set name of the project group.
296      * 
297      * @param name
298      */
299     public void setName( String name )
300     {
301         this.name = name;
302     } //-- void setName( String )
303 
304     /**
305      * Set timestamp for the next scheduled build.
306      * 
307      * @param nextScheduledBuild
308      */
309     public void setNextScheduledBuild( String nextScheduledBuild )
310     {
311         this.nextScheduledBuild = nextScheduledBuild;
312     } //-- void setNextScheduledBuild( String )
313 
314     /**
315      * Set number of errored builds in the project group.
316      * 
317      * @param numErrors
318      */
319     public void setNumErrors( int numErrors )
320     {
321         this.numErrors = numErrors;
322     } //-- void setNumErrors( int )
323 
324     /**
325      * Set number of failed builds in the project group.
326      * 
327      * @param numFailures
328      */
329     public void setNumFailures( int numFailures )
330     {
331         this.numFailures = numFailures;
332     } //-- void setNumFailures( int )
333 
334     /**
335      * Set the number of projects in the project group.
336      * 
337      * @param numProjects
338      */
339     public void setNumProjects( int numProjects )
340     {
341         this.numProjects = numProjects;
342     } //-- void setNumProjects( int )
343 
344     /**
345      * Set number of successful builds in the project group.
346      * 
347      * @param numSuccesses
348      */
349     public void setNumSuccesses( int numSuccesses )
350     {
351         this.numSuccesses = numSuccesses;
352     } //-- void setNumSuccesses( int )
353 
354     /**
355      * Set the type of project, maven2/maven1/ant/shell.
356      * 
357      * @param projectType
358      */
359     public void setProjectType( String projectType )
360     {
361         this.projectType = projectType;
362     } //-- void setProjectType( String )
363 
364     /**
365      * Set the projects field.
366      * 
367      * @param projects
368      */
369     public void setProjects( java.util.List<ProjectSummary> projects )
370     {
371         this.projects = projects;
372     } //-- void setProjects( java.util.List )
373 
374     /**
375      * Set local repository id of the project group.
376      * 
377      * @param repositoryId
378      */
379     public void setRepositoryId( int repositoryId )
380     {
381         this.repositoryId = repositoryId;
382     } //-- void setRepositoryId( int )
383 
384     /**
385      * Set local repository name of the project group.
386      * 
387      * @param repositoryName
388      */
389     public void setRepositoryName( String repositoryName )
390     {
391         this.repositoryName = repositoryName;
392     } //-- void setRepositoryName( String )
393 
394     /**
395      * Set a status message like, (building project X).
396      * 
397      * @param statusMessage
398      */
399     public void setStatusMessage( String statusMessage )
400     {
401         this.statusMessage = statusMessage;
402     } //-- void setStatusMessage( String )
403 
404 }