| | |
| | | */ |
| | | public final ByteString getRawBaseDN() |
| | | { |
| | | |
| | | return rawBaseDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setRawBaseDN(ByteString rawBaseDN) |
| | | { |
| | | |
| | | this.rawBaseDN = rawBaseDN; |
| | | |
| | | baseDN = null; |
| | |
| | | */ |
| | | public final DN getBaseDN() |
| | | { |
| | | |
| | | return baseDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setBaseDN(DN baseDN) |
| | | { |
| | | |
| | | this.baseDN = baseDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final SearchScope getScope() |
| | | { |
| | | |
| | | return scope; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setScope(SearchScope scope) |
| | | { |
| | | |
| | | this.scope = scope; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final DereferencePolicy getDerefPolicy() |
| | | { |
| | | |
| | | return derefPolicy; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setDerefPolicy(DereferencePolicy derefPolicy) |
| | | { |
| | | |
| | | this.derefPolicy = derefPolicy; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final int getSizeLimit() |
| | | { |
| | | |
| | | return sizeLimit; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setSizeLimit(int sizeLimit) |
| | | { |
| | | |
| | | this.sizeLimit = sizeLimit; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final int getTimeLimit() |
| | | { |
| | | |
| | | return timeLimit; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setTimeLimit(int timeLimit) |
| | | { |
| | | |
| | | this.timeLimit = timeLimit; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final boolean getTypesOnly() |
| | | { |
| | | |
| | | return typesOnly; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setTypesOnly(boolean typesOnly) |
| | | { |
| | | |
| | | this.typesOnly = typesOnly; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final LDAPFilter getRawFilter() |
| | | { |
| | | |
| | | return rawFilter; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setRawFilter(LDAPFilter rawFilter) |
| | | { |
| | | |
| | | this.rawFilter = rawFilter; |
| | | |
| | | filter = null; |
| | |
| | | */ |
| | | public final SearchFilter getFilter() |
| | | { |
| | | |
| | | return filter; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final LinkedHashSet<String> getAttributes() |
| | | { |
| | | |
| | | return attributes; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setAttributes(LinkedHashSet<String> attributes) |
| | | { |
| | | |
| | | if (attributes == null) |
| | | { |
| | | this.attributes.clear(); |
| | |
| | | */ |
| | | public final int getEntriesSent() |
| | | { |
| | | |
| | | return entriesSent; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final int getReferencesSent() |
| | | { |
| | | |
| | | return referencesSent; |
| | | } |
| | | |
| | |
| | | @Override() |
| | | public final long getProcessingStartTime() |
| | | { |
| | | |
| | | return processingStartTime; |
| | | } |
| | | |
| | |
| | | @Override() |
| | | public final long getProcessingStopTime() |
| | | { |
| | | |
| | | return processingStopTime; |
| | | } |
| | | |
| | |
| | | @Override() |
| | | public final long getProcessingTime() |
| | | { |
| | | |
| | | return (processingStopTime - processingStartTime); |
| | | } |
| | | |
| | |
| | | */ |
| | | public final boolean returnEntry(Entry entry, List<Control> controls) |
| | | { |
| | | |
| | | |
| | | // See if the operation has been abandoned. If so, then don't send the |
| | | // entry and indicate that the search should end. |
| | | if (cancelRequest != null) |
| | |
| | | */ |
| | | public final boolean returnReference(SearchResultReference reference) |
| | | { |
| | | |
| | | // See if the operation has been abandoned. If so, then don't send the |
| | | // reference and indicate that the search should end. |
| | | if (cancelRequest != null) |
| | |
| | | */ |
| | | public final void sendSearchResultDone() |
| | | { |
| | | |
| | | |
| | | // Send the search result done message to the client. We want to make sure |
| | | // that this only gets sent once, and it's possible that this could be |
| | | // multithreaded in the event of a persistent search, so do it safely. |
| | |
| | | @Override() |
| | | public final List<Control> getResponseControls() |
| | | { |
| | | |
| | | return responseControls; |
| | | } |
| | | |
| | |
| | | @Override() |
| | | public final void run() |
| | | { |
| | | |
| | | setResultCode(ResultCode.UNDEFINED); |
| | | boolean sendResponse = true; |
| | | |
| | |
| | | private final void searchBackend(Backend backend) |
| | | throws DirectoryException, CancelledOperationException |
| | | { |
| | | |
| | | |
| | | // Check for and handle a request to cancel this operation. |
| | | if (cancelRequest != null) |
| | | { |
| | |
| | | @Override() |
| | | public final CancelResult cancel(CancelRequest cancelRequest) |
| | | { |
| | | |
| | | this.cancelRequest = cancelRequest; |
| | | |
| | | if (persistentSearch != null) |
| | |
| | | @Override() |
| | | public final CancelRequest getCancelRequest() |
| | | { |
| | | |
| | | return cancelRequest; |
| | | } |
| | | |
| | |
| | | @Override() |
| | | boolean setCancelRequest(CancelRequest cancelRequest) |
| | | { |
| | | |
| | | this.cancelRequest = cancelRequest; |
| | | return true; |
| | | } |
| | |
| | | @Override() |
| | | public final void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append("SearchOperation(connID="); |
| | | buffer.append(clientConnection.getConnectionID()); |
| | | buffer.append(", opID="); |