Closed GoogleCodeExporter closed 8 years ago
Thanks, I'll take a look at your patch.
Original comment by dfis...@gmail.com
on 20 Jan 2010 at 3:42
We have an internal requirement for sorting DSML as well.
This caused me to push the sorting implementation into the bean objects so all
classes could potentially take advantage.
Unfortunately I had to tear down the existing bean objects to make way for the
interfaces, but the end result is cleaner and more extensible.
I'm providing three factory implementations: Unordered, Ordered, and Sorted.
In order to the change the default behavior (unordered) you can set the factory
like so:
Ldif ldif = new Ldif();
ldif.setLdapBeanFactory(new SortedLdapBeanFactory());
....
The default factory can also be changed JVM wide by using:
LdapBeanProvider.setLdapBeanFactory(...) or by setting the following system
property:
-Dedu.vt.middleware.ldap.beanFactory=....
Please take a look at the latest 3.3 snapshot and let me know if that works for
you.
Original comment by dfis...@gmail.com
on 30 Jan 2010 at 4:43
I reviewed these and they look good. Initially I had a negative reaction to
making
the concrete implementations of AbstractLdap* inner classes on the factories,
but I
warmed up to the idea after further consideration. They really are so simple
that
they are arguably an implementation detail; I can't imagine anyone wanting to
extend
them without simply creating another factory class. With that in mind you
might want
to make the inner classes default (package) access instead of public.
Original comment by marvin.addison@gmail.com
on 9 Feb 2010 at 2:40
Attached patch that fixes an apparent bug in LdifResultConverter where it does
not
respect a given LdapBeanFactory when generating an LDIF.
Original comment by marvin.addison@gmail.com
on 17 Feb 2010 at 9:34
Attachments:
Committed patch in r1157.
Bug should have affected toXXX methods, not fromXXX methods.
Original comment by dfis...@gmail.com
on 18 Feb 2010 at 4:55
DSML sorting confirmed to work.
Marking fixed.
Original comment by dfis...@gmail.com
on 12 Apr 2010 at 7:36
Original issue reported on code.google.com by
zellerta@gmail.com
on 20 Jan 2010 at 3:22