1 20 21 package org.apache.directory.ldapstudio.browser.core.model; 22 23 24 import java.io.Serializable ; 25 26 27 34 public class ConnectionParameter implements Serializable 35 { 36 37 38 private static final long serialVersionUID = 3679909600732887964L; 39 40 41 private String name; 42 43 44 private String host; 45 46 47 private int encryptionMethod; 48 49 50 private int port; 51 52 53 private boolean fetchBaseDNs; 54 55 56 private DN baseDN; 57 58 59 private int timeLimit; 60 61 62 private int countLimit; 63 64 65 private int aliasesDereferencingMethod; 66 67 68 private int referralsHandlingMethod; 69 70 71 private int authMethod; 72 73 74 private String bindPrincipal; 75 76 77 private String bindPassword; 78 79 80 private String connectionProviderClassName; 81 82 83 86 public ConnectionParameter() 87 { 88 } 89 90 91 96 public DN getBaseDN() 97 { 98 return baseDN; 99 } 100 101 102 107 public void setBaseDN( DN baseDN ) 108 { 109 this.baseDN = baseDN; 110 } 111 112 113 118 public int getCountLimit() 119 { 120 return countLimit; 121 } 122 123 124 129 public void setCountLimit( int countLimit ) 130 { 131 this.countLimit = countLimit; 132 } 133 134 135 140 public String getHost() 141 { 142 return host; 143 } 144 145 146 151 public void setHost( String host ) 152 { 153 this.host = host; 154 } 155 156 157 162 public String getName() 163 { 164 return name; 165 } 166 167 168 173 public void setName( String name ) 174 { 175 this.name = name; 176 } 177 178 179 184 public int getPort() 185 { 186 return port; 187 } 188 189 190 195 public void setPort( int port ) 196 { 197 this.port = port; 198 } 199 200 201 206 public int getTimeLimit() 207 { 208 return timeLimit; 209 } 210 211 212 217 public void setTimeLimit( int timeLimit ) 218 { 219 this.timeLimit = timeLimit; 220 } 221 222 223 230 public boolean isFetchBaseDNs() 231 { 232 return fetchBaseDNs; 233 } 234 235 236 243 public void setFetchBaseDNs( boolean fetchBaseDNs ) 244 { 245 this.fetchBaseDNs = fetchBaseDNs; 246 } 247 248 249 256 public void setBindDN( DN bindDN ) 257 { 258 this.setBindPrincipal( bindDN.toString() ); 259 } 260 261 262 267 public String getBindPrincipal() 268 { 269 return bindPrincipal; 270 } 271 272 273 278 public void setBindPrincipal( String bindPrincipal ) 279 { 280 this.bindPrincipal = bindPrincipal; 281 } 282 283 284 289 public String getBindPassword() 290 { 291 return bindPassword; 292 } 293 294 295 300 public void setBindPassword( String bindPassword ) 301 { 302 this.bindPassword = bindPassword; 303 } 304 305 306 312 public int getAuthMethod() 313 { 314 return authMethod; 315 } 316 317 318 324 public void setAuthMethod( int authMethod ) 325 { 326 this.authMethod = authMethod; 327 } 328 329 330 335 public String getConnectionProviderClassName() 336 { 337 return connectionProviderClassName; 338 } 339 340 341 346 public void setConnectionProviderClassName( String connectionProviderClassName ) 347 { 348 this.connectionProviderClassName = connectionProviderClassName; 349 } 350 351 352 358 public int getEncryptionMethod() 359 { 360 return encryptionMethod; 361 } 362 363 364 370 public void setEncryptionMethod( int encryptionMethod ) 371 { 372 this.encryptionMethod = encryptionMethod; 373 } 374 375 376 383 public int getAliasesDereferencingMethod() 384 { 385 return aliasesDereferencingMethod; 386 } 387 388 389 396 public void setAliasesDereferencingMethod( int aliasesDereferencingMethod ) 397 { 398 this.aliasesDereferencingMethod = aliasesDereferencingMethod; 399 } 400 401 402 408 public int getReferralsHandlingMethod() 409 { 410 return referralsHandlingMethod; 411 } 412 413 414 420 public void setReferralsHandlingMethod( int referralsHandlingMethod ) 421 { 422 this.referralsHandlingMethod = referralsHandlingMethod; 423 } 424 425 } 426 | Popular Tags |