View Javadoc

1   package org.apache.continuum.model.project;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  public class ProjectGroupSummary
23  {
24      private int projectGroupId;
25  
26      private int numberOfSuccesses;
27  
28      private int numberOfFailures;
29  
30      private int numberOfErrors;
31  
32      private int numberOfProjects;
33  
34      public ProjectGroupSummary()
35      {
36      }
37  
38      public ProjectGroupSummary( int projectGroupId )
39      {
40          this.projectGroupId = projectGroupId;
41      }
42  
43      public int getProjectGroupId()
44      {
45          return projectGroupId;
46      }
47  
48      public void setProjectGroupId( int projectGroupId )
49      {
50          this.projectGroupId = projectGroupId;
51      }
52  
53      public void setNumberOfSuccesses( int numberOfSuccesses )
54      {
55          this.numberOfSuccesses = numberOfSuccesses;
56      }
57  
58      public int getNumberOfSuccesses()
59      {
60          return numberOfSuccesses;
61      }
62  
63      public void setNumberOfFailures( int numberOfFailures )
64      {
65          this.numberOfFailures = numberOfFailures;
66      }
67  
68      public int getNumberOfFailures()
69      {
70          return numberOfFailures;
71      }
72  
73      public void setNumberOfErrors( int numberOfErrors )
74      {
75          this.numberOfErrors = numberOfErrors;
76      }
77  
78      public int getNumberOfErrors()
79      {
80          return numberOfErrors;
81      }
82  
83      public void setNumberOfProjects( int numberOfProjects )
84      {
85          this.numberOfProjects = numberOfProjects;
86      }
87  
88      public int getNumberOfProjects()
89      {
90          return numberOfProjects;
91      }
92  
93      public void addProjects( int projects )
94      {
95          this.numberOfProjects += projects;
96      }
97  
98      public void addNumberOfSuccesses( int numberOfSuccesses )
99      {
100         this.numberOfSuccesses += numberOfSuccesses;
101     }
102 
103     public void addNumberOfErrors( int numberOfErrors )
104     {
105         this.numberOfErrors += numberOfErrors;
106     }
107 
108     public void addNumberOfFailures( int numberOfFailures )
109     {
110         this.numberOfFailures += numberOfFailures;
111     }
112 }