View Javadoc

1   package org.apache.continuum.taskqueue;
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 java.io.File;
23  
24  import org.codehaus.plexus.taskqueue.Task;
25  
26  /**
27   * @author <a href="mailto:trygvis@inamo.no">Trygve Laugst&oslash;l</a>
28   * @version $Id: CheckOutTask.java 918334 2010-03-03 06:29:26Z brett $
29   */
30  public class CheckOutTask
31      implements Task
32  {
33      private final int projectId;
34  
35      private final File workingDirectory;
36  
37      private final String projectName;
38  
39      private final String scmUserName;
40  
41      private final String scmPassword;
42  
43      public CheckOutTask( int projectId, File workingDirectory, String projectName, String scmUserName,
44                           String scmPassword )
45      {
46          this.projectId = projectId;
47  
48          this.workingDirectory = workingDirectory;
49  
50          this.projectName = projectName;
51  
52          this.scmUserName = scmUserName;
53  
54          this.scmPassword = scmPassword;
55      }
56  
57      public int getProjectId()
58      {
59          return projectId;
60      }
61  
62      public File getWorkingDirectory()
63      {
64          return workingDirectory;
65      }
66  
67      public long getMaxExecutionTime()
68      {
69          return 0;
70      }
71  
72      public String getProjectName()
73      {
74          return projectName;
75      }
76  
77  
78      public String getScmUserName()
79      {
80          return scmUserName;
81      }
82  
83      public String getScmPassword()
84      {
85          return scmPassword;
86      }
87  
88  
89      public int getHashCode()
90      {
91          return this.hashCode();
92      }
93  }