001// =================== DO NOT EDIT THIS FILE ==================== 002// Generated by Modello 1.7, 003// any modifications will be overwritten. 004// ============================================================== 005 006package org.apache.archiva.configuration; 007 008/** 009 * 010 * The LDAP configuration. 011 * 012 * 013 * @version $Revision$ $Date$ 014 */ 015@SuppressWarnings( "all" ) 016public class LdapConfiguration 017 implements java.io.Serializable 018{ 019 020 //--------------------------/ 021 //- Class/Member Variables -/ 022 //--------------------------/ 023 024 /** 025 * The LDAP host. 026 */ 027 private String hostName; 028 029 /** 030 * The LDAP port. 031 */ 032 private int port = 0; 033 034 /** 035 * ssl LDAP connection. 036 */ 037 private boolean ssl = false; 038 039 /** 040 * The LDAP base dn. 041 */ 042 private String baseDn; 043 044 /** 045 * The LDAP base dn for groups (if empty baseDn is used). 046 */ 047 private String baseGroupsDn; 048 049 /** 050 * contextFactory to use. 051 */ 052 private String contextFactory; 053 054 /** 055 * The LDAP bind dn. 056 */ 057 private String bindDn; 058 059 /** 060 * The LDAP password. 061 */ 062 private String password; 063 064 /** 065 * The LDAP authenticationMethod. 066 */ 067 private String authenticationMethod; 068 069 /** 070 * The LDAP authenticator enabled. 071 */ 072 private boolean bindAuthenticatorEnabled = false; 073 074 /** 075 * LDAP writable. 076 */ 077 private boolean writable = false; 078 079 /** 080 * Will use role name as LDAP group. 081 */ 082 private boolean useRoleNameAsGroup = false; 083 084 /** 085 * Field extraProperties. 086 */ 087 private java.util.Map extraProperties; 088 089 090 //-----------/ 091 //- Methods -/ 092 //-----------/ 093 094 /** 095 * Method addExtraProperty. 096 * 097 * @param key 098 * @param value 099 */ 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}