Class ActiveLdap::Ldif::ModifyRecord::Operation
In: lib/active_ldap/ldif.rb
Parent: Object
Error AttributeAssignmentError AdapterNotSpecified OperationNotPermitted RequiredObjectClassMissed ConnectionError RequiredAttributeMissed LdifInvalid LdapError DistinguishedNameNotSetError EntryNotFound SaveError StrongAuthenticationRequired 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 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/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 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_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 871
871:         def initialize(type, attribute, options, attributes)
872:           @type = type
873:           @attribute = attribute
874:           @options = options
875:           @attributes = attributes
876:         end

Public Instance methods

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Validate]