Inherits from NSObject
Conforms to NSCopying
Declared in LKMod.h
LKMod.m

Overview

LKMod is used to specify the modifications to be made to an LDAP entry.

Tasks

Object Management Methods

Modifications

  •   modOp

    The type of modification to perform.

    property
  •   modType

    The attribute to be modified.

    property
  •   modValues

    The values to add, replace, or delete from an attribute.

    property
  • – addValue:

    Add value to list of modifications.

Manager LDAPMod References

Properties

modOp

The type of modification to perform.

@property (atomic, readonly) LKLdapModOperation modOp

Discussion

LKLdapModOperation Description
LKLdapModOperationAdd Add attribute values.
LKLdapModOperationDelete Delete attribute values.
LKLdapModOperationReplace Replace attribute values.

Declared In

LKMod.h

modType

The attribute to be modified.

@property (atomic, copy, readonly) NSString *modType

Declared In

LKMod.h

modValues

The values to add, replace, or delete from an attribute.

@property (atomic, copy, readonly) NSArray *modValues

Declared In

LKMod.h

Class Methods

freeLDAPMod:

Frees a LDAPMod reference.

+ (void)freeLDAPMod:(LDAPMod *)mod

Parameters

mod

The LDAPMod reference to be freed.

Declared In

LKMod.h

modWithOperation:type:

Creates a new object

+ (id)modWithOperation:(LKLdapModOperation)modOp type:(NSString *)modType

Parameters

modOp

The type of operation to perform on the attribute. See modOp for valid values.

modType

The attribute to modify.

Declared In

LKMod.h

modWithOperation:type:value:

Initialize a new object

+ (id)modWithOperation:(LKLdapModOperation)modOp type:(NSString *)modType value:(id<NSObject>)modValue

Parameters

modOp

The type of operation to perform on the attribute. See modOp for valid values.

modType

The attribute to modify.

modValue

The value to delete, add, or replace.

Declared In

LKMod.h

modWithOperation:type:values:

Creates a new object

+ (id)modWithOperation:(LKLdapModOperation)modOp type:(NSString *)modType values:(NSArray *)modValues

Parameters

modOp

The type of operation to perform on the attribute. See modOp for valid values.

modType

The attribute to modify.

modValues

The optional values to delete, add, or replace.

Declared In

LKMod.h

Instance Methods

addValue:

Add value to list of modifications.

- (void)addValue:(id<NSObject,NSCopying>)modValue

Parameters

modValue

Value to append to modification values.

Declared In

LKMod.h

initWithOperation:type:

Initialize a new object

- (id)initWithOperation:(LKLdapModOperation)modOp type:(NSString *)modType

Parameters

modOp

The type of operation to perform on the attribute. See modOp for valid values.

modType

The attribute to modify.

Declared In

LKMod.h

initWithOperation:type:value:

Initialize a new object

- (id)initWithOperation:(LKLdapModOperation)modOp type:(NSString *)modType value:(id<NSObject>)modValue

Parameters

modOp

The type of operation to perform on the attribute. See modOp for valid values.

modType

The attribute to modify.

modValue

The value to delete, add, or replace.

Declared In

LKMod.h

initWithOperation:type:values:

Initialize a new object

- (id)initWithOperation:(LKLdapModOperation)modOp type:(NSString *)modType values:(NSArray *)modValues

Parameters

modOp

The type of operation to perform on the attribute. See modOp for valid values.

modType

The attribute to modify.

modValues

The optional values to delete, add, or replace.

Declared In

LKMod.h

newLDAPMod

Allocate a new LDAPMod reference.

- (LDAPMod *)newLDAPMod

Return Value

This method returns a pointer to a LDAPMod reference. The LDAPMod reference must be freed using freeLDAPMod:.

Declared In

LKMod.h