/** * {@inheritDoc} */ @Override public TagSearchEngine getTagSearchEngine() { if ( isTagSearchSupported() ) { return ( ( TaggableSearchableChangeLogStore ) store ).getTagSearchEngine(); } throw new UnsupportedOperationException( I18n.err( I18n.ERR_238 ) ); }
/** * 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; }
String clSuffix = ( ( TaggableSearchableChangeLogStore ) changeLog.getChangeLogStore() ).getPartition() .getSuffixDn().getName(); partitionNexus.getRootDse( null ).add( SchemaConstants.CHANGELOG_CONTEXT_AT, clSuffix );