Gtk2::Net::LDAP::Widgets::LdapEntryView - LDAP entry viewport
use Gtk2::Net::LDAP::Widgets; $treeView = Gtk2::Net::LDAP::Widgets::LdapTreeView->new($ldap_source, 'ou=OrgStructure,dc=example,dc=com', 'objectClass=top'); # expand entries two tree levels below: $treeView->expand_row(Gtk2::TreePath->new_from_string('0'), 0); $treeView->expand_row(Gtk2::TreePath->new_from_string('0:0'), 0); # ... later ... print join(", ", $treeView->get_dn); =head1 ABSTRACT
Gtk2::Net::LDAP::Widgets::LdapEntryView is a child class to Gtk2::TreeView and is used to create a Gtk2 component which lets the user select LDAP entry/entries displayed in a tree-like structure.
Note: there might be problems with displaying the tree when an interactive filter is set since there may be problems building the tree if all ancestors for an entry aren't included in the search result.
So it's advised to carefully control the filters that are fed to this component.
Creates a new Gtk2::Net::LDAP::Widgets::LdapTreeView object.
ldap_source the Net::LDAP object which is an active connection to an LDAP server
ldap_source
base_dn the base DN of LDAP search operations
base_dn
static_filter the static filter that will be logically AND-ed with all filters executed by this selector
static_filter
interactive_filter the additional filter that usually comes from filter box components
interactive_filter
single_selection whether to use single selection mode (otherwise multiple selection is posible)
single_selection
Refresh the data model - re-execute the search with the current filters
Return the list of selected entries' Distinguished Names.
The list has at most one entry if single_selection is set to 1.
Sets the state of entries specified by DNs in dn_list to "selected" and unselects all other entries.
dn_list list of Distinguished Names of entries to select
dn_list
Sets the interactive filter which is an additional filter applied to LDAP searches, usually provided by interactive components like a search/filter box and refreshes the data model, re-executing LDAP search and building a new data tree.
interactive_filter a string representation of an LDAP filter
Gtk2::Net::LDAP::Widgets Gtk2 Net::LDAP
Aleksander Adamowski, <cpan@olo.org.pl>
Copyright 2005,2008 by Aleksander Adamowski
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Gtk2::Net::LDAP::Widgets, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gtk2::Net::LDAP::Widgets
CPAN shell
perl -MCPAN -e shell install Gtk2::Net::LDAP::Widgets
For more information on module installation, please visit the detailed CPAN module installation guide.