001    /*
002     =================== DO NOT EDIT THIS FILE ====================
003     Generated by Modello 1.4.1 on 2013-02-24 03:37:13,
004     any modifications will be overwritten.
005     ==============================================================
006     */
007    
008    package org.apache.maven.settings;
009    
010    /**
011     * 
012     *         
013     *         The <code>&lt;server&gt;</code> element contains
014     * informations required to a server settings.
015     *         
016     * 
017     * @version $Revision$ $Date$
018     */
019    @SuppressWarnings( "all" )
020    public class Server
021        extends IdentifiableBase
022        implements java.io.Serializable, java.lang.Cloneable
023    {
024    
025          //--------------------------/
026         //- Class/Member Variables -/
027        //--------------------------/
028    
029        /**
030         * 
031         *             
032         *             The username used to authenticate.
033         *             
034         *           
035         */
036        private String username;
037    
038        /**
039         * 
040         *             
041         *             The password used in conjunction with the
042         * username to authenticate.
043         *             
044         *           
045         */
046        private String password;
047    
048        /**
049         * 
050         *             
051         *             The private key location used to authenticate.
052         *             
053         *           
054         */
055        private String privateKey;
056    
057        /**
058         * 
059         *             
060         *             The passphrase used in conjunction with the
061         * privateKey to authenticate.
062         *             
063         *           
064         */
065        private String passphrase;
066    
067        /**
068         * 
069         *             
070         *             The permissions for files when they are created.
071         *             
072         *           
073         */
074        private String filePermissions;
075    
076        /**
077         * 
078         *             
079         *             The permissions for directories when they are
080         * created.
081         *             
082         *           
083         */
084        private String directoryPermissions;
085    
086        /**
087         * 
088         *             
089         *             Extra configuration for the transport layer.
090         *             
091         *           
092         */
093        private Object configuration;
094    
095    
096          //-----------/
097         //- Methods -/
098        //-----------/
099    
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    }