1 20 package org.apache.directory.ldapstudio.apacheds.configuration.model; 21 22 23 import java.util.ArrayList ; 24 import java.util.List ; 25 26 27 33 public class ServerConfiguration 34 { 35 36 private String path; 37 38 39 private int port; 40 41 42 private String principal; 43 44 45 private String password; 46 47 48 private boolean allowAnonymousAccess; 49 50 51 private int maxTimeLimit; 52 53 54 private int maxSizeLimit; 55 56 57 private long synchronizationPeriod; 58 59 60 private int maxThreads; 61 62 63 private boolean enableAccessControl; 64 65 66 private boolean enableKerberos; 67 68 69 private boolean enableNTP; 70 71 72 private boolean enableChangePassword; 73 74 75 private boolean denormalizeOpAttr; 76 77 78 private List <String > binaryAttributes; 79 80 81 private List <Partition> partitions; 82 83 84 private List <Interceptor> interceptors; 85 86 87 private List <ExtendedOperation> extendedOperations; 88 89 90 93 public ServerConfiguration() 94 { 95 partitions = new ArrayList <Partition>(); 96 interceptors = new ArrayList <Interceptor>(); 97 extendedOperations = new ArrayList <ExtendedOperation>(); 98 binaryAttributes = new ArrayList <String >(); 99 } 100 101 102 108 public boolean isAllowAnonymousAccess() 109 { 110 return allowAnonymousAccess; 111 } 112 113 114 120 public void setAllowAnonymousAccess( boolean allowAnonymousAccess ) 121 { 122 this.allowAnonymousAccess = allowAnonymousAccess; 123 } 124 125 126 132 public boolean isEnableAccessControl() 133 { 134 return enableAccessControl; 135 } 136 137 138 144 public void setEnableAccessControl( boolean enableAccessControl ) 145 { 146 this.enableAccessControl = enableAccessControl; 147 } 148 149 150 156 public boolean isEnableChangePassword() 157 { 158 return enableChangePassword; 159 } 160 161 162 168 public void setEnableChangePassword( boolean enableChangePassword ) 169 { 170 this.enableChangePassword = enableChangePassword; 171 } 172 173 174 180 public boolean isEnableKerberos() 181 { 182 return enableKerberos; 183 } 184 185 186 192 public void setEnableKerberos( boolean enableKerberos ) 193 { 194 this.enableKerberos = enableKerberos; 195 } 196 197 198 204 public boolean isEnableNTP() 205 { 206 return enableNTP; 207 } 208 209 210 216 public void setEnableNTP( boolean enableNTP ) 217 { 218 this.enableNTP = enableNTP; 219 } 220 221 222 228 public List <ExtendedOperation> getExtendedOperations() 229 { 230 return extendedOperations; 231 } 232 233 234 240 public void setExtendedOperations( List <ExtendedOperation> extendedOperations ) 241 { 242 this.extendedOperations = extendedOperations; 243 } 244 245 246 254 public boolean addExtendedOperation( ExtendedOperation extendedOperation ) 255 { 256 return extendedOperations.add( extendedOperation ); 257 } 258 259 260 268 public boolean removeExtendedOperation( ExtendedOperation extendedOperation ) 269 { 270 return extendedOperations.remove( extendedOperation ); 271 } 272 273 274 277 public void clearExtendedOperations() 278 { 279 extendedOperations.clear(); 280 } 281 282 283 289 public List <Interceptor> getInterceptors() 290 { 291 return interceptors; 292 } 293 294 295 301 public void setInterceptors( List <Interceptor> interceptors ) 302 { 303 this.interceptors = interceptors; 304 } 305 306 307 315 public boolean addInterceptor( Interceptor interceptor ) 316 { 317 return interceptors.add( interceptor ); 318 } 319 320 321 329 public boolean removeInterceptor( Interceptor interceptor ) 330 { 331 return interceptors.remove( interceptor ); 332 } 333 334 335 338 public void clearInterceptors() 339 { 340 interceptors.clear(); 341 } 342 343 344 350 public int getMaxSizeLimit() 351 { 352 return maxSizeLimit; 353 } 354 355 356 362 public void setMaxSizeLimit( int maxSizeLimit ) 363 { 364 this.maxSizeLimit = maxSizeLimit; 365 } 366 367 368 374 public int getMaxThreads() 375 { 376 return maxThreads; 377 } 378 379 380 386 public void setMaxThreads( int maxThreads ) 387 { 388 this.maxThreads = maxThreads; 389 } 390 391 392 398 public int getMaxTimeLimit() 399 { 400 return maxTimeLimit; 401 } 402 403 404 410 public void setMaxTimeLimit( int maxTimeLimit ) 411 { 412 this.maxTimeLimit = maxTimeLimit; 413 } 414 415 416 422 public List <Partition> getPartitions() 423 { 424 return partitions; 425 } 426 427 428 434 public void setPartitions( List <Partition> partitions ) 435 { 436 this.partitions = partitions; 437 } 438 439 440 448 public boolean addPartition( Partition partition ) 449 { 450 return partitions.add( partition ); 451 } 452 453 454 462 public boolean removePartition( Partition partition ) 463 { 464 return partitions.remove( partition ); 465 } 466 467 468 471 public void clearPartitions() 472 { 473 partitions.clear(); 474 } 475 476 477 483 public String getPassword() 484 { 485 return password; 486 } 487 488 489 495 public void setPassword( String password ) 496 { 497 this.password = password; 498 } 499 500 501 507 public String getPath() 508 { 509 return path; 510 } 511 512 513 519 public void setPath( String path ) 520 { 521 this.path = path; 522 } 523 524 525 531 public int getPort() 532 { 533 return port; 534 } 535 536 537 543 public void setPort( int port ) 544 { 545 this.port = port; 546 } 547 548 549 555 public String getPrincipal() 556 { 557 return principal; 558 } 559 560 561 567 public void setPrincipal( String principal ) 568 { 569 this.principal = principal; 570 } 571 572 573 579 public long getSynchronizationPeriod() 580 { 581 return synchronizationPeriod; 582 } 583 584 585 591 public void setSynchronizationPeriod( long synchronizationPeriod ) 592 { 593 this.synchronizationPeriod = synchronizationPeriod; 594 } 595 596 597 603 public boolean isDenormalizeOpAttr() 604 { 605 return denormalizeOpAttr; 606 } 607 608 609 615 public void setDenormalizeOpAttr( boolean denormalizeOpAttr ) 616 { 617 this.denormalizeOpAttr = denormalizeOpAttr; 618 } 619 620 621 627 public List <String > getBinaryAttributes() 628 { 629 return binaryAttributes; 630 } 631 632 633 639 public void setBinaryAttributes( List <String > binaryAttributes ) 640 { 641 this.binaryAttributes = binaryAttributes; 642 } 643 644 645 653 public boolean addBinaryAttribute( String binaryAttribute ) 654 { 655 return binaryAttributes.add( binaryAttribute ); 656 } 657 658 659 667 public boolean removeBinaryAttribute( String binaryAttribute ) 668 { 669 return binaryAttributes.remove( binaryAttribute ); 670 } 671 672 673 676 public void clearBinaryAttributes() 677 { 678 binaryAttributes.clear(); 679 } 680 } 681 | Popular Tags |