You define a view to the DSA process by using the set view command.
You might find it useful to create a file settings/views.dxc to contain your view definitions. This file should include a clear view command before the set view commands. See set view Command.
A view command has a header and a body. The header identifies the view and contains the view name, DN, and post-processing options. The view body consists of a list of searches, called phases. Each phase has a DN and a filter (and some ancillary information).
This is the set view command used to create the view discussed in Example: A View Used by a Pay TV Company:
clear view;
set view "Channel list" = {
description = "Display list of channels for a given MACAddress"
entry = <c AU><o Views><cn "Channel list">
( phase = 1
subtree = "o=Devices,c=AU"
filter = "(MACAddress=$MACAddress)"
options = ignore-from-result ),
( phase = 2
subtree = "o=Subscribers,c=AU"
filter = "(DevGuids=$1:DevGuid)"
eis = Package
options = result-required, ignore-from-result ),
( phase = 3
subtree = "o=Packages,c=AU"
filter = "(PackageName=$2:Package)" ),
( phase = 4
subtree = "o=Services,c=AU"
filter = "(ServiceName=$3:Services)"
eis = Channel )
};
|
Copyright © 2013 CA.
All rights reserved.
|
|