-
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
-
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.