| | |
| | | import org.opends.server.api.ClientConnection; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.core.AbandonOperation; |
| | | import org.opends.server.core.AddOperation; |
| | | import org.opends.server.core.BindOperation; |
| | | import org.opends.server.core.CompareOperation; |
| | | import org.opends.server.core.DeleteOperation; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.ExtendedOperation; |
| | | import org.opends.server.core.InitializationException; |
| | | import org.opends.server.core.ModifyOperation; |
| | | import org.opends.server.core.ModifyDNOperation; |
| | | import org.opends.server.core.SearchOperation; |
| | | import org.opends.server.core.UnbindOperation; |
| | | 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.SearchResultEntry; |
| | | import org.opends.server.types.SearchResultReference; |
| | | import org.opends.server.types.operation.*; |
| | | |
| | | import static org.opends.server.loggers.Debug.*; |
| | | import static org.opends.server.messages.MessageHandler.*; |
| | | import static org.opends.server.messages.PluginMessages.*; |
| | | |
| | | |
| | | |
| | |
| | | * |
| | | * @return The DN of the configuration entry for this plugin. |
| | | */ |
| | | public DN getPluginEntryDN() |
| | | public final DN getPluginEntryDN() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getPluginEntryDN"); |
| | | |
| | |
| | | * |
| | | * @return The plugin types for which this plugin is registered. |
| | | */ |
| | | public Set<PluginType> getPluginTypes() |
| | | public final Set<PluginType> getPluginTypes() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getPluginTypes"); |
| | | |
| | |
| | | * Performs any processing that should be done when the Directory |
| | | * Server is in the process of starting. This method will be called |
| | | * after virtually all other initialization has been performed but |
| | | * before other plugins have before the connection handlers are |
| | | * started. |
| | | * before the connection handlers are started. |
| | | * |
| | | * @return The result of the startup plugin processing. |
| | | */ |
| | |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doStartup"); |
| | | |
| | | // No implementation is required by default. |
| | | return new StartupPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.STARTUP.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doShutdown"); |
| | | |
| | | // No implementation is required by default. |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.SHUTDOWN.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | assert debugEnter(CLASS_NAME, "doPostConnect", |
| | | String.valueOf(clientConnection)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostConnectPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_CONNECT.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | String.valueOf(messageID), |
| | | String.valueOf(message)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostDisconnectPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String msg = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_DISCONNECT.getName()); |
| | | throw new UnsupportedOperationException(msg); |
| | | } |
| | | |
| | | |
| | |
| | | String.valueOf(importConfig), |
| | | String.valueOf(entry)); |
| | | |
| | | // No implementation is required by default. |
| | | return new LDIFPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.LDIF_IMPORT.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | String.valueOf(exportConfig), |
| | | String.valueOf(entry)); |
| | | |
| | | // No implementation is required by default. |
| | | return new LDIFPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.LDIF_EXPORT.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreParsePluginResult doPreParse(AbandonOperation |
| | | abandonOperation) |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseAbandonOperation abandonOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreParse", |
| | | String.valueOf(abandonOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreParsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_ABANDON.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | doPostOperation(AbandonOperation abandonOperation) |
| | | doPostOperation(PostOperationAbandonOperation abandonOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostOperation", |
| | | String.valueOf(abandonOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = |
| | | getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_OPERATION_ABANDON.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreParsePluginResult doPreParse(AddOperation addOperation) |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseAddOperation addOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreParse", |
| | | String.valueOf(addOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreParsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_ADD.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreOperationPluginResult doPreOperation(AddOperation |
| | | addOperation) |
| | | public PreOperationPluginResult |
| | | doPreOperation(PreOperationAddOperation addOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreOperation", |
| | | String.valueOf(addOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_ADD.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult doPostOperation(AddOperation |
| | | addOperation) |
| | | public PostOperationPluginResult |
| | | doPostOperation(PostOperationAddOperation addOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostOperation", |
| | | String.valueOf(addOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_OPERATION_ADD.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult doPostResponse(AddOperation |
| | | addOperation) |
| | | public PostResponsePluginResult |
| | | doPostResponse(PostResponseAddOperation addOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostResponse", |
| | | String.valueOf(addOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostResponsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_RESPONSE_ADD.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreParsePluginResult doPreParse(BindOperation bindOperation) |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseBindOperation bindOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreParse", |
| | | String.valueOf(bindOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreParsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_BIND.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreOperationPluginResult doPreOperation(BindOperation |
| | | bindOperation) |
| | | public PreOperationPluginResult |
| | | doPreOperation(PreOperationBindOperation bindOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreOperation", |
| | | String.valueOf(bindOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_BIND.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult doPostOperation(BindOperation |
| | | bindOperation) |
| | | public PostOperationPluginResult |
| | | doPostOperation(PostOperationBindOperation bindOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostOperation", |
| | | String.valueOf(bindOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_OPERATION_BIND.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult doPostResponse(BindOperation |
| | | bindOperation) |
| | | public PostResponsePluginResult |
| | | doPostResponse(PostResponseBindOperation bindOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostResponse", |
| | | String.valueOf(bindOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostResponsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_RESPONSE_BIND.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreParsePluginResult doPreParse(CompareOperation |
| | | compareOperation) |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseCompareOperation compareOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreParse", |
| | | String.valueOf(compareOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreParsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_COMPARE.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreOperationPluginResult |
| | | doPreOperation(CompareOperation compareOperation) |
| | | doPreOperation(PreOperationCompareOperation compareOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreOperation", |
| | | String.valueOf(compareOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_COMPARE.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | doPostOperation(CompareOperation compareOperation) |
| | | doPostOperation(PostOperationCompareOperation compareOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostOperation", |
| | | String.valueOf(compareOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = |
| | | getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_OPERATION_COMPARE.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult |
| | | doPostResponse(CompareOperation compareOperation) |
| | | doPostResponse(PostResponseCompareOperation compareOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostResponse", |
| | | String.valueOf(compareOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostResponsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_RESPONSE_COMPARE.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreParsePluginResult doPreParse(DeleteOperation |
| | | deleteOperation) |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseDeleteOperation deleteOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreParse", |
| | | String.valueOf(deleteOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreParsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_DELETE.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreOperationPluginResult doPreOperation(DeleteOperation |
| | | deleteOperation) |
| | | public PreOperationPluginResult |
| | | doPreOperation(PreOperationDeleteOperation deleteOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreOperation", |
| | | String.valueOf(deleteOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_DELETE.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | doPostOperation(DeleteOperation deleteOperation) |
| | | doPostOperation(PostOperationDeleteOperation deleteOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostOperation", |
| | | String.valueOf(deleteOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_OPERATION_DELETE.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult doPostResponse(DeleteOperation |
| | | deleteOperation) |
| | | public PostResponsePluginResult |
| | | doPostResponse(PostResponseDeleteOperation deleteOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostResponse", |
| | | String.valueOf(deleteOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostResponsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_RESPONSE_DELETE.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreParsePluginResult doPreParse(ExtendedOperation |
| | | extendedOperation) |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseExtendedOperation extendedOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreParse", |
| | | String.valueOf(extendedOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreParsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_EXTENDED.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreOperationPluginResult |
| | | doPreOperation(ExtendedOperation extendedOperation) |
| | | doPreOperation(PreOperationExtendedOperation extendedOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreOperation", |
| | | String.valueOf(extendedOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = |
| | | getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_EXTENDED.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | doPostOperation(ExtendedOperation extendedOperation) |
| | | doPostOperation(PostOperationExtendedOperation |
| | | extendedOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostOperation", |
| | | String.valueOf(extendedOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = |
| | | getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_OPERATION_EXTENDED.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult |
| | | doPostResponse(ExtendedOperation extendedOperation) |
| | | doPostResponse(PostResponseExtendedOperation extendedOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostResponse", |
| | | String.valueOf(extendedOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostResponsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = |
| | | getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_RESPONSE_EXTENDED.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreParsePluginResult doPreParse(ModifyOperation |
| | | modifyOperation) |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseModifyOperation modifyOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreParse", |
| | | String.valueOf(modifyOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreParsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_MODIFY.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreOperationPluginResult doPreOperation(ModifyOperation |
| | | modifyOperation) |
| | | public PreOperationPluginResult |
| | | doPreOperation(PreOperationModifyOperation modifyOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreOperation", |
| | | String.valueOf(modifyOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_MODIFY.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | doPostOperation(ModifyOperation modifyOperation) |
| | | doPostOperation(PostOperationModifyOperation modifyOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostOperation", |
| | | String.valueOf(modifyOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_OPERATION_MODIFY.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult doPostResponse(ModifyOperation |
| | | modifyOperation) |
| | | public PostResponsePluginResult |
| | | doPostResponse(PostResponseModifyOperation modifyOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostResponse", |
| | | String.valueOf(modifyOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostResponsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_RESPONSE_MODIFY.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreParsePluginResult doPreParse(ModifyDNOperation |
| | | modifyDNOperation) |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseModifyDNOperation modifyDNOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreParse", |
| | | String.valueOf(modifyDNOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreParsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_MODIFY_DN.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreOperationPluginResult |
| | | doPreOperation(ModifyDNOperation modifyDNOperation) |
| | | doPreOperation(PreOperationModifyDNOperation modifyDNOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreOperation", |
| | | String.valueOf(modifyDNOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = |
| | | getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_MODIFY_DN.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | doPostOperation(ModifyDNOperation modifyDNOperation) |
| | | doPostOperation(PostOperationModifyDNOperation |
| | | modifyDNOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostOperation", |
| | | String.valueOf(modifyDNOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = |
| | | getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_OPERATION_MODIFY_DN.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult |
| | | doPostResponse(ModifyDNOperation modifyDNOperation) |
| | | doPostResponse(PostResponseModifyDNOperation modifyDNOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostResponse", |
| | | String.valueOf(modifyDNOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostResponsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = |
| | | getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_RESPONSE_MODIFY_DN.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreParsePluginResult doPreParse(SearchOperation |
| | | searchOperation) |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseSearchOperation searchOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreParse", |
| | | String.valueOf(searchOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreParsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_SEARCH.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreOperationPluginResult doPreOperation(SearchOperation |
| | | searchOperation) |
| | | public PreOperationPluginResult |
| | | doPreOperation(PreOperationSearchOperation searchOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreOperation", |
| | | String.valueOf(searchOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_OPERATION_SEARCH.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public SearchEntryPluginResult processSearchEntry( |
| | | SearchOperation searchOperation, |
| | | SearchResultEntry searchEntry) |
| | | public SearchEntryPluginResult |
| | | processSearchEntry(SearchEntrySearchOperation searchOperation, |
| | | SearchResultEntry searchEntry) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "processSearchEntry", |
| | | String.valueOf(searchOperation), |
| | | String.valueOf(searchEntry)); |
| | | |
| | | // No implementation is required by default. |
| | | return new SearchEntryPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.SEARCH_RESULT_ENTRY.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public SearchReferencePluginResult |
| | | processSearchReference(SearchOperation searchOperation, |
| | | SearchResultReference searchReference) |
| | | processSearchReference(SearchReferenceSearchOperation |
| | | searchOperation, |
| | | SearchResultReference searchReference) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "processSearchReference", |
| | | String.valueOf(searchOperation), |
| | | String.valueOf(searchReference)); |
| | | |
| | | // No implementation is required by default. |
| | | return new SearchReferencePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = |
| | | getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.SEARCH_RESULT_REFERENCE.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | doPostOperation(SearchOperation searchOperation) |
| | | doPostOperation(PostOperationSearchOperation searchOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostOperation", |
| | | String.valueOf(searchOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_OPERATION_SEARCH.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostResponsePluginResult doPostResponse(SearchOperation |
| | | searchOperation) |
| | | public PostResponsePluginResult |
| | | doPostResponse(PostResponseSearchOperation searchOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostResponse", |
| | | String.valueOf(searchOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostResponsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_RESPONSE_SEARCH.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PreParsePluginResult doPreParse(UnbindOperation |
| | | unbindOperation) |
| | | public PreParsePluginResult |
| | | doPreParse(PreParseUnbindOperation unbindOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPreParse", |
| | | String.valueOf(unbindOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PreParsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.PRE_PARSE_UNBIND.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Information about the result of the plugin processing. |
| | | */ |
| | | public PostOperationPluginResult |
| | | doPostOperation(UnbindOperation unbindOperation) |
| | | doPostOperation(PostOperationUnbindOperation unbindOperation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "doPostOperation", |
| | | String.valueOf(unbindOperation)); |
| | | |
| | | // No implementation is required by default. |
| | | return new PostOperationPluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.POST_OPERATION_UNBIND.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | |
| | | |
| | |
| | | assert debugEnter(CLASS_NAME, "processIntermediateResponse", |
| | | String.valueOf(intermediateResponse)); |
| | | |
| | | // No implementation is required by default. |
| | | return new IntermediateResponsePluginResult(); |
| | | int msgID = MSGID_PLUGIN_TYPE_NOT_SUPPORTED; |
| | | String message = getMessage(msgID, String.valueOf(pluginDN), |
| | | PluginType.INTERMEDIATE_RESPONSE.getName()); |
| | | throw new UnsupportedOperationException(message); |
| | | } |
| | | } |
| | | |