class ActiveLdap::Ldif::ChangeRecord

def ==(other)

def ==(other)
  super(other) and
    @controls = other.controls and
    @change_type == other.change_type
end

def add?

def add?
  @change_type == "add"
end

def delete?

def delete?
  @change_type == "delete"
end

def initialize(dn, attributes, controls, change_type)

def initialize(dn, attributes, controls, change_type)
  super(dn, attributes)
  @controls = controls
  @change_type = change_type
end

def modify?

def modify?
  @change_type == "modify"
end

def modify_dn?

def modify_dn?
  @change_type == "moddn"
end

def modify_rdn?

def modify_rdn?
  @change_type == "modrdn"
end

def to_s_content

def to_s_content
  result = "changetype: #{@change_type}\n"
  result << super
  result
end

def to_s_prelude

def to_s_prelude
  result = super
  @controls.each do |control|
    result << control.to_s
  end
  result
end