| | |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.replication.plugin; |
| | | import org.opends.messages.Message; |
| | | |
| | | import static org.opends.server.loggers.ErrorLogger.logError; |
| | | import static org.opends.server.messages.MessageHandler.getMessage; |
| | | import static org.opends.server.messages.ReplicationMessages.*; |
| | | import static org.opends.messages.ReplicationMessages.*; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Iterator; |
| | |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.AttributeValue; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.ErrorLogCategory; |
| | | import org.opends.server.types.ErrorLogSeverity; |
| | | import org.opends.server.types.Modification; |
| | | import org.opends.server.types.ModificationType; |
| | | import org.opends.server.types.operation.PreOperationAddOperation; |
| | |
| | | public static final String HISTORICALATTRIBUTENAME = "ds-sync-hist"; |
| | | |
| | | /** |
| | | * Name used to store attachment of historical information in the |
| | | * operation. |
| | | */ |
| | | public static final String HISTORICAL = "ds-synch-historical"; |
| | | |
| | | /** |
| | | * The AttributeType associated to the attribute used to store |
| | | * hitorical information. |
| | | */ |
| | |
| | | // Any exception happening here means that the coding of the hsitorical |
| | | // information was wrong. |
| | | // Log an error and continue with an empty historical. |
| | | int msgID = MSGID_BAD_HISTORICAL; |
| | | String message = getMessage(msgID, entry.getDN().toString()); |
| | | logError(ErrorLogCategory.SYNCHRONIZATION, |
| | | ErrorLogSeverity.SEVERE_ERROR, |
| | | message, msgID); |
| | | Message message = ERR_BAD_HISTORICAL.get(entry.getDN().toString()); |
| | | logError(message); |
| | | } |
| | | |
| | | /* set the reference to the historical information in the entry */ |