Parent

Files

Class/Module Index [+]

Quicksearch

ActiveLdap::Adapter::JndiConnection::ModifyRecord

Attributes

name[R]
type[R]
values[R]

Public Class Methods

new(type, name, values, binary) click to toggle source
# File lib/active_ldap/adapter/jndi_connection.rb, line 48
def initialize(type, name, values, binary)
  @type = self.class.const_get("#{type.to_s.upcase}_ATTRIBUTE")
  @name = name
  @values = values
  @binary = binary
end

Public Instance Methods

binary?() click to toggle source
# File lib/active_ldap/adapter/jndi_connection.rb, line 55
def binary?
  @binary
end
to_java_attribute() click to toggle source
# File lib/active_ldap/adapter/jndi_connection.rb, line 63
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
to_java_modification_item() click to toggle source
# File lib/active_ldap/adapter/jndi_connection.rb, line 59
def to_java_modification_item
  ModificationItem.new(@type, to_java_attribute)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.