Net DSML filter pm
Details
| Last Update: | 2008-01-16 11:01:24 |
| Version: | Net::DSML::filte |
| License/Program Type: | Perl Artistic License |
| Publisher: | Clif Harden |
| Price: | $0.00 |
Description:
Net::DSML::filter.pm is a Perl module that supplies a
Net::DSML::Filter object that is used by a Net::DSML object.
SYNOPSIS
filter.pm - A perl module that supplies several different LDAP
DSML filter types.
This module is used in conjunction with the Net::DSML module
which does LDAP DSML queries to a LDAP directory server.
The DSML xml format is very strict and unforgiving of errors.
Because of this I have made the calling of these filter methods
strict also. The methods expect variables to be in a certain
order.
Also methods are expected to be called in a certain order
also.
The following is an example of building a simple subString
filter.
Create the filter object.
my $webfilter = Net::DSML::filter->new(debug => 1);
put the subString xml elements on the filter string
$webfilter->subString( { type => "initial",
attribute => "uid",
value => "Bugs" } );
Get the resulting filter
$filter = $webfilter->getFilter();
The following is an example of building a compound
equalityMatch filter.
Create the filter object.
my $webfilter = filter->new(debug => 1);
Put the < filter > element on the filter string
$webfilter->start();
Use the "and" to make compound filter
$webfilter->and();
put the equalityMatch xml elements on the filter string
$webfilter->equalityMatch({ attribute => "sn",
value => "Bunny" } );
put the equalityMatch xml elements on the filter string
$webfilter->equalityMatch( { attribute =>
"givenname",
value => "jay" } );
Put the ending and element on the filter string
$webfilter->endand();
Put the < /filter > element on the filter string
$webfilter->terminate();
Get the resulting filter
$filter = $webfilter->getFilter();
The following is an example of building a complex compound
equalityMatch filter.
Create the filter object.
my $webfilter = Net::DSML::filter->new(debug => 1);
Put the < filter > element on the filter string
$webfilter->start();
Use the "and" to make compound filter
$webfilter->and();
put the equalityMatch xml elements on the filter string
$webfilter->equalityMatch( { attribute => "sn",
value => "Bunny" } );
Use the "not" to make more complex compound filter
$webfilter->not();
put the equalityMatch xml elements on the filter string
$webfilter->equalityMatch( { attribute =>
"givenname",
value => "jay" } );
Put the ending not element on the filter string
$webfilter->endnot();
Put the ending and element on the filter string
$webfilter->endand();
Put the < /filter > element on the filter string
$webfilter->terminate();
Get the resulting filter
$filter = $webfilter->getFilter();
By combining the and, or , and not methods you can make some
very complex filters.
Requirements:
· Perl
0 comments
Add to
Net DSML filter pm Version History
Related Software
|
|
From category: Libraries |
| Exact Image is a fast (and soon modern and generic) image processing library.... |
|
|
From category: Interpreters |
| FramerD is a portable distributed object-oriented database designed to support the maintenance and sharing of knowledge bases.... |
|
|
From category: Bug-Tracking |
| Bluetail Ticket Tracker 4.0.2 is bug tracking software developed by Torbjorn Tornkvist. The Bluetail Ticket Tracker (BTT) is a system for creating, storing and keeping track of tickets. A ticket de... |
|
|
From category: Libraries |
| Business::Travel::OTA 0.53 is libraries software developed by Stephen Adkins. Business::Travel::OTA is a Perl module with tools for handling OTA-compliant (Open Travel Alliance) messages. SY... |
|
|
From category: Quality-Assurance-and-Testing |
| qaManager is a web based application used for keeping track of Engineering and Customer releases of Software Projects.... |
|
|
From category: Libraries |
| Evolution Data Server 1.9.2 is libraries software developed by Novell Inc.. Evolution Data Server provides a single database for common, desktop-wide information, such as a user\'s address book or... |
|
|
From category: Libraries |
| DBIx::Wrapper 0.24 is libraries software developed by Don Owens. DBIx::Wrapper library is a Perl module that serves as a wrapper around DBI, providing additional functionality and convenience metho... |
|
|
From category: Libraries |
| Py++ is an object-oriented framework for creating a code generator for the Boost.Python library.... |
|
|
From category: Interpreters |
| ccscript 3 1.1.2 is interpreters software developed by David Sugar. GNU ccScript is a C++ class framework for creating a virtual machine execution system for use with and as a scripting/assembler l... |
|
|
From category: Libraries |
| Caches.rb 0.2.0 is libraries software developed by Yurii Rashkovskii. Caches.rb project is a simple method caching library. Requirements: Ruby What\'s New in This Release: Min... |
|
|
From category: Libraries |
| Embperl::TOC 2.2.0 is libraries software developed by G. Richter and A. Beckert. Embperl::TOC is a Perl module for Embperl Documenation: Table of Contents. Embperl can be used in many ways a... |
|
|
From category: Code-Generators |
| re2c is a tool for writing fast and flexible lexers.... |
|
|
From category: Libraries |
| Dante 1.1.19-pre1 is libraries software developed by Inferno Nettverk A/S. Dante is a circuit-level firewall and proxy that can be used to provide convenient and secure network connectivity to a wi... |
|
|
From category: Bug-Tracking |
| Double Choco LatteBugzero 0.9.4.4 is bug tracking software developed by Michael Dean. Double Choco Latte is a GNU Enterprise package that provides basic project management capabilities, time tracki... |
|
|
From category: Libraries |
| AxKit2::Plugin 1.1 is libraries software developed by AxKit2::Plugin Team. AxKit2::Plugin is a base class for all plugins. An AxKit2 plugin allows you to hook into various parts of processin... |
Leave a comment