View Javadoc

1   package org.apache.maven.continuum.notification;
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  import org.apache.continuum.model.project.ProjectScmRoot;
23  import org.apache.maven.continuum.model.project.BuildDefinition;
24  import org.apache.maven.continuum.model.project.BuildResult;
25  import org.apache.maven.continuum.model.project.Project;
26  import org.apache.maven.continuum.model.project.ProjectNotifier;
27  
28  import java.util.List;
29  
30  /**
31   * @author <a href="mailto:evenisse@apache.org">Emmanuel Venisse</a>
32   * @version $Id: MessageContext.java 709300 2008-10-31 00:01:38Z ctan $
33   */
34  public class MessageContext
35  {
36      private Project project;
37  
38      private BuildDefinition buildDefinition;
39  
40      private List<ProjectNotifier> notifiers;
41  
42      private BuildResult buildResult;
43  
44      private ProjectScmRoot projectScmRoot;
45  
46      public Project getProject()
47      {
48          return project;
49      }
50  
51      public void setProject( Project project )
52      {
53          this.project = project;
54      }
55  
56      public BuildDefinition getBuildDefinition()
57      {
58          return buildDefinition;
59      }
60  
61      public void setBuildDefinition( BuildDefinition buildDefinition )
62      {
63          this.buildDefinition = buildDefinition;
64      }
65  
66      public List<ProjectNotifier> getNotifiers()
67      {
68          return notifiers;
69      }
70  
71      public void setNotifier( List<ProjectNotifier> notifiers )
72      {
73          this.notifiers = notifiers;
74      }
75  
76      public BuildResult getBuildResult()
77      {
78          return buildResult;
79      }
80  
81      public void setBuildResult( BuildResult buildResult )
82      {
83          this.buildResult = buildResult;
84      }
85  
86      public ProjectScmRoot getProjectScmRoot()
87      {
88          return projectScmRoot;
89      }
90  
91      public void setProjectScmRoot( ProjectScmRoot projectScmRoot )
92      {
93          this.projectScmRoot = projectScmRoot;
94      }
95  }