Class ActiveLdap::Ldif
In: lib/active_ldap/ldif.rb
Parent: Object
Error AttributeAssignmentError AdapterNotSpecified OperationNotPermitted RequiredObjectClassMissed ConnectionError RequiredAttributeMissed LdifInvalid LdapError DistinguishedNameNotSetError EntryNotFound SaveError StrongAuthenticationRequired AdapterNotFound ConnectionNotEstablished TimeoutError AuthenticationError AttributeValueInvalid EntryNotSaved DistinguishedNameInputInvalid EntryAlreadyExist ObjectClassError UnknownAttribute EntryInvalid DeleteError ConfigurationError DistinguishedNameInvalid DistinguishedName Base Reloadable::Deprecated Reloadable::Subclasses Enumerable Ldif Collection EntryAttribute StandardError Children HasManyWrap HasMany BelongsToMany Proxy BelongsTo Common Find LDIF Delete Update Normalizable GetText Parser ActiveRecord::Callbacks ActiveRecord::Validations Base\n[lib/active_ldap/adapter/base.rb\nlib/active_ldap/adapter/jndi.rb\nlib/active_ldap/adapter/ldap.rb\nlib/active_ldap/adapter/net_ldap.rb] Jndi Ldap NetLdap GetTextSupport Schema\n[lib/active_ldap/schema.rb\nlib/active_ldap/schema/syntaxes.rb] JndiConnection lib/active_ldap/distinguished_name.rb lib/active_ldap/base.rb lib/active_ldap/schema.rb lib/active_ldap/entry_attribute.rb lib/active_ldap/ldif.rb lib/active_ldap/ldap_error.rb ClassMethods Associations LdapBenchmarking ActionController Populate lib/active_ldap/association/has_many_wrap.rb lib/active_ldap/association/children.rb lib/active_ldap/association/collection.rb lib/active_ldap/association/proxy.rb lib/active_ldap/association/belongs_to_many.rb lib/active_ldap/association/belongs_to.rb lib/active_ldap/association/has_many.rb HasManyUtils Association ClassMethods Tree Acts Command Update Common ModifyNameRecordLoadable AddOperationModifiable DeleteOperationModifiable ReplaceOperationModifiable ModifyRecordLoadable DeleteRecordLoadable AddRecordLoadable ContentRecordLoadable LDIF Delete Find Operations GetTextSupport Escape ClassMethods Normalizable Attributes ClassMethods Configuration ClassMethods ObjectClass lib/active_ldap/get_text/parser.rb GetText ClassMethods Callbacks Validations lib/active_ldap/adapter/jndi_connection.rb lib/active_ldap/adapter/net_ldap.rb lib/active_ldap/adapter/ldap.rb lib/active_ldap/adapter/jndi.rb Adapter Helper GetTextFallback ClassMethods HumanReadable Salt UserPassword ClassMethods Connection ActiveLdap dot/m_44_0.png

Methods

<<   ==   each   new   parse   to_s  

Included Modules

Enumerable

Classes and Modules

Module ActiveLdap::Ldif::Attribute
Module ActiveLdap::Ldif::Attributes
Class ActiveLdap::Ldif::AddRecord
Class ActiveLdap::Ldif::ChangeRecord
Class ActiveLdap::Ldif::ContentRecord
Class ActiveLdap::Ldif::DeleteRecord
Class ActiveLdap::Ldif::ModifyDNRecord
Class ActiveLdap::Ldif::ModifyNameRecord
Class ActiveLdap::Ldif::ModifyRDNRecord
Class ActiveLdap::Ldif::ModifyRecord
Class ActiveLdap::Ldif::Parser
Class ActiveLdap::Ldif::Record
Class ActiveLdap::Ldif::Scanner

Attributes

records  [R] 
version  [R] 

Public Class methods

[Source]

     # File lib/active_ldap/ldif.rb, line 574
574:     def initialize(records=[])
575:       @version = 1
576:       @records = records
577:     end

[Source]

     # File lib/active_ldap/ldif.rb, line 566
566:       def parse(ldif)
567:         Parser.new(ldif).parse
568:       end

Public Instance methods

[Source]

     # File lib/active_ldap/ldif.rb, line 579
579:     def <<(record)
580:       @records << record
581:     end

[Source]

     # File lib/active_ldap/ldif.rb, line 595
595:     def ==(other)
596:       other.is_a?(self.class) and
597:         @version == other.version and @records == other.records
598:     end

[Source]

     # File lib/active_ldap/ldif.rb, line 583
583:     def each(&block)
584:       @records.each(&block)
585:     end

[Source]

     # File lib/active_ldap/ldif.rb, line 587
587:     def to_s
588:       result = "version: #{@version}\n"
589:       result << @records.collect do |record|
590:         record.to_s
591:       end.join("\n")
592:       result
593:     end

[Validate]