/** * {@inheritDoc} */ @Override protected void doInit() throws LdapException { if ( !initialized ) { // ----------------------------------------------------------------------- // Load apachemeta schema from within the ldap-schema Jar with all the // schema it depends on. This is a minimal mandatory set of schemas. // ----------------------------------------------------------------------- wrapped.setId( SCHEMA_ID ); wrapped.setSuffixDn( schemaDN ); wrapped.setSchemaManager( schemaManager ); try { wrapped.initialize(); synchronizer = new RegistrySynchronizerAdaptor( schemaManager ); } catch ( Exception e ) { LOG.error( I18n.err( I18n.ERR_90 ), e ); throw new RuntimeException( e ); } schemaModificationDN = new Dn( schemaManager, SchemaConstants.SCHEMA_MODIFICATIONS_DN ); } }
/** * Initialize the ChangeLog system. We will initialize the associated store. */ @Override public void init( DirectoryService service ) throws LdapException { if ( enabled ) { if ( store == null ) { // If no store has been defined, create an In Memory store store = new MemoryChangeLogStore(); } store.init( service ); if ( exposed && isTagSearchSupported() ) { TaggableSearchableChangeLogStore tmp = ( TaggableSearchableChangeLogStore ) store; tmp.createPartition( partitionSuffix, revContainerName, tagContainerName ); Partition partition = tmp.getPartition(); partition.initialize(); service.addPartition( partition ); } } // Flip the protection flag storeInitialized = true; }