| | |
| | | /** |
| | | * Process this search operation against a local backend. |
| | | * |
| | | * @param backend The backend in which the search operation should be |
| | | * performed. |
| | | * |
| | | * @throws CanceledOperationException if this operation should be |
| | | * cancelled |
| | | * @param wfe |
| | | * The local backend work-flow element. |
| | | * @throws CanceledOperationException |
| | | * if this operation should be cancelled |
| | | */ |
| | | void processLocalSearch(Backend backend) throws CanceledOperationException { |
| | | void processLocalSearch(LocalBackendWorkflowElement wfe) |
| | | throws CanceledOperationException |
| | | { |
| | | boolean executePostOpPlugins = false; |
| | | |
| | | this.backend = backend; |
| | | this.backend = wfe.getBackend(); |
| | | |
| | | clientConnection = getClientConnection(); |
| | | |
| | |
| | | // If there's a persistent search, then register it with the server. |
| | | if (persistentSearch != null) |
| | | { |
| | | DirectoryServer.registerPersistentSearch(persistentSearch); |
| | | wfe.registerPersistentSearch(persistentSearch); |
| | | clientConnection.registerPersistentSearch(persistentSearch); |
| | | setSendResponse(false); |
| | | } |
| | | |
| | |
| | | |
| | | if (persistentSearch != null) |
| | | { |
| | | DirectoryServer.deregisterPersistentSearch(persistentSearch); |
| | | persistentSearch.cancel(); |
| | | setSendResponse(true); |
| | | } |
| | | |
| | |
| | | { |
| | | if (persistentSearch != null) |
| | | { |
| | | DirectoryServer.deregisterPersistentSearch(persistentSearch); |
| | | persistentSearch.cancel(); |
| | | setSendResponse(true); |
| | | } |
| | | |
| | |
| | | |
| | | if (persistentSearch != null) |
| | | { |
| | | DirectoryServer.deregisterPersistentSearch(persistentSearch); |
| | | persistentSearch.cancel(); |
| | | setSendResponse(true); |
| | | } |
| | | |