Class ActiveLdap::Ldif::ModifyRecord::Operation
In: lib/active_ldap/ldif.rb
Parent: Object
Error AttributeAssignmentError AdapterNotSpecified OperationNotPermitted RequiredObjectClassMissed ConnectionError RequiredAttributeMissed LdifInvalid DistinguishedNameNotSetError EntryNotFound LdapError SaveError StrongAuthenticationRequired AdapterNotFound ConnectionNotEstablished TimeoutError AuthenticationError AttributeValueInvalid EntryNotSaved DistinguishedNameInputInvalid EntryAlreadyExist ObjectClassError UnknownAttribute EntryInvalid DeleteError ConfigurationError DistinguishedNameInvalid Base DistinguishedName Reloadable::Deprecated Reloadable::Subclasses Enumerable Ldif Collection EntryAttribute StandardError Children HasMany HasManyWrap 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 ClassMethods Tree Acts 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 Command Update Common ModifyNameRecordLoadable AddOperationModifiable DeleteOperationModifiable ReplaceOperationModifiable ModifyRecordLoadable DeleteRecordLoadable AddRecordLoadable ContentRecordLoadable LDIF Delete Find Operations ClassMethods Normalizable Attributes GetTextSupport Escape 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/base.rb lib/active_ldap/adapter/jndi.rb Adapter Helper GetTextFallback ClassMethods HumanReadable ClassMethods Connection Salt UserPassword ActiveLdap dot/m_44_0.png

Methods

==   add?   delete?   full_attribute_name   new   replace?   to_s  

Attributes

attribute  [R] 
attributes  [R] 
options  [R] 
type  [R] 

Public Class methods

[Source]

     # File lib/active_ldap/ldif.rb, line 844
844:         def initialize(type, attribute, options, attributes)
845:           @type = type
846:           @attribute = attribute
847:           @options = options
848:           @attributes = attributes
849:         end

Public Instance methods

[Source]

     # File lib/active_ldap/ldif.rb, line 872
872:         def ==(other)
873:           other.is_a?(self.class) and
874:             @type == other.type and
875:             full_attribute_name == other.full_attribute_name and
876:             Attributes.normalize(@attributes) ==
877:             Attributes.normalize(other.attributes)
878:         end

[Source]

     # File lib/active_ldap/ldif.rb, line 855
855:         def add?
856:           @type == "add"
857:         end

[Source]

     # File lib/active_ldap/ldif.rb, line 859
859:         def delete?
860:           @type == "delete"
861:         end

[Source]

     # File lib/active_ldap/ldif.rb, line 851
851:         def full_attribute_name
852:           [@attribute, *@options].join(";")
853:         end

[Source]

     # File lib/active_ldap/ldif.rb, line 863
863:         def replace?
864:           @type == "replace"
865:         end

[Source]

     # File lib/active_ldap/ldif.rb, line 867
867:         def to_s
868:           Attribute.encode(@type, full_attribute_name) +
869:             Attributes.encode(@attributes)
870:         end

[Validate]