| | |
| | | import java.awt.event.ActionListener; |
| | | import java.awt.event.ItemEvent; |
| | | import java.awt.event.ItemListener; |
| | | import java.io.IOException; |
| | | import java.io.File; |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.LinkedHashSet; |
| | |
| | | final List<VLVSortOrder> sortOrder) throws OpenDsException |
| | | { |
| | | getInfo().initializeConfigurationFramework(); |
| | | try |
| | | final File configFile = Installation.getLocal().getCurrentConfigurationFile(); |
| | | final LDAPProfile ldapProfile = LDAPProfile.getInstance(); |
| | | try (ManagementContext context = LDAPManagementContext.newLDIFManagementContext(configFile, ldapProfile)) |
| | | { |
| | | final List<IOException> exceptions = new ArrayList<>(); |
| | | final ManagementContext context = LDAPManagementContext.newLDIFManagementContext( |
| | | Installation.getLocal().getCurrentConfigurationFile(), LDAPProfile.getInstance(), exceptions); |
| | | final BackendCfgClient backend = context.getRootConfiguration().getBackend(backendName); |
| | | if (backend instanceof LocalDBBackendCfgClient) |
| | | { |
| | |
| | | updateVLVBackendIndexOnline((PluggableBackendCfgClient) backend, vlvIndexName, indexToModify, baseDN, filter, |
| | | searchScope, sortOrder); |
| | | } |
| | | context.close(); |
| | | Utilities.throwFirstFrom(exceptions); |
| | | } |
| | | catch (final Exception e) |
| | | { |