| | |
| | | ConfigurationAddListener<BackendIndexCfg>, |
| | | ConfigurationDeleteListener<BackendIndexCfg> |
| | | { |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isConfigurationAddAcceptable(final BackendIndexCfg cfg, List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public ConfigChangeResult applyConfigurationAdd(final BackendIndexCfg cfg) |
| | | { |
| | |
| | | return ccr; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isConfigurationDeleteAcceptable( |
| | | BackendIndexCfg cfg, List<LocalizableMessage> unacceptableReasons) |
| | |
| | | return true; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public ConfigChangeResult applyConfigurationDelete(final BackendIndexCfg cfg) |
| | | { |
| | |
| | | ConfigurationAddListener<BackendVLVIndexCfg>, |
| | | ConfigurationDeleteListener<BackendVLVIndexCfg> |
| | | { |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isConfigurationAddAcceptable( |
| | | BackendVLVIndexCfg cfg, List<LocalizableMessage> unacceptableReasons) |
| | |
| | | return true; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public ConfigChangeResult applyConfigurationAdd(final BackendVLVIndexCfg cfg) |
| | | { |
| | |
| | | return ccr; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isConfigurationDeleteAcceptable(BackendVLVIndexCfg cfg, List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | return true; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public ConfigChangeResult applyConfigurationDelete(final BackendVLVIndexCfg cfg) |
| | | { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Look for an VLV index for the given index name. |
| | | * Look for a VLV index for the given index name. |
| | | * |
| | | * @param vlvIndexName The vlv index name for which an vlv index is needed. |
| | | * @return The VLV index or null if there is none with that name. |
| | |
| | | @Override |
| | | public Long run(ReadableTransaction txn) throws Exception |
| | | { |
| | | final int baseDnIfExists = dn2id.get(txn, baseDN) != null ? 1 : 0; |
| | | return id2childrenCount.getTotalCount(txn) + baseDnIfExists; |
| | | return getNumberOfEntriesInBaseDN0(txn); |
| | | } |
| | | }); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | long getNumberOfEntriesInBaseDN0(ReadableTransaction txn) |
| | | { |
| | | final int baseDnIfExists = dn2id.get(txn, baseDN) != null ? 1 : 0; |
| | | return id2childrenCount.getTotalCount(txn) + baseDnIfExists; |
| | | } |
| | | |
| | | /** |
| | | * Determine whether the provided operation has the ManageDsaIT request |
| | | * control. |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public DN getBaseDN() |
| | | { |
| | |
| | | return dn.parent(); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isConfigurationChangeAcceptable( |
| | | PluggableBackendCfg cfg, List<LocalizableMessage> unacceptableReasons) |
| | |
| | | return true; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public ConfigChangeResult applyConfigurationChange(final PluggableBackendCfg cfg) |
| | | { |
| | |
| | | exclusiveLock.unlock(); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public String toString() { |
| | | return treePrefix; |
| | | } |
| | | |
| | | } |