View Javadoc
1   /*
2    Licensed to the Apache Software Foundation (ASF) under one
3    or more contributor license agreements.  See the NOTICE file
4    distributed with this work for additional information
5    regarding copyright ownership.  The ASF licenses this file
6    to you under the Apache License, Version 2.0 (the
7    "License"); you may not use this file except in compliance
8    with the License.  You may obtain a copy of the License at
9    
10       http://www.apache.org/licenses/LICENSE-2.0
11   
12   Unless required by applicable law or agreed to in writing,
13   software distributed under the License is distributed on an
14   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   KIND, either express or implied.  See the License for the
16   specific language governing permissions and limitations
17   under the License.
18   =================== DO NOT EDIT THIS FILE ====================
19   Generated by Modello 2.4.0,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.settings;
25  
26  /**
27   * 
28   *         
29   *         The <code>&lt;server&gt;</code> element contains
30   * informations required to a server settings.
31   *         
32   * 
33   * @version $Revision$ $Date$
34   */
35  @SuppressWarnings( "all" )
36  public class Server
37      extends IdentifiableBase
38      implements java.io.Serializable, java.lang.Cloneable
39  {
40  
41        //--------------------------/
42       //- Class/Member Variables -/
43      //--------------------------/
44  
45      /**
46       * 
47       *             
48       *             The username used to authenticate.
49       *             
50       *           
51       */
52      private String username;
53  
54      /**
55       * 
56       *             
57       *             The password used in conjunction with the
58       * username to authenticate.
59       *             
60       *           
61       */
62      private String password;
63  
64      /**
65       * 
66       *             
67       *             The private key location used to authenticate.
68       *             
69       *           
70       */
71      private String privateKey;
72  
73      /**
74       * 
75       *             
76       *             The passphrase used in conjunction with the
77       * privateKey to authenticate.
78       *             
79       *           
80       */
81      private String passphrase;
82  
83      /**
84       * 
85       *             
86       *             The permissions for files when they are created.
87       *             
88       *           
89       */
90      private String filePermissions;
91  
92      /**
93       * 
94       *             
95       *             The permissions for directories when they are
96       * created.
97       *             
98       *           
99       */
100     private String directoryPermissions;
101 
102     /**
103      * 
104      *             
105      *             Extra configuration for the transport layer.
106      *             
107      *           
108      */
109     private Object configuration;
110 
111 
112       //-----------/
113      //- Methods -/
114     //-----------/
115 
116     /**
117      * Method clone.
118      * 
119      * @return Server
120      */
121     public Server clone()
122     {
123         try
124         {
125             Server copy = (Server) super.clone();
126 
127             if ( this.configuration != null )
128             {
129                 copy.configuration = new org.codehaus.plexus.util.xml.Xpp3Dom( (org.codehaus.plexus.util.xml.Xpp3Dom) this.configuration );
130             }
131 
132             return copy;
133         }
134         catch ( java.lang.Exception ex )
135         {
136             throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
137                 + " does not support clone()" ).initCause( ex );
138         }
139     } //-- Server clone()
140 
141     /**
142      * Get extra configuration for the transport layer.
143      * 
144      * @return Object
145      */
146     public Object getConfiguration()
147     {
148         return this.configuration;
149     } //-- Object getConfiguration()
150 
151     /**
152      * Get the permissions for directories when they are created.
153      * 
154      * @return String
155      */
156     public String getDirectoryPermissions()
157     {
158         return this.directoryPermissions;
159     } //-- String getDirectoryPermissions()
160 
161     /**
162      * Get the permissions for files when they are created.
163      * 
164      * @return String
165      */
166     public String getFilePermissions()
167     {
168         return this.filePermissions;
169     } //-- String getFilePermissions()
170 
171     /**
172      * Get the passphrase used in conjunction with the privateKey
173      * to authenticate.
174      * 
175      * @return String
176      */
177     public String getPassphrase()
178     {
179         return this.passphrase;
180     } //-- String getPassphrase()
181 
182     /**
183      * Get the password used in conjunction with the username to
184      * authenticate.
185      * 
186      * @return String
187      */
188     public String getPassword()
189     {
190         return this.password;
191     } //-- String getPassword()
192 
193     /**
194      * Get the private key location used to authenticate.
195      * 
196      * @return String
197      */
198     public String getPrivateKey()
199     {
200         return this.privateKey;
201     } //-- String getPrivateKey()
202 
203     /**
204      * Get the username used to authenticate.
205      * 
206      * @return String
207      */
208     public String getUsername()
209     {
210         return this.username;
211     } //-- String getUsername()
212 
213     /**
214      * Set extra configuration for the transport layer.
215      * 
216      * @param configuration a configuration object.
217      */
218     public void setConfiguration( Object configuration )
219     {
220         this.configuration = configuration;
221     } //-- void setConfiguration( Object )
222 
223     /**
224      * Set the permissions for directories when they are created.
225      * 
226      * @param directoryPermissions a directoryPermissions object.
227      */
228     public void setDirectoryPermissions( String directoryPermissions )
229     {
230         this.directoryPermissions = directoryPermissions;
231     } //-- void setDirectoryPermissions( String )
232 
233     /**
234      * Set the permissions for files when they are created.
235      * 
236      * @param filePermissions a filePermissions object.
237      */
238     public void setFilePermissions( String filePermissions )
239     {
240         this.filePermissions = filePermissions;
241     } //-- void setFilePermissions( String )
242 
243     /**
244      * Set the passphrase used in conjunction with the privateKey
245      * to authenticate.
246      * 
247      * @param passphrase a passphrase object.
248      */
249     public void setPassphrase( String passphrase )
250     {
251         this.passphrase = passphrase;
252     } //-- void setPassphrase( String )
253 
254     /**
255      * Set the password used in conjunction with the username to
256      * authenticate.
257      * 
258      * @param password a password object.
259      */
260     public void setPassword( String password )
261     {
262         this.password = password;
263     } //-- void setPassword( String )
264 
265     /**
266      * Set the private key location used to authenticate.
267      * 
268      * @param privateKey a privateKey object.
269      */
270     public void setPrivateKey( String privateKey )
271     {
272         this.privateKey = privateKey;
273     } //-- void setPrivateKey( String )
274 
275     /**
276      * Set the username used to authenticate.
277      * 
278      * @param username a username object.
279      */
280     public void setUsername( String username )
281     {
282         this.username = username;
283     } //-- void setUsername( String )
284 
285 }