| | |
| | | import org.opends.server.admin.std.server.PluginCfg; |
| | | import org.opends.server.api.ClientConnection; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.types.DisconnectReason; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.InitializationException; |
| | | import org.opends.server.types.IntermediateResponse; |
| | | import org.opends.server.types.LDIFImportConfig; |
| | | import org.opends.server.types.LDIFExportConfig; |
| | | import org.opends.server.types.Modification; |
| | | import org.opends.server.types.SearchResultEntry; |
| | | import org.opends.server.types.SearchResultReference; |
| | | import org.opends.server.types.*; |
| | | import org.opends.server.types.operation.*; |
| | | |
| | | import static org.opends.messages.PluginMessages.*; |
| | |
| | | * |
| | | * @return The result of the startup plugin processing. |
| | | */ |
| | | public StartupPluginResult doStartup() |
| | | public PluginResult.Startup doStartup() |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED.get( |
| | | String.valueOf(pluginDN), PluginType.STARTUP.getName()); |
| | |
| | | * |
| | | * @return The result of the plugin processing. |
| | | */ |
| | | public PostConnectPluginResult doPostConnect(ClientConnection |
| | | public PluginResult.PostConnect doPostConnect(ClientConnection |
| | | clientConnection) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED.get( |
| | |
| | | * |
| | | * @return The result of the plugin processing. |
| | | */ |
| | | public PostDisconnectPluginResult |
| | | public PluginResult.PostDisconnect |
| | | doPostDisconnect(ClientConnection clientConnection, |
| | | DisconnectReason disconnectReason, |
| | | Message message) |
| | |
| | | * |
| | | * @return The result of the plugin processing. |
| | | */ |
| | | public LDIFPluginResult doLDIFImport(LDIFImportConfig importConfig, |
| | | Entry entry) |
| | | public PluginResult.ImportLDIF |
| | | doLDIFImport(LDIFImportConfig importConfig, Entry entry) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED.get( |
| | | String.valueOf(pluginDN), PluginType.LDIF_IMPORT.getName()); |
| | |
| | | * |
| | | * @return The result of the plugin processing. |
| | | */ |
| | | public LDIFPluginResult doLDIFExport(LDIFExportConfig exportConfig, |
| | | Entry entry) |
| | | public PluginResult.ImportLDIF |
| | | doLDIFExport(LDIFExportConfig exportConfig, Entry entry) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED.get( |
| | | String.valueOf(pluginDN), PluginType.LDIF_EXPORT.getName()); |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreParsePluginResult |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseAbandonOperation abandonOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationAbandonOperation abandonOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * @param addOperation The add operation that has been requested. |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | */ |
| | | public PreParsePluginResult |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseAddOperation addOperation) |
| | | { |
| | | throws CanceledOperationException { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED.get( |
| | | String.valueOf(pluginDN), PluginType.PRE_PARSE_ADD.getName()); |
| | | throw new UnsupportedOperationException(message.toString()); |
| | |
| | | * @param addOperation The add operation to be processed. |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | */ |
| | | public PreOperationPluginResult |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationAddOperation addOperation) |
| | | { |
| | | throws CanceledOperationException { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | | get(String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_ADD.getName()); |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationAddOperation addOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseAddOperation addOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreParsePluginResult |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseBindOperation bindOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreOperationPluginResult |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationBindOperation bindOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationBindOperation bindOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseBindOperation bindOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * requested. |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | */ |
| | | public PreParsePluginResult |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseCompareOperation compareOperation) |
| | | { |
| | | throws CanceledOperationException { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | | get(String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_COMPARE.getName()); |
| | |
| | | * @param compareOperation The compare operation to be processed. |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | */ |
| | | public PreOperationPluginResult |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationCompareOperation compareOperation) |
| | | { |
| | | throws CanceledOperationException { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | | get(String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_COMPARE.getName()); |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationCompareOperation compareOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseCompareOperation compareOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * requested. |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | */ |
| | | public PreParsePluginResult |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseDeleteOperation deleteOperation) |
| | | { |
| | | throws CanceledOperationException { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | | get(String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_DELETE.getName()); |
| | |
| | | * @param deleteOperation The delete operation to be processed. |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | */ |
| | | public PreOperationPluginResult |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationDeleteOperation deleteOperation) |
| | | { |
| | | throws CanceledOperationException { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | | get(String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_DELETE.getName()); |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationDeleteOperation deleteOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseDeleteOperation deleteOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * requested. |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | */ |
| | | public PreParsePluginResult |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseExtendedOperation extendedOperation) |
| | | { |
| | | throws CanceledOperationException { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | | get(String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_EXTENDED.getName()); |
| | |
| | | * processed. |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | */ |
| | | public PreOperationPluginResult |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationExtendedOperation extendedOperation) |
| | | { |
| | | throws CanceledOperationException { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | | get(String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_EXTENDED.getName()); |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationExtendedOperation |
| | | extendedOperation) |
| | | { |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseExtendedOperation extendedOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * requested. |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | */ |
| | | public PreParsePluginResult |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseModifyOperation modifyOperation) |
| | | { |
| | | throws CanceledOperationException { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | | get(String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_MODIFY.getName()); |
| | |
| | | * @param modifyOperation The modify operation to be processed. |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | */ |
| | | public PreOperationPluginResult |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyOperation modifyOperation) |
| | | { |
| | | throws CanceledOperationException { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | | get(String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_MODIFY.getName()); |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationModifyOperation modifyOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseModifyOperation modifyOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * requested. |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | */ |
| | | public PreParsePluginResult |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseModifyDNOperation modifyDNOperation) |
| | | { |
| | | throws CanceledOperationException { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | | get(String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_MODIFY_DN.getName()); |
| | |
| | | * processed. |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | */ |
| | | public PreOperationPluginResult |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyDNOperation modifyDNOperation) |
| | | { |
| | | throws CanceledOperationException { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | | get(String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_MODIFY_DN.getName()); |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public SubordinateModifyDNPluginResult |
| | | public PluginResult.SubordinateModifyDN |
| | | processSubordinateModifyDN(SubordinateModifyDNOperation |
| | | modifyDNOperation, |
| | | Entry oldEntry, Entry newEntry, |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationModifyDNOperation |
| | | modifyDNOperation) |
| | | { |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseModifyDNOperation modifyDNOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * requested. |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | */ |
| | | public PreParsePluginResult |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseSearchOperation searchOperation) |
| | | { |
| | | throws CanceledOperationException { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | | get(String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_SEARCH.getName()); |
| | |
| | | * @param searchOperation The search operation to be processed. |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | */ |
| | | public PreOperationPluginResult |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationSearchOperation searchOperation) |
| | | { |
| | | throws CanceledOperationException { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | | get(String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_SEARCH.getName()); |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public SearchEntryPluginResult |
| | | public PluginResult.IntermediateResponse |
| | | processSearchEntry(SearchEntrySearchOperation searchOperation, |
| | | SearchResultEntry searchEntry) |
| | | { |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public SearchReferencePluginResult |
| | | public PluginResult.IntermediateResponse |
| | | processSearchReference(SearchReferenceSearchOperation |
| | | searchOperation, |
| | | SearchResultReference searchReference) |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationSearchOperation searchOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseSearchOperation searchOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreParsePluginResult |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseUnbindOperation unbindOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationUnbindOperation unbindOperation) |
| | | { |
| | | Message message = ERR_PLUGIN_TYPE_NOT_SUPPORTED. |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public IntermediateResponsePluginResult |
| | | public PluginResult.IntermediateResponse |
| | | processIntermediateResponse( |
| | | IntermediateResponse intermediateResponse) |
| | | { |