| | |
| | | |
| | | baseDN.getDocument().addDocumentListener(documentListener); |
| | | filter.getDocument().addDocumentListener(documentListener); |
| | | maxBlockSize.getDocument().addDocumentListener(documentListener); |
| | | baseDN.getDocument().addDocumentListener(documentListener); |
| | | } |
| | | |
| | |
| | | try |
| | | { |
| | | return !index.getBaseDN().equals(DN.valueOf(getBaseDN())) || !index.getScope().equals(getScope()) |
| | | || !index.getFilter().equals(filter.getText().trim()) || !index.getSortOrder().equals(getSortOrder()) |
| | | || !Integer.toString(index.getMaxBlockSize()).equals(maxBlockSize.getText().trim()); |
| | | || !index.getFilter().equals(filter.getText().trim()) || !index.getSortOrder().equals(getSortOrder()); |
| | | } |
| | | catch (final OpenDsException odse) |
| | | { |
| | |
| | | private final String sortOrderStringValue; |
| | | private final String ldif; |
| | | private final VLVIndexDescriptor indexToModify; |
| | | private final int maxBlock; |
| | | private VLVIndexDescriptor modifiedIndex; |
| | | |
| | | /** |
| | |
| | | searchScope = getScope(); |
| | | sortOrderStringValue = getSortOrderStringValue(sortOrder); |
| | | ldif = getIndexLDIF(indexName); |
| | | maxBlock = Integer.parseInt(maxBlockSize.getText()); |
| | | indexToModify = index; |
| | | } |
| | | |
| | |
| | | try |
| | | { |
| | | updateConfiguration(); |
| | | modifiedIndex = |
| | | new VLVIndexDescriptor(indexName, indexToModify.getBackend(), DN.valueOf(baseDN), searchScope, filterValue, |
| | | sortOrder, maxBlock); |
| | | modifiedIndex = new VLVIndexDescriptor( |
| | | indexName, indexToModify.getBackend(), DN.valueOf(baseDN), searchScope, filterValue, sortOrder); |
| | | getInfo().registerModifiedIndex(modifiedIndex); |
| | | state = State.FINISHED_SUCCESSFULLY; |
| | | } |