Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions
ArcSec::PolicyParser Class Reference

A interface which will isolate the policy object from actual policy storage (files, urls, database) More...

#include <PolicyParser.h>

List of all members.

Public Member Functions

 PolicyParser ()
virtual PolicyparsePolicy (const Source &source, std::string policyclassname, EvaluatorContext *ctx)
 Parse policy.
virtual ~PolicyParser ()

Detailed Description

A interface which will isolate the policy object from actual policy storage (files, urls, database)

Parse the policy from policy source (e.g. files, urls, database, etc.).

Definition at line 15 of file PolicyParser.h.


Constructor & Destructor Documentation

Definition at line 22 of file PolicyParser.cpp.

                          {
}
virtual ArcSec::PolicyParser::~PolicyParser ( ) [inline, virtual]

Definition at line 27 of file PolicyParser.h.

{};

Member Function Documentation

Policy * PolicyParser::parsePolicy ( const Source source,
std::string  policyclassname,
EvaluatorContext ctx 
) [virtual]

Parse policy.

Parameters:
sourcelocation of the policy
policyclassnamename of the policy for ClassLoader
ctxEvaluatorContext which includes the **Factory

Definition at line 114 of file PolicyParser.cpp.

                                                                                                       {
  Arc::XMLNode node = source.Get();  
  Arc::ClassLoader* classloader = NULL;
  classloader=Arc::ClassLoader::getClassLoader();
  ArcSec::Policy * policy = (ArcSec::Policy*)(classloader->Instance(policyclassname, &node));
  if(policy == NULL) { logger.msg(ERROR, "Can not generate policy object"); return NULL; }
  policy->setEvaluatorContext(ctx);
  policy->make_policy();

  return policy;
}

Here is the call graph for this function:

Here is the caller graph for this function:


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