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