| | |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseAbandonOperation abandonOperation) |
| | | { |
| | | if (disconnectInternal(abandonOperation.getClientConnection(), |
| | | abandonOperation.getRequestControls(), "PreParse")) |
| | | if (disconnectInternal(abandonOperation, "PreParse")) |
| | | { |
| | | return new PreParsePluginResult(true, false, false); |
| | | } |
| | |
| | | @Override() |
| | | public PreParsePluginResult doPreParse(PreParseAddOperation addOperation) |
| | | { |
| | | if (disconnectInternal(addOperation.getClientConnection(), |
| | | addOperation.getRequestControls(), "PreParse")) |
| | | if (disconnectInternal(addOperation, "PreParse")) |
| | | { |
| | | return new PreParsePluginResult(true, false, false); |
| | | } |
| | |
| | | @Override() |
| | | public PreParsePluginResult doPreParse(PreParseBindOperation bindOperation) |
| | | { |
| | | if (disconnectInternal(bindOperation.getClientConnection(), |
| | | bindOperation.getRequestControls(), "PreParse")) |
| | | if (disconnectInternal(bindOperation, "PreParse")) |
| | | { |
| | | return new PreParsePluginResult(true, false, false); |
| | | } |
| | |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseCompareOperation compareOperation) |
| | | { |
| | | if (disconnectInternal(compareOperation.getClientConnection(), |
| | | compareOperation.getRequestControls(), "PreParse")) |
| | | if (disconnectInternal(compareOperation, "PreParse")) |
| | | { |
| | | return new PreParsePluginResult(true, false, false); |
| | | } |
| | |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseDeleteOperation deleteOperation) |
| | | { |
| | | if (disconnectInternal(deleteOperation.getClientConnection(), |
| | | deleteOperation.getRequestControls(), "PreParse")) |
| | | if (disconnectInternal(deleteOperation, "PreParse")) |
| | | { |
| | | return new PreParsePluginResult(true, false, false); |
| | | } |
| | |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseExtendedOperation extendedOperation) |
| | | { |
| | | if (disconnectInternal(extendedOperation.getClientConnection(), |
| | | extendedOperation.getRequestControls(), "PreParse")) |
| | | if (disconnectInternal(extendedOperation, "PreParse")) |
| | | { |
| | | return new PreParsePluginResult(true, false, false); |
| | | } |
| | |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseModifyOperation modifyOperation) |
| | | { |
| | | if (disconnectInternal(modifyOperation.getClientConnection(), |
| | | modifyOperation.getRequestControls(), "PreParse")) |
| | | if (disconnectInternal(modifyOperation, "PreParse")) |
| | | { |
| | | return new PreParsePluginResult(true, false, false); |
| | | } |
| | |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseModifyDNOperation modifyDNOperation) |
| | | { |
| | | if (disconnectInternal(modifyDNOperation.getClientConnection(), |
| | | modifyDNOperation.getRequestControls(), "PreParse")) |
| | | if (disconnectInternal(modifyDNOperation, "PreParse")) |
| | | { |
| | | return new PreParsePluginResult(true, false, false); |
| | | } |
| | |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseSearchOperation searchOperation) |
| | | { |
| | | if (disconnectInternal(searchOperation.getClientConnection(), |
| | | searchOperation.getRequestControls(), "PreParse")) |
| | | if (disconnectInternal(searchOperation, "PreParse")) |
| | | { |
| | | return new PreParsePluginResult(true, false, false); |
| | | } |
| | |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseUnbindOperation unbindOperation) |
| | | { |
| | | if (disconnectInternal(unbindOperation.getClientConnection(), |
| | | unbindOperation.getRequestControls(), "PreParse")) |
| | | if (disconnectInternal(unbindOperation, "PreParse")) |
| | | { |
| | | return new PreParsePluginResult(true, false, false); |
| | | } |
| | |
| | | public PreOperationPluginResult |
| | | doPreOperation(PreOperationAddOperation addOperation) |
| | | { |
| | | if (disconnectInternal(addOperation.getClientConnection(), |
| | | addOperation.getRequestControls(), "PreOperation")) |
| | | if (disconnectInternal(addOperation, "PreOperation")) |
| | | { |
| | | return new PreOperationPluginResult(true, false, false); |
| | | } |
| | |
| | | public PreOperationPluginResult |
| | | doPreOperation(PreOperationBindOperation bindOperation) |
| | | { |
| | | if (disconnectInternal(bindOperation.getClientConnection(), |
| | | bindOperation.getRequestControls(), "PreOperation")) |
| | | if (disconnectInternal(bindOperation, "PreOperation")) |
| | | { |
| | | return new PreOperationPluginResult(true, false, false); |
| | | } |
| | |
| | | public PreOperationPluginResult |
| | | doPreOperation(PreOperationCompareOperation compareOperation) |
| | | { |
| | | if (disconnectInternal(compareOperation.getClientConnection(), |
| | | compareOperation.getRequestControls(), |
| | | "PreOperation")) |
| | | if (disconnectInternal(compareOperation, "PreOperation")) |
| | | { |
| | | return new PreOperationPluginResult(true, false, false); |
| | | } |
| | |
| | | public PreOperationPluginResult |
| | | doPreOperation(PreOperationDeleteOperation deleteOperation) |
| | | { |
| | | if (disconnectInternal(deleteOperation.getClientConnection(), |
| | | deleteOperation.getRequestControls(), |
| | | "PreOperation")) |
| | | if (disconnectInternal(deleteOperation, "PreOperation")) |
| | | { |
| | | return new PreOperationPluginResult(true, false, false); |
| | | } |
| | |
| | | public PreOperationPluginResult |
| | | doPreOperation(PreOperationExtendedOperation extendedOperation) |
| | | { |
| | | if (disconnectInternal(extendedOperation.getClientConnection(), |
| | | extendedOperation.getRequestControls(), |
| | | "PreOperation")) |
| | | if (disconnectInternal(extendedOperation, "PreOperation")) |
| | | { |
| | | return new PreOperationPluginResult(true, false, false); |
| | | } |
| | |
| | | public PreOperationPluginResult |
| | | doPreOperation(PreOperationModifyOperation modifyOperation) |
| | | { |
| | | if (disconnectInternal(modifyOperation.getClientConnection(), |
| | | modifyOperation.getRequestControls(), |
| | | "PreOperation")) |
| | | if (disconnectInternal(modifyOperation, "PreOperation")) |
| | | { |
| | | return new PreOperationPluginResult(true, false, false); |
| | | } |
| | |
| | | public PreOperationPluginResult |
| | | doPreOperation(PreOperationModifyDNOperation modifyDNOperation) |
| | | { |
| | | if (disconnectInternal(modifyDNOperation.getClientConnection(), |
| | | modifyDNOperation.getRequestControls(), |
| | | "PreOperation")) |
| | | if (disconnectInternal(modifyDNOperation, "PreOperation")) |
| | | { |
| | | return new PreOperationPluginResult(true, false, false); |
| | | } |
| | |
| | | public PreOperationPluginResult |
| | | doPreOperation(PreOperationSearchOperation searchOperation) |
| | | { |
| | | if (disconnectInternal(searchOperation.getClientConnection(), |
| | | searchOperation.getRequestControls(), |
| | | "PreOperation")) |
| | | if (disconnectInternal(searchOperation, "PreOperation")) |
| | | { |
| | | return new PreOperationPluginResult(true, false, false); |
| | | } |
| | |
| | | public PostOperationPluginResult |
| | | doPostOperation(PostOperationAbandonOperation abandonOperation) |
| | | { |
| | | if (disconnectInternal(abandonOperation.getClientConnection(), |
| | | abandonOperation.getRequestControls(), |
| | | "PreOperation")) |
| | | if (disconnectInternal(abandonOperation, "PreOperation")) |
| | | { |
| | | return new PostOperationPluginResult(true, false); |
| | | } |
| | |
| | | public PostOperationPluginResult |
| | | doPostOperation(PostOperationAddOperation addOperation) |
| | | { |
| | | if (disconnectInternal(addOperation.getClientConnection(), |
| | | addOperation.getRequestControls(), "PostOperation")) |
| | | if (disconnectInternal(addOperation, "PostOperation")) |
| | | { |
| | | return new PostOperationPluginResult(true, false); |
| | | } |
| | |
| | | public PostOperationPluginResult |
| | | doPostOperation(PostOperationBindOperation bindOperation) |
| | | { |
| | | if (disconnectInternal(bindOperation.getClientConnection(), |
| | | bindOperation.getRequestControls(), "PostOperation")) |
| | | if (disconnectInternal(bindOperation, "PostOperation")) |
| | | { |
| | | return new PostOperationPluginResult(true, false); |
| | | } |
| | |
| | | public PostOperationPluginResult |
| | | doPostOperation(PostOperationCompareOperation compareOperation) |
| | | { |
| | | if (disconnectInternal(compareOperation.getClientConnection(), |
| | | compareOperation.getRequestControls(), |
| | | "PostOperation")) |
| | | if (disconnectInternal(compareOperation, "PostOperation")) |
| | | { |
| | | return new PostOperationPluginResult(true, false); |
| | | } |
| | |
| | | public PostOperationPluginResult |
| | | doPostOperation(PostOperationDeleteOperation deleteOperation) |
| | | { |
| | | if (disconnectInternal(deleteOperation.getClientConnection(), |
| | | deleteOperation.getRequestControls(), |
| | | "PostOperation")) |
| | | if (disconnectInternal(deleteOperation, "PostOperation")) |
| | | { |
| | | return new PostOperationPluginResult(true, false); |
| | | } |
| | |
| | | public PostOperationPluginResult |
| | | doPostOperation(PostOperationExtendedOperation extendedOperation) |
| | | { |
| | | if (disconnectInternal(extendedOperation.getClientConnection(), |
| | | extendedOperation.getRequestControls(), |
| | | "PostOperation")) |
| | | if (disconnectInternal(extendedOperation, "PostOperation")) |
| | | { |
| | | return new PostOperationPluginResult(true, false); |
| | | } |
| | |
| | | public PostOperationPluginResult |
| | | doPostOperation(PostOperationModifyOperation modifyOperation) |
| | | { |
| | | if (disconnectInternal(modifyOperation.getClientConnection(), |
| | | modifyOperation.getRequestControls(), |
| | | "PostOperation")) |
| | | if (disconnectInternal(modifyOperation, "PostOperation")) |
| | | { |
| | | return new PostOperationPluginResult(true, false); |
| | | } |
| | |
| | | public PostOperationPluginResult |
| | | doPostOperation(PostOperationModifyDNOperation modifyDNOperation) |
| | | { |
| | | if (disconnectInternal(modifyDNOperation.getClientConnection(), |
| | | modifyDNOperation.getRequestControls(), |
| | | "PostOperation")) |
| | | if (disconnectInternal(modifyDNOperation, "PostOperation")) |
| | | { |
| | | return new PostOperationPluginResult(true, false); |
| | | } |
| | |
| | | public PostOperationPluginResult |
| | | doPostOperation(PostOperationSearchOperation searchOperation) |
| | | { |
| | | if (disconnectInternal(searchOperation.getClientConnection(), |
| | | searchOperation.getRequestControls(), |
| | | "PostOperation")) |
| | | if (disconnectInternal(searchOperation, "PostOperation")) |
| | | { |
| | | return new PostOperationPluginResult(true, false); |
| | | } |
| | |
| | | public PostOperationPluginResult |
| | | doPostOperation(PostOperationUnbindOperation unbindOperation) |
| | | { |
| | | if (disconnectInternal(unbindOperation.getClientConnection(), |
| | | unbindOperation.getRequestControls(), |
| | | "PostOperation")) |
| | | if (disconnectInternal(unbindOperation, "PostOperation")) |
| | | { |
| | | return new PostOperationPluginResult(true, false); |
| | | } |
| | |
| | | public PostResponsePluginResult |
| | | doPostResponse(PostResponseAddOperation addOperation) |
| | | { |
| | | if (disconnectInternal(addOperation.getClientConnection(), |
| | | addOperation.getRequestControls(), "PostResponse")) |
| | | if (disconnectInternal(addOperation, "PostResponse")) |
| | | { |
| | | return new PostResponsePluginResult(true, false); |
| | | } |
| | |
| | | public PostResponsePluginResult |
| | | doPostResponse(PostResponseBindOperation bindOperation) |
| | | { |
| | | if (disconnectInternal(bindOperation.getClientConnection(), |
| | | bindOperation.getRequestControls(), "PostResponse")) |
| | | if (disconnectInternal(bindOperation, "PostResponse")) |
| | | { |
| | | return new PostResponsePluginResult(true, false); |
| | | } |
| | |
| | | public PostResponsePluginResult |
| | | doPostResponse(PostResponseCompareOperation compareOperation) |
| | | { |
| | | if (disconnectInternal(compareOperation.getClientConnection(), |
| | | compareOperation.getRequestControls(), |
| | | "PostResponse")) |
| | | if (disconnectInternal(compareOperation, "PostResponse")) |
| | | { |
| | | return new PostResponsePluginResult(true, false); |
| | | } |
| | |
| | | public PostResponsePluginResult |
| | | doPostResponse(PostResponseDeleteOperation deleteOperation) |
| | | { |
| | | if (disconnectInternal(deleteOperation.getClientConnection(), |
| | | deleteOperation.getRequestControls(), |
| | | "PostResponse")) |
| | | if (disconnectInternal(deleteOperation, "PostResponse")) |
| | | { |
| | | return new PostResponsePluginResult(true, false); |
| | | } |
| | |
| | | public PostResponsePluginResult |
| | | doPostResponse(PostResponseExtendedOperation extendedOperation) |
| | | { |
| | | if (disconnectInternal(extendedOperation.getClientConnection(), |
| | | extendedOperation.getRequestControls(), |
| | | "PostResponse")) |
| | | if (disconnectInternal(extendedOperation, "PostResponse")) |
| | | { |
| | | return new PostResponsePluginResult(true, false); |
| | | } |
| | |
| | | public PostResponsePluginResult |
| | | doPostResponse(PostResponseModifyOperation modifyOperation) |
| | | { |
| | | if (disconnectInternal(modifyOperation.getClientConnection(), |
| | | modifyOperation.getRequestControls(), |
| | | "PostResponse")) |
| | | if (disconnectInternal(modifyOperation, "PostResponse")) |
| | | { |
| | | return new PostResponsePluginResult(true, false); |
| | | } |
| | |
| | | public PostResponsePluginResult |
| | | doPostResponse(PostResponseModifyDNOperation modifyDNOperation) |
| | | { |
| | | if (disconnectInternal(modifyDNOperation.getClientConnection(), |
| | | modifyDNOperation.getRequestControls(), |
| | | "PostResponse")) |
| | | if (disconnectInternal(modifyDNOperation, "PostResponse")) |
| | | { |
| | | return new PostResponsePluginResult(true, false); |
| | | } |
| | |
| | | public PostResponsePluginResult |
| | | doPostResponse(PostResponseSearchOperation searchOperation) |
| | | { |
| | | if (disconnectInternal(searchOperation.getClientConnection(), |
| | | searchOperation.getRequestControls(), |
| | | "PostResponse")) |
| | | if (disconnectInternal(searchOperation, "PostResponse")) |
| | | { |
| | | return new PostResponsePluginResult(true, false); |
| | | } |
| | |
| | | * @return <CODE>true</CODE> if the client connection was terminated, or |
| | | * <CODE>false</CODE> if it was not. |
| | | */ |
| | | private boolean disconnectInternal(ClientConnection clientConnection, |
| | | List<Control> requestControls, |
| | | private boolean disconnectInternal(PluginOperation operation, |
| | | String section) |
| | | { |
| | | List<Control> requestControls = operation.getRequestControls(); |
| | | if (requestControls != null) |
| | | { |
| | | for (Control c : requestControls) |
| | |
| | | { |
| | | if (c.getValue().stringValue().equalsIgnoreCase(section)) |
| | | { |
| | | clientConnection.disconnect(DisconnectReason.CLOSED_BY_PLUGIN, true, |
| | | operation.disconnectClient(DisconnectReason.CLOSED_BY_PLUGIN, true, |
| | | "Closed by disconnect client plugin (section " + section + ")", |
| | | -1); |
| | | |