| | |
| | | import org.opends.server.admin.std.server.PluginCfg; |
| | | import org.opends.server.api.plugin.DirectoryServerPlugin; |
| | | import org.opends.server.api.plugin.PluginType; |
| | | import org.opends.server.api.plugin.PreOperationPluginResult; |
| | | import org.opends.server.api.plugin.PluginResult; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.loggers.debug.DebugTracer; |
| | | import org.opends.server.types.Attribute; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | public final PreOperationPluginResult |
| | | doPreOperation(PreOperationAddOperation addOperation) |
| | | public final PluginResult.PreOperation |
| | | doPreOperation(PreOperationAddOperation addOperation) |
| | | { |
| | | // Create the attribute list for the creatorsName attribute, if appropriate. |
| | | DN creatorDN = addOperation.getAuthorizationDN(); |
| | |
| | | |
| | | |
| | | // We shouldn't ever need to return a non-success result. |
| | | return PreOperationPluginResult.SUCCESS; |
| | | return PluginResult.PreOperation.continueOperationProcessing(); |
| | | } |
| | | |
| | | |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | public final PreOperationPluginResult |
| | | public final PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyOperation modifyOperation) |
| | | { |
| | | // Create the modifiersName attribute. |
| | |
| | | } |
| | | |
| | | // This should never happen. |
| | | modifyOperation.setResultCode(DirectoryConfig.getServerErrorResultCode()); |
| | | modifyOperation.appendErrorMessage(de.getMessageObject()); |
| | | return new PreOperationPluginResult(false, false, true); |
| | | return PluginResult.PreOperation.stopProcessing( |
| | | DirectoryConfig.getServerErrorResultCode(), de.getMessageObject()); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | // This should never happen. |
| | | modifyOperation.setResultCode(DirectoryConfig.getServerErrorResultCode()); |
| | | modifyOperation.appendErrorMessage(de.getMessageObject()); |
| | | return new PreOperationPluginResult(false, false, true); |
| | | return PluginResult.PreOperation.stopProcessing( |
| | | DirectoryConfig.getServerErrorResultCode(), de.getMessageObject()); |
| | | } |
| | | |
| | | |
| | | // We shouldn't ever need to return a non-success result. |
| | | return PreOperationPluginResult.SUCCESS; |
| | | return PluginResult.PreOperation.continueOperationProcessing(); |
| | | } |
| | | |
| | | |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | public final PreOperationPluginResult |
| | | public final PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyDNOperation modifyDNOperation) |
| | | { |
| | | // Create the modifiersName attribute. |
| | |
| | | |
| | | |
| | | // We shouldn't ever need to return a non-success result. |
| | | return PreOperationPluginResult.SUCCESS; |
| | | return PluginResult.PreOperation.continueOperationProcessing(); |
| | | } |
| | | |
| | | |