/** * Read the configuration for the ChangeLog system * * @param changeLogBean The Bean containing the ChangeLog configuration * @return The instantiated ChangeLog element */ public static ChangeLog createChangeLog( ChangeLogBean changeLogBean ) { if ( ( changeLogBean == null ) || changeLogBean.isDisabled() ) { return null; } ChangeLog changeLog = new DefaultChangeLog(); changeLog.setEnabled( changeLogBean.isEnabled() ); changeLog.setExposed( changeLogBean.isChangeLogExposed() ); return changeLog; }
directoryService.getChangeLog().setEnabled( true );
ds.setSystemPartition(systemPartition); ds.getChangeLog().setEnabled(false); ds.setDenormalizeOpAttrsEnabled(true); ds.addLast(new KeyDerivationInterceptor());
ds.setSystemPartition(systemPartition); ds.getChangeLog().setEnabled(false); ds.setDenormalizeOpAttrsEnabled(true); ds.addLast(new KeyDerivationInterceptor());
ds.setSystemPartition(systemPartition); ds.getChangeLog().setEnabled(false); ds.setDenormalizeOpAttrsEnabled(true); ds.addLast(new KeyDerivationInterceptor());
ds.setSystemPartition(systemPartition); ds.getChangeLog().setEnabled(false); ds.setDenormalizeOpAttrsEnabled(true); ds.addLast(new KeyDerivationInterceptor());
private ApacheDS startDirectoryService(String workDirStr) throws Exception { DefaultDirectoryServiceFactory factory = new DefaultDirectoryServiceFactory(); factory.init(realm); directoryService = factory.getDirectoryService(); directoryService.getChangeLog().setEnabled(false); directoryService.setShutdownHookEnabled(false); directoryService.setAllowAnonymousAccess(true); File workDir = new File(workDirStr); if (workDir.exists()) { FileUtils.deleteDirectory(workDir); } InstanceLayout instanceLayout = new InstanceLayout(workDir); directoryService.setInstanceLayout(instanceLayout); AvlPartition partition = new AvlPartition(directoryService.getSchemaManager()); partition.setId("Test"); partition.setSuffixDn(new Dn(directoryService.getSchemaManager(), baseDn)); partition.addIndexedAttributes( new AvlIndex<>("ou"), new AvlIndex<>("uid"), new AvlIndex<>("dc"), new AvlIndex<>("objectClass")); partition.initialize(); directoryService.addPartition(partition); directoryService.addLast(new KeyDerivationInterceptor()); directoryService.shutdown(); directoryService.startup(); return this; }
service.setAccessControlEnabled( dsBuilder.enableAccessControl() ); service.setAllowAnonymousAccess( dsBuilder.allowAnonAccess() ); service.getChangeLog().setEnabled( dsBuilder.enableChangeLog() );
service.getChangeLog().setEnabled(false);