LKMessage Class Reference
| Inherits from | NSOperation |
| Declared in | LKMessage.h LKMessage.m |
Overview
LKMessage executes LDAP requests and returns the results.
KVO-Compliant Properties
The LKMessage class is key-value coding (KVC) and key-value observing (KVO)
compliant for several of its properties in addition to the key-value coding
(KVC) and key-value observing (KVO) compliant properties of the
NSOperation class. As needed, you can observe these properties to control
other parts of your application. The properties you can observe include the
following:
entries– read-only propertyreferrals– read-only propertymatchedDNs– read-only property
Read the documentation for the NSOperation class for information on
implementing observers in multi-threaded applications.
Tasks
Message information
-
messageTypeThe type of request the message was initialized to process.
property
Errors
-
errorCodeThe numeric value of the error.
property -
errorTitleAn optional title of the error for use when reporting error to users.
property -
errorMessageA human readable error message.
property -
diagnosticMessageAdditional diagnostic information if available.
property -
isSuccessfulDetermines if the error code indicates whether the task succeeded or failed.
property
Results
-
entriesAn array of LKEntry objects returned by a search request.
property -
referralsAn array of LDAP referrals returned by an LDAP request.
property
Identifying the LKMessage
Properties
diagnosticMessage
Additional diagnostic information if available.
@property (atomic, copy, readonly) NSString *diagnosticMessageDeclared In
LKMessage.hentries
An array of LKEntry objects returned by a search request.
@property (atomic, copy, readonly) NSArray *entriesDeclared In
LKMessage.herrorCode
The numeric value of the error.
@property (atomic, readonly) NSInteger errorCodeDiscussion
See the man page for ldap_error(3) for descriptions of valid error codes.
Declared In
LKMessage.herrorMessage
A human readable error message.
@property (atomic, copy, readonly) NSString *errorMessageDeclared In
LKMessage.herrorTitle
An optional title of the error for use when reporting error to users.
@property (atomic, copy, readonly) NSString *errorTitleDeclared In
LKMessage.hisSuccessful
Determines if the error code indicates whether the task succeeded or failed.
@property (atomic, readonly) BOOL isSuccessfulDeclared In
LKMessage.hmessageType
The type of request the message was initialized to process.
@property (atomic, readonly) LKLdapMessageType messageTypeDiscussion
Valid values:
| LKLdapMessageType | Description |
|---|---|
LKLdapMessageTypeBind |
LDAP bind request |
LKLdapMessageTypeDelete |
LDAP delete request |
LKLdapMessageTypeModify |
LDAP modify request |
LKLdapMessageTypeRename |
LDAP rename request |
LKLdapMessageTypeRebind |
LDAP unbind and bind request |
LKLdapMessageTypeSearch |
LDAP search request |
LKLdapMessageTypeUnbind |
LDAP unbind request |
LKLdapMessageTypeWhoAmI |
LDAP whoami request |
Declared In
LKMessage.hobject
An object reference you can use to associate data with messages in your application.
@property (atomic, retain) id<NSObject> objectDeclared In
LKMessage.h