class ActiveLdap::Adapter::JndiConnection::ModifyRecord
def binary?
def binary? @binary end
def initialize(type, name, values, binary)
def initialize(type, name, values, binary) @type = self.class.const_get("#{type.to_s.upcase}_ATTRIBUTE") @name = name @values = values @binary = binary end
def to_java_attribute
def to_java_attribute attribute = BasicAttribute.new(@name) values = @values values = values.collect(&:to_java_bytes) if binary? values.each do |value| attribute.add(value) end attribute end
def to_java_modification_item
def to_java_modification_item ModificationItem.new(@type, to_java_attribute) end