6#ifndef __UNISECUREGEN_H
7#define __UNISECUREGEN_H
9#include "unifiltergen.h"
10#include "unipermgen.h"
12#include "wvstringlist.h"
35 UniPermGen::Credentials cred;
38 UniSecureGen(IUniConfGen *_gen, UniPermGen *_perms);
39 UniSecureGen(WvStringParm moniker, UniPermGen *_perms = NULL);
41 void setcredentials(
const UniPermGen::Credentials &_cred);
42 void setcredentials(WvStringParm user,
const WvStringList &groups);
58 bool findperm(
const UniConfKey &key, UniPermGen::Type type);
68 virtual void gencallback(
const UniConfKey &key, WvStringParm value);
An abstract iterator over keys and values in a generator.
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
A UniConfGen that delegates all requests to an inner generator.
UniSecureGen wraps a given generator and checks permissions (using a Unix-style scheme) before respon...
virtual void set(const UniConfKey &key, WvStringParm value)
Stores a string value for a key into the registry.
virtual void commit()
Commits any changes.
virtual Iter * recursiveiterator(const UniConfKey &key)
Like iterator(), but the returned iterator is recursive, that is, it will return children of the imme...
virtual void flush_buffers()
Overridden methods.
virtual bool refresh()
Refreshes information about a key recursively.
virtual WvString get(const UniConfKey &key)
Fetches a string value for a key from the registry.
virtual bool exists(const UniConfKey &key)
Without fetching its value, returns true if a key exists.
virtual bool haschildren(const UniConfKey &key)
Returns true if a key has children.
virtual Iter * iterator(const UniConfKey &key)
Returns an iterator over the children of the specified key.
WvString is an implementation of a simple and efficient printable-string class.