| | |
| | | private static Map<DN, SynchronizationDomain> domains = |
| | | new HashMap<DN, SynchronizationDomain>() ; |
| | | |
| | | |
| | | /** |
| | | * InitializePlugin function. |
| | | * called at server initialization time |
| | | * @param configEntry the Entry that contains configuration |
| | | * @throws ConfigException if config is invalid |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public void initializeSynchronizationProvider(ConfigEntry configEntry) |
| | | throws ConfigException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Post-Operation method, called by server when processing is complete. |
| | | * @param modifyDNOperation Operation for which the post-operation is called |
| | | * {@inheritDoc} |
| | | */ |
| | | public void doPostOperation(ModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Post-Operation method, called by server when processing is complete. |
| | | * @param modifyOperation Operation for which the post-operation is called |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void doPostOperation(ModifyOperation modifyOperation) |
| | | { |
| | | DN dn = modifyOperation.getEntryDN(); |
| | |
| | | } |
| | | |
| | | /** |
| | | * Handle the conflict resolution. |
| | | * Called by the core server after locking the entry and before |
| | | * starting the actual modification. |
| | | * @param modifyOperation the operation |
| | | * @return code indicating is operation must proceed |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public SynchronizationProviderResult handleConflictResolution( |
| | | ModifyOperation modifyOperation) |
| | | { |
| | |
| | | return domain.handleConflictResolution(modifyOperation); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Pre-operation processing. |
| | | * Called after operation has been processed by the core server |
| | | * but before being committed to the backend |
| | | * Generate the Change number and update the historical information |
| | | * @param modifyOperation the current operation |
| | | * @return code indicating if operation must be processed |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public SynchronizationProviderResult |
| | |
| | | } |
| | | |
| | | /** |
| | | * Pre-operation processing. |
| | | * Called after operation has been processed by the core server |
| | | * but before being committed to the backend |
| | | * Generate the Change number and update the historical information |
| | | * @param addOperation the current operation |
| | | * @return code indicating if operation must be processed |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public SynchronizationProviderResult doPreOperation(AddOperation addOperation) |
| | |
| | | * Called after operation has been processed by the core server |
| | | * but before being committed to the backend |
| | | * Generate the Change number and update the historical information |
| | | * |
| | | * @param deleteOperation the current operation |
| | | * @return code indicating if operation must be processed |
| | | */ |
| | |
| | | * Called after operation has been processed by the core server |
| | | * but before being committed to the backend |
| | | * Generate the Change number and update the historical information |
| | | * |
| | | * @param modifyDNOperation the current operation |
| | | * @return code indicating if operation must be processed |
| | | */ |
| | |
| | | return; |
| | | |
| | | domain.synchronize(operation); |
| | | |
| | | return; |
| | | } |
| | | |
| | | /** |
| | | * Get the ServerState associated to the SynchronizationDomain |
| | | * with a given DN. |
| | | * |
| | | * @param baseDn The DN of the Synchronization Domain for which the |
| | | * ServerState must be returned. |
| | | * @return the ServerState associated to the SynchronizationDomain |
| | |
| | | SynchronizationDomain domain = findDomain(baseDn); |
| | | return domain.getServerState(); |
| | | } |
| | | |
| | | } |
| | | |
| | | |