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

coulbeck
17.09.2006 0a294476a440d3b2d7cd4f7c60773ff850f9aa8e
opends/src/server/org/opends/server/synchronization/OperationContext.java
@@ -71,9 +71,9 @@
  }
  /**
   * Get the unique Identifier of the modiffied entry.
   * Get the unique Identifier of the modified entry.
   *
   * @return the unique Identifier of the modiffied entry.
   * @return the unique Identifier of the modified entry.
   */
  public String getEntryUid()
  {
@@ -84,11 +84,16 @@
   * Get the change number of an operation.
   *
   * @param op The operation.
   * @return the change number of the provided operation.
   * @return The change number of the provided operation, or null if there is
   * no change number associated with the operation.
   */
  public static ChangeNumber getChangeNumber(Operation op)
  {
    OperationContext ctx = (OperationContext)op.getAttachment(SYNCHROCONTEXT);
    if (ctx == null)
    {
      return null;
    }
    return ctx.changeNumber;
  }