SHOW Signed
 

net.rim.device.api.ldap
Interface LDAPListener


public interface LDAPListener

Contains the functionality for the LDAP listener.

Sample code

 
 public void statusUpdate(LDAPQuery query, int status)
 {
     switch (status)
     {
         case LDAPListener.STATE_TIMEOUT: // The query failed.  Timed out for some reason.
             // Handle case.
             break;
         case LDAPListener.STATE_THROTTLED: // The query completed sucessfully. But was truncated by the MDS
             // Handle case.
             break;
         case LDAPListener.STATE_COMPLETE: // The query completed sucessfully.
             // Handle case.
            break;
         case LDAPListener.STATE_NO_SERVICE_BOOK:
        case LDAPListener.STATE_ERROR:
             // Handle case.
             break;
         default:
             break;
     }
 }
 
 public void entryReady( LDAPQuery query, int index )
 {
     LDAPEntry entry = query.getEntry( index );
    
     if( entry == null )
     {
         return;
     }
    
     // ....
    
 }    
 
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Since:
JDE 4.0.0

Field Summary
 Category: Signed static int STATE_ABORTED
           
 Category: Signed static int STATE_COMPLETE
           
 Category: Signed static int STATE_DECODING
           
 Category: Signed static int STATE_ENCODING
           
 Category: Signed static int STATE_ERROR
           
 Category: Signed static int STATE_NO_SERVICE_BOOK
           
 Category: Signed static int STATE_PENDING
           
 Category: Signed static int STATE_SENDING
           
 Category: Signed static int STATE_SENT
           
 Category: Signed static int STATE_STARTED
           
 Category: Signed static int STATE_THROTTLED
           
 Category: Signed static int STATE_TIMEOUT
           
 
Method Summary
 Category: Signed  void entryReady(LDAPQuery query, int status)
          Indicates that there has been an update to the LDAP query status.
 Category: Signed  void statusUpdate(LDAPQuery query, int status)
          Indicates that there has been an update to the LDAP query status.
 

Field Detail

STATE_ABORTED

public static final int STATE_ABORTED
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

STATE_COMPLETE

public static final int STATE_COMPLETE
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

STATE_DECODING

public static final int STATE_DECODING
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

STATE_ENCODING

public static final int STATE_ENCODING
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

STATE_ERROR

public static final int STATE_ERROR
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

STATE_NO_SERVICE_BOOK

public static final int STATE_NO_SERVICE_BOOK
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

STATE_PENDING

public static final int STATE_PENDING
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

STATE_SENDING

public static final int STATE_SENDING
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

STATE_SENT

public static final int STATE_SENT
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

STATE_STARTED

public static final int STATE_STARTED
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

STATE_THROTTLED

public static final int STATE_THROTTLED
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

STATE_TIMEOUT

public static final int STATE_TIMEOUT
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Method Detail

entryReady

public void entryReady(LDAPQuery query,
                       int status)
Indicates that there has been an update to the LDAP query status.

Parameters:
query - The specified LDAPQuery object.
status - The new status of the query
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

statusUpdate

public void statusUpdate(LDAPQuery query,
                         int status)
Indicates that there has been an update to the LDAP query status.

Parameters:
query - The specified LDAPQuery object.
status - The new status of the query
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.