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 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] Base DistinguishedName Reloadable::Deprecated Reloadable::Subclasses Enumerable Ldif Collection EntryAttribute StandardError Children HasManyWrap HasMany BelongsToMany Proxy BelongsTo Normalizable Common Find LDIF Delete Update ActiveRecord::Callbacks GetText Parser 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 ActiveRecord::Validations Xml JndiConnection lib/active_ldap/distinguished_name.rb lib/active_ldap/base.rb lib/active_ldap/xml.rb lib/active_ldap/schema.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 ClassMethods Normalizable Attributes Update Common ModifyNameRecordLoadable AddOperationModifiable DeleteOperationModifiable ReplaceOperationModifiable ModifyRecordLoadable DeleteRecordLoadable AddRecordLoadable ContentRecordLoadable LDIF Delete Find Operations GetTextSupport Escape ClassMethods Configuration ClassMethods ObjectClass ClassMethods Callbacks lib/active_ldap/get_text/parser.rb GetText 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 Validations GetTextFallback Helper ClassMethods HumanReadable Salt UserPassword ClassMethods Connection ActiveLdap dot/m_46_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 872
872:         def initialize(type, attribute, options, attributes)
873:           @type = type
874:           @attribute = attribute
875:           @options = options
876:           @attributes = attributes
877:         end

Public Instance methods

[Source]

     # File lib/active_ldap/ldif.rb, line 900
900:         def ==(other)
901:           other.is_a?(self.class) and
902:             @type == other.type and
903:             full_attribute_name == other.full_attribute_name and
904:             Attributes.normalize(@attributes) ==
905:             Attributes.normalize(other.attributes)
906:         end

[Source]

     # File lib/active_ldap/ldif.rb, line 883
883:         def add?
884:           @type == "add"
885:         end

[Source]

     # File lib/active_ldap/ldif.rb, line 887
887:         def delete?
888:           @type == "delete"
889:         end

[Source]

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

[Source]

     # File lib/active_ldap/ldif.rb, line 891
891:         def replace?
892:           @type == "replace"
893:         end

[Source]

     # File lib/active_ldap/ldif.rb, line 895
895:         def to_s
896:           Attribute.encode(@type, full_attribute_name) +
897:             Attributes.encode(@attributes)
898:         end

[Validate]