| | |
| | | private Storage storage; |
| | | |
| | | /** The controls supported by this backend. */ |
| | | private static final Set<String> supportedControls = new HashSet<String>(Arrays.asList( |
| | | private static final Set<String> supportedControls = new HashSet<>(Arrays.asList( |
| | | OID_SUBTREE_DELETE_CONTROL, |
| | | OID_PAGED_RESULTS_CONTROL, |
| | | OID_MANAGE_DSAIT_CONTROL, |
| | |
| | | @Override |
| | | public void configureBackend(C cfg, ServerContext serverContext) throws ConfigException |
| | | { |
| | | Reject.ifNull(cfg); |
| | | Reject.ifNull(cfg, "cfg must not be null"); |
| | | |
| | | this.cfg = cfg; |
| | | baseDNs = this.cfg.getBaseDN().toArray(new DN[0]); |
| | |
| | | throws ConfigException, InitializationException { |
| | | // Open the storage |
| | | try { |
| | | RootContainer rc = new RootContainer(this, cfg); |
| | | final RootContainer rc = new RootContainer(getBackendID(), storage, cfg); |
| | | rc.open(); |
| | | return rc; |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | Storage getStorage() |
| | | { |
| | | return storage; |
| | | } |
| | | } |