Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Attributes
Arc::InfoFilter Class Reference

Filters information document according to identity of requestor. More...

#include <InfoFilter.h>

Collaboration diagram for Arc::InfoFilter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 InfoFilter (MessageAuth &id)
 Creates object and associates identity.
bool Filter (XMLNode doc) const
 Filter information document according to internal policies.
bool Filter (XMLNode doc, const InfoFilterPolicies &policies, const NS &ns) const
 Filter information document according to internal and external policies.

Private Attributes

MessageAuthid_

Detailed Description

Filters information document according to identity of requestor.

Identity is compared to policies stored inside information document and external ones. Parts of document which do not pass policy evaluation are removed.

Definition at line 41 of file InfoFilter.h.


Constructor & Destructor Documentation

Creates object and associates identity.

Associated identity is not copied, hence passed argument must not be destroyed while this method is used.

Definition at line 173 of file InfoFilter.cpp.

                                     :id_(id) {
}

Member Function Documentation

bool Arc::InfoFilter::Filter ( XMLNode  doc) const

Filter information document according to internal policies.

In provided document all policies and nodes which have their policies evaluated to negative result are removed.

Definition at line 176 of file InfoFilter.cpp.

                                         {
  std::list< std::pair<std::string,XMLNode> > policies;
  NS ns;
  return Filter(doc,policies,ns);
}

Here is the caller graph for this function:

bool Arc::InfoFilter::Filter ( XMLNode  doc,
const InfoFilterPolicies policies,
const NS ns 
) const

Filter information document according to internal and external policies.

In provided document all policies and nodes which have their policies evaluated to negative result are removed. External policies are provided in policies argument. First element of every pair is XPath defining to which XML node policy must be applied. Second element is policy itself. Argument ns defines XML namespaces for XPath evaluation.


Member Data Documentation

Definition at line 43 of file InfoFilter.h.


The documentation for this class was generated from the following files: