| | |
| | | protected Operation(ClientConnection clientConnection, long operationID, |
| | | int messageID, List<Control> requestControls) |
| | | { |
| | | |
| | | this.clientConnection = clientConnection; |
| | | this.operationID = operationID; |
| | | this.messageID = messageID; |
| | |
| | | */ |
| | | public final ClientConnection getClientConnection() |
| | | { |
| | | |
| | | return clientConnection; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final long getConnectionID() |
| | | { |
| | | |
| | | return clientConnection.getConnectionID(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public final long getOperationID() |
| | | { |
| | | |
| | | return operationID; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final int getMessageID() |
| | | { |
| | | |
| | | return messageID; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final List<Control> getRequestControls() |
| | | { |
| | | |
| | | return requestControls; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void addRequestControl(Control control) |
| | | { |
| | | |
| | | requestControls.add(control); |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void removeRequestControl(Control control) |
| | | { |
| | | |
| | | requestControls.remove(control); |
| | | } |
| | | |
| | |
| | | */ |
| | | public final ResultCode getResultCode() |
| | | { |
| | | |
| | | return resultCode; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setResultCode(ResultCode resultCode) |
| | | { |
| | | |
| | | this.resultCode = resultCode; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final StringBuilder getErrorMessage() |
| | | { |
| | | |
| | | return errorMessage; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setErrorMessage(StringBuilder errorMessage) |
| | | { |
| | | |
| | | if (errorMessage == null) |
| | | { |
| | | this.errorMessage = new StringBuilder(); |
| | |
| | | */ |
| | | public final void appendErrorMessage(String message) |
| | | { |
| | | |
| | | if (errorMessage == null) |
| | | { |
| | | errorMessage = new StringBuilder(message); |
| | |
| | | */ |
| | | public final StringBuilder getAdditionalLogMessage() |
| | | { |
| | | |
| | | return additionalLogMessage; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setAdditionalLogMessage(StringBuilder additionalLogMessage) |
| | | { |
| | | |
| | | if (additionalLogMessage == null) |
| | | { |
| | | this.additionalLogMessage = new StringBuilder(); |
| | |
| | | */ |
| | | public final void appendAdditionalLogMessage(String message) |
| | | { |
| | | |
| | | if (additionalLogMessage == null) |
| | | { |
| | | additionalLogMessage = new StringBuilder(message); |
| | |
| | | */ |
| | | public final DN getMatchedDN() |
| | | { |
| | | |
| | | return matchedDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setMatchedDN(DN matchedDN) |
| | | { |
| | | |
| | | this.matchedDN = matchedDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final List<String> getReferralURLs() |
| | | { |
| | | |
| | | return referralURLs; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setReferralURLs(List<String> referralURLs) |
| | | { |
| | | |
| | | this.referralURLs = referralURLs; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setResponseData(DirectoryException directoryException) |
| | | { |
| | | |
| | | this.resultCode = directoryException.getResultCode(); |
| | | this.matchedDN = directoryException.getMatchedDN(); |
| | | this.referralURLs = directoryException.getReferralURLs(); |
| | |
| | | */ |
| | | public final boolean isInternalOperation() |
| | | { |
| | | |
| | | return isInternalOperation; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setInternalOperation(boolean isInternalOperation) |
| | | { |
| | | |
| | | this.isInternalOperation = isInternalOperation; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final boolean isSynchronizationOperation() |
| | | { |
| | | |
| | | return isSynchronizationOperation; |
| | | } |
| | | |
| | |
| | | public final void setSynchronizationOperation( |
| | | boolean isSynchronizationOperation) |
| | | { |
| | | |
| | | this.isSynchronizationOperation = isSynchronizationOperation; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setDontSynchronize(boolean dontSynchronize) |
| | | { |
| | | |
| | | this.dontSynchronizeFlag = dontSynchronize; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final Entry getAuthorizationEntry() |
| | | { |
| | | |
| | | return authorizationEntry; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final DN getAuthorizationDN() |
| | | { |
| | | |
| | | if (authorizationEntry == null) |
| | | { |
| | | return DN.nullDN(); |
| | |
| | | */ |
| | | public final Map<String,Object> getAttachments() |
| | | { |
| | | |
| | | return attachments; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final Object getAttachment(String name) |
| | | { |
| | | |
| | | return attachments.get(name); |
| | | } |
| | | |
| | |
| | | */ |
| | | public final Object removeAttachment(String name) |
| | | { |
| | | |
| | | return attachments.remove(name); |
| | | } |
| | | |
| | |
| | | */ |
| | | public final Object setAttachment(String name, Object value) |
| | | { |
| | | |
| | | return attachments.put(name, value); |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void operationCompleted() |
| | | { |
| | | |
| | | |
| | | // Notify the client connection that this operation is complete and that it |
| | | // no longer needs to be retained. |
| | | clientConnection.removeOperationInProgress(messageID); |
| | |
| | | */ |
| | | public final CancelResult getCancelResult() |
| | | { |
| | | |
| | | return cancelResult; |
| | | } |
| | | |
| | |
| | | */ |
| | | public final void setCancelResult(CancelResult cancelResult) |
| | | { |
| | | |
| | | this.cancelResult = cancelResult; |
| | | } |
| | | |
| | |
| | | */ |
| | | protected final void indicateCancelled(CancelRequest cancelRequest) |
| | | { |
| | | |
| | | setCancelResult(CancelResult.CANCELED); |
| | | |
| | | if (cancelRequest.notifyOriginalRequestor() || |
| | |
| | | */ |
| | | public final String toString() |
| | | { |
| | | |
| | | StringBuilder buffer = new StringBuilder(); |
| | | toString(buffer); |
| | | return buffer.toString(); |