Parent

Class Index [+]

Quicksearch

ActiveLdap::Adapter::JndiConnection::ModifyRecord

Constants

DirContext
BasicAttribute
ADD_ATTRIBUTE
REPLACE_ATTRIBUTE
REMOVE_ATTRIBUTE

Attributes

type[R]
name[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
48:         def initialize(type, name, values, binary)
49:           @type = self.class.const_get("#{type.to_s.upcase}_ATTRIBUTE")
50:           @name = name
51:           @values = values
52:           @binary = binary
53:         end

Public Instance Methods

binary?() click to toggle source
    # File lib/active_ldap/adapter/jndi_connection.rb, line 55
55:         def binary?
56:           @binary
57:         end
to_java_attribute() click to toggle source
    # File lib/active_ldap/adapter/jndi_connection.rb, line 63
63:         def to_java_attribute
64:           attribute = BasicAttribute.new(@name)
65:           values = @values
66:           values = values.collect(&:to_java_bytes) if binary?
67:           values.each do |value|
68:             attribute.add(value)
69:           end
70:           attribute
71:         end
to_java_modification_item() click to toggle source
    # File lib/active_ldap/adapter/jndi_connection.rb, line 59
59:         def to_java_modification_item
60:           ModificationItem.new(@type, to_java_attribute)
61:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.