| | |
| | | import org.opends.server.types.operation.PreOperationModifyDNOperation; |
| | | import org.opends.server.types.operation.PreOperationModifyOperation; |
| | | import org.opends.server.types.operation.PreOperationOperation; |
| | | import org.opends.server.workflowelement.externalchangelog.ECLWorkflowElement; |
| | | import org.opends.server.workflowelement.localbackend.*; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * Utility class to have get a sting iterator from an AtributeValue iterator. |
| | | * Utility class to have get a string iterator from an AtributeValue iterator. |
| | | * Assuming the attribute values are strings. |
| | | */ |
| | | public static class AttributeValueStringIterator implements Iterator<String> |
| | |
| | | super.sessionInitiated( |
| | | initStatus, replicationServerState,generationID, session); |
| | | |
| | | // Now that we are connected , we can enable ECL if : |
| | | // 1/ RS must in the same JVM and created an ECL_WORKFLOW_ELEMENT |
| | | // and 2/ this domain must NOT be private |
| | | if (!getBackend().isPrivateBackend()) |
| | | { |
| | | try |
| | | { |
| | | ECLWorkflowElement wfe = (ECLWorkflowElement) |
| | | DirectoryServer.getWorkflowElement( |
| | | ECLWorkflowElement.ECL_WORKFLOW_ELEMENT); |
| | | if (wfe!=null) |
| | | wfe.getReplicationServer().enableECL(); |
| | | } |
| | | catch(DirectoryException de) |
| | | { |
| | | //FIXME:DirectoryException is raised by initializeECL => fix err msg |
| | | Message message = |
| | | NOTE_ERR_UNABLE_TO_ENABLE_ECL.get( |
| | | "Replication Domain on" + baseDn, |
| | | de.getMessage() + " " + de.getCause().getMessage()); |
| | | logError(message); |
| | | // and go on |
| | | } |
| | | } |
| | | |
| | | // Now for bad data set status if needed |
| | | if (force_bad_data_set) |
| | | { |
| | |
| | | e.getLocalizedMessage() + stackTraceToSingleLineString(e)); |
| | | logError(message); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |