Class ActiveLdap::Ldif::ChangeRecord
In: lib/active_ldap/ldif.rb
Parent: Record
Error AttributeAssignmentError AdapterNotSpecified OperationNotPermitted RequiredObjectClassMissed ConnectionError RequiredAttributeMissed LdifInvalid LdapError DistinguishedNameNotSetError EntryNotFound SaveError StrongAuthenticationRequired NotImplemented AdapterNotFound TimeoutError AuthenticationError AttributeValueInvalid EntryNotSaved DistinguishedNameInputInvalid EntryAlreadyExist ObjectClassError UnknownAttribute EntryInvalid DeleteError ConfigurationError ConnectionNotSetup DistinguishedNameInvalid Schema\n[lib/active_ldap/schema.rb\nlib/active_ldap/schema/syntaxes.rb] DistinguishedName Base Reloadable::Deprecated Reloadable::Subclasses Enumerable Ldif Collection EntryAttribute StandardError Children HasManyWrap HasMany BelongsToMany Proxy BelongsTo Common Find LDIF Delete Update GetText::Translation 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 Xml JndiConnection lib/active_ldap/distinguished_name.rb lib/active_ldap/base.rb lib/active_ldap/schema/syntaxes.rb lib/active_ldap/xml.rb lib/active_ldap/entry_attribute.rb lib/active_ldap/ldif.rb lib/active_ldap/ldap_error.rb Compatible 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 Translation GetTextFallback ClassMethods HumanReadable Salt UserPassword ClassMethods Connection ActiveLdap dot/m_46_0.png

Methods

==   add?   delete?   modify?   modify_dn?   modify_rdn?   new   to_s_content   to_s_prelude  

Classes and Modules

Class ActiveLdap::Ldif::ChangeRecord::Control

Attributes

change_type  [R] 
controls  [R] 

Public Class methods

[Source]

     # File lib/active_ldap/ldif.rb, line 669
669:       def initialize(dn, attributes, controls, change_type)
670:         super(dn, attributes)
671:         @controls = controls
672:         @change_type = change_type
673:       end

Public Instance methods

[Source]

     # File lib/active_ldap/ldif.rb, line 695
695:       def ==(other)
696:         super(other) and
697:           @controls = other.controls and
698:           @change_type == other.change_type
699:       end

[Source]

     # File lib/active_ldap/ldif.rb, line 675
675:       def add?
676:         @change_type == "add"
677:       end

[Source]

     # File lib/active_ldap/ldif.rb, line 679
679:       def delete?
680:         @change_type == "delete"
681:       end

[Source]

     # File lib/active_ldap/ldif.rb, line 683
683:       def modify?
684:         @change_type == "modify"
685:       end

[Source]

     # File lib/active_ldap/ldif.rb, line 687
687:       def modify_dn?
688:         @change_type == "moddn"
689:       end

[Source]

     # File lib/active_ldap/ldif.rb, line 691
691:       def modify_rdn?
692:         @change_type == "modrdn"
693:       end

Private Instance methods

[Source]

     # File lib/active_ldap/ldif.rb, line 710
710:       def to_s_content
711:         result = "changetype: #{@change_type}\n"
712:         result << super
713:         result
714:       end

[Source]

     # File lib/active_ldap/ldif.rb, line 702
702:       def to_s_prelude
703:         result = super
704:         @controls.each do |control|
705:           result << control.to_s
706:         end
707:         result
708:       end

[Validate]