Results 1 to 2 of 2

Thread: 1.2 API questions

  1. #1
    Join Date
    Dec 2005
    Posts
    929

    Default 1.2 API questions

    Hi,
    I just upgraded from 1.1.2 to 1.2 and have a couple of questions:
    1) I used to use the SearchLimitExcededException and wanted to know if the SizeLimitExceededException can be used as a drop-in replacement? The inheritance hierachy is different and I wasn't sure.
    2) When specifying a SortControlDirContextProcessor in the SimpleLdapTemplate search method, is the sortKey field an attribute of a field stored in LDAP itself or a field of an object one is mapping to in the ParameterizedContextMapper ie as returned from the mapFromContext method)?
    Thanks
    Alan

  2. #2
    Join Date
    Jul 2005
    Location
    Helsingborg, Sweden
    Posts
    504

    Default

    Yes, you should use SizeLimitExceededException now. It is an unchecked mirror of the real javax.naming.SizeLimitExceededException, so it more accurately reflects what the problem is.

    The sortKey is an LDAP attribute, like "cn" for example.
    Ulrik Sandberg
    Jayway (www.jayway.com)
    Spring LDAP project member

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •