Class FakeModifyOperation


  • public class FakeModifyOperation
    extends FakeOperation
    This class if used to build fake Modify Operation from the historical information that stay in the entry in the database. This is useful when a LDAP server can't find a LDAP server that has already seen all its changes and therefore need to retransmit them.
    • Constructor Detail

      • FakeModifyOperation

        public FakeModifyOperation​(DN dn,
                                   CSN csn,
                                   String entryuuid)
        Creates a new ModifyFakeOperation with the provided information.
        Parameters:
        dn - The DN on which the Operation was applied.
        csn - The CSN of the operation.
        entryuuid - The unique ID of the entry on which the Operation applies.
    • Method Detail

      • addModification

        public void addModification​(Modification mod)
        Add a modification to the list of modification included in this fake operation.
        Parameters:
        mod - A modification that must be added to the list of modifications included in this fake operation.
      • generateMessage

        public ReplicationMsg generateMessage()
        Generate a ReplicationMsg from this fake operation. The ReplicationMsg is used to send the informations about this operation to the other servers.
        Specified by:
        generateMessage in class FakeOperation
        Returns:
        A ReplicationMsg that can be used to send information about this operation to remote servers.