mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

pgamba
08.39.2009 2ab6b7fabea1d29a8c023dcbdbec9a76bd66c5cc
Put back getMods() method erroneously removed from a previous commit
1 files modified
18 ■■■■■ changed files
opends/src/server/org/opends/server/replication/protocol/ModifyCommonMsg.java 18 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/ModifyCommonMsg.java
@@ -102,6 +102,24 @@
    encodedMods = encodeMods(mods);
  }
  /**
   * Get the Modifications associated to the UpdateMsg to the provided value.
   * @throws LDAPException In case of LDAP decoding exception
   * @throws ASN1Exception In case of ASN1 decoding exception
   * @return the list of modifications
   */
  public List<Modification> getMods() throws ASN1Exception, LDAPException
  {
    List<Modification> mods = new ArrayList<Modification>();
    ASN1Reader reader = ASN1.getReader(encodedMods);
    while (reader.hasNextElement())
      mods.add((LDAPModification.decode(reader)).toModification());
    return mods;
  }
  // ============
  // Msg encoding
  // ============