This project has retired. For details please refer to its Attic page.
LdapConfiguration xref
View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.7,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.archiva.configuration;
7   
8   /**
9    * 
10   *         The LDAP configuration.
11   *       
12   * 
13   * @version $Revision$ $Date$
14   */
15  @SuppressWarnings( "all" )
16  public class LdapConfiguration
17      implements java.io.Serializable
18  {
19  
20        //--------------------------/
21       //- Class/Member Variables -/
22      //--------------------------/
23  
24      /**
25       * The LDAP host.
26       */
27      private String hostName;
28  
29      /**
30       * The LDAP port.
31       */
32      private int port = 0;
33  
34      /**
35       * ssl LDAP connection.
36       */
37      private boolean ssl = false;
38  
39      /**
40       * The LDAP base dn.
41       */
42      private String baseDn;
43  
44      /**
45       * The LDAP base dn for groups (if empty baseDn is used).
46       */
47      private String baseGroupsDn;
48  
49      /**
50       * contextFactory to use.
51       */
52      private String contextFactory;
53  
54      /**
55       * The LDAP bind dn.
56       */
57      private String bindDn;
58  
59      /**
60       * The LDAP password.
61       */
62      private String password;
63  
64      /**
65       * The LDAP authenticationMethod.
66       */
67      private String authenticationMethod;
68  
69      /**
70       * The LDAP authenticator enabled.
71       */
72      private boolean bindAuthenticatorEnabled = false;
73  
74      /**
75       * LDAP writable.
76       */
77      private boolean writable = false;
78  
79      /**
80       * Will use role name as LDAP group.
81       */
82      private boolean useRoleNameAsGroup = false;
83  
84      /**
85       * Field extraProperties.
86       */
87      private java.util.Map extraProperties;
88  
89  
90        //-----------/
91       //- Methods -/
92      //-----------/
93  
94      /**
95       * Method addExtraProperty.
96       * 
97       * @param key
98       * @param value
99       */
100     public void addExtraProperty( Object key, String value )
101     {
102         getExtraProperties().put( key, value );
103     } //-- void addExtraProperty( Object, String )
104 
105     /**
106      * Get the LDAP authenticationMethod.
107      * 
108      * @return String
109      */
110     public String getAuthenticationMethod()
111     {
112         return this.authenticationMethod;
113     } //-- String getAuthenticationMethod()
114 
115     /**
116      * Get the LDAP base dn.
117      * 
118      * @return String
119      */
120     public String getBaseDn()
121     {
122         return this.baseDn;
123     } //-- String getBaseDn()
124 
125     /**
126      * Get the LDAP base dn for groups (if empty baseDn is used).
127      * 
128      * @return String
129      */
130     public String getBaseGroupsDn()
131     {
132         return this.baseGroupsDn;
133     } //-- String getBaseGroupsDn()
134 
135     /**
136      * Get the LDAP bind dn.
137      * 
138      * @return String
139      */
140     public String getBindDn()
141     {
142         return this.bindDn;
143     } //-- String getBindDn()
144 
145     /**
146      * Get contextFactory to use.
147      * 
148      * @return String
149      */
150     public String getContextFactory()
151     {
152         return this.contextFactory;
153     } //-- String getContextFactory()
154 
155     /**
156      * Method getExtraProperties.
157      * 
158      * @return Map
159      */
160     public java.util.Map getExtraProperties()
161     {
162         if ( this.extraProperties == null )
163         {
164             this.extraProperties = new java.util.HashMap();
165         }
166 
167         return this.extraProperties;
168     } //-- java.util.Map getExtraProperties()
169 
170     /**
171      * Get the LDAP host.
172      * 
173      * @return String
174      */
175     public String getHostName()
176     {
177         return this.hostName;
178     } //-- String getHostName()
179 
180     /**
181      * Get the LDAP password.
182      * 
183      * @return String
184      */
185     public String getPassword()
186     {
187         return this.password;
188     } //-- String getPassword()
189 
190     /**
191      * Get the LDAP port.
192      * 
193      * @return int
194      */
195     public int getPort()
196     {
197         return this.port;
198     } //-- int getPort()
199 
200     /**
201      * Get the LDAP authenticator enabled.
202      * 
203      * @return boolean
204      */
205     public boolean isBindAuthenticatorEnabled()
206     {
207         return this.bindAuthenticatorEnabled;
208     } //-- boolean isBindAuthenticatorEnabled()
209 
210     /**
211      * Get ssl LDAP connection.
212      * 
213      * @return boolean
214      */
215     public boolean isSsl()
216     {
217         return this.ssl;
218     } //-- boolean isSsl()
219 
220     /**
221      * Get will use role name as LDAP group.
222      * 
223      * @return boolean
224      */
225     public boolean isUseRoleNameAsGroup()
226     {
227         return this.useRoleNameAsGroup;
228     } //-- boolean isUseRoleNameAsGroup()
229 
230     /**
231      * Get lDAP writable.
232      * 
233      * @return boolean
234      */
235     public boolean isWritable()
236     {
237         return this.writable;
238     } //-- boolean isWritable()
239 
240     /**
241      * Set the LDAP authenticationMethod.
242      * 
243      * @param authenticationMethod
244      */
245     public void setAuthenticationMethod( String authenticationMethod )
246     {
247         this.authenticationMethod = authenticationMethod;
248     } //-- void setAuthenticationMethod( String )
249 
250     /**
251      * Set the LDAP base dn.
252      * 
253      * @param baseDn
254      */
255     public void setBaseDn( String baseDn )
256     {
257         this.baseDn = baseDn;
258     } //-- void setBaseDn( String )
259 
260     /**
261      * Set the LDAP base dn for groups (if empty baseDn is used).
262      * 
263      * @param baseGroupsDn
264      */
265     public void setBaseGroupsDn( String baseGroupsDn )
266     {
267         this.baseGroupsDn = baseGroupsDn;
268     } //-- void setBaseGroupsDn( String )
269 
270     /**
271      * Set the LDAP authenticator enabled.
272      * 
273      * @param bindAuthenticatorEnabled
274      */
275     public void setBindAuthenticatorEnabled( boolean bindAuthenticatorEnabled )
276     {
277         this.bindAuthenticatorEnabled = bindAuthenticatorEnabled;
278     } //-- void setBindAuthenticatorEnabled( boolean )
279 
280     /**
281      * Set the LDAP bind dn.
282      * 
283      * @param bindDn
284      */
285     public void setBindDn( String bindDn )
286     {
287         this.bindDn = bindDn;
288     } //-- void setBindDn( String )
289 
290     /**
291      * Set contextFactory to use.
292      * 
293      * @param contextFactory
294      */
295     public void setContextFactory( String contextFactory )
296     {
297         this.contextFactory = contextFactory;
298     } //-- void setContextFactory( String )
299 
300     /**
301      * Set additional properties to use for ldap connection.
302      * 
303      * @param extraProperties
304      */
305     public void setExtraProperties( java.util.Map extraProperties )
306     {
307         this.extraProperties = extraProperties;
308     } //-- void setExtraProperties( java.util.Map )
309 
310     /**
311      * Set the LDAP host.
312      * 
313      * @param hostName
314      */
315     public void setHostName( String hostName )
316     {
317         this.hostName = hostName;
318     } //-- void setHostName( String )
319 
320     /**
321      * Set the LDAP password.
322      * 
323      * @param password
324      */
325     public void setPassword( String password )
326     {
327         this.password = password;
328     } //-- void setPassword( String )
329 
330     /**
331      * Set the LDAP port.
332      * 
333      * @param port
334      */
335     public void setPort( int port )
336     {
337         this.port = port;
338     } //-- void setPort( int )
339 
340     /**
341      * Set ssl LDAP connection.
342      * 
343      * @param ssl
344      */
345     public void setSsl( boolean ssl )
346     {
347         this.ssl = ssl;
348     } //-- void setSsl( boolean )
349 
350     /**
351      * Set will use role name as LDAP group.
352      * 
353      * @param useRoleNameAsGroup
354      */
355     public void setUseRoleNameAsGroup( boolean useRoleNameAsGroup )
356     {
357         this.useRoleNameAsGroup = useRoleNameAsGroup;
358     } //-- void setUseRoleNameAsGroup( boolean )
359 
360     /**
361      * Set lDAP writable.
362      * 
363      * @param writable
364      */
365     public void setWritable( boolean writable )
366     {
367         this.writable = writable;
368     } //-- void setWritable( boolean )
369 
370 }