Discussion:
[Jxplorer-users] Question about deletion in JXPLORER
Chris Betts
19 years ago
Permalink
Hi Wendy,

I'm not sure I understand - how can you delete an entry without
deleting the children first?

When deleting, JXplorer does a depth-first tree delete of all
the children - I'm not sure how else to do it? Is the problem that
you are using an LDAP interface to something that isn't really a
directory?

cheers,

- Chris
...
Chris Betts
19 years ago
Permalink
Hi Wendy,

thanks for explaining!

the problem is that this would be a very non-standard feature...
and also, does it apply to *every* entry in your directory? Or are
there other parts of your DIT where you would still want a normal
tree delete?

A more robust solution might be to modify your code to ignore
deletion requests for these child entries? Alternatively, you could
define security rules to 'hide' them from the JXplorer user.

Otherwise, you could certainly modify the 'AdvancedOps.java'
class and change the 'recursive deletion' code quite easily to make
yourself a customised version, but I'm very reluctant to make it a
part of the standard product; maintaining this sort of 'special case'
code can be quite difficult as more and more 'special cases' are
added :-/. I'm happy to point you to the right location if you want
to do it yourself though!

cheers,

Chris
...
Loading...