View Javadoc

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