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

pgamba
08.39.2009 846e596e82f75c734e75039feb4cfe60d81efb07
Put back getMods() method erroneously removed from a previous commit
1 files modified
18 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ModifyCommonMsg.java 18 ●●●●● patch | view | raw | blame | history
opendj-sdk/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
  // ============