limal::nfs_server::KNfsIdmapdConf Class Reference

#include <KNfsIdmapdConf.hpp>

Inheritance diagram for limal::nfs_server::KNfsIdmapdConf:
limal::nfs_server::IdmapdConf

List of all members.

Public Member Functions

 KNfsIdmapdConf ()
 KNfsIdmapdConf (const IdmapdConf &conf)
 ~KNfsIdmapdConf ()
bool validIdmapdEntry (const BLOCXX_NAMESPACE::String &name, const BLOCXX_NAMESPACE::String &value) const
BLOCXX_NAMESPACE::String verifyIdmapdEntry (const IdmapdEntry &entry) const
BLOCXX_NAMESPACE::Array
< BLOCXX_NAMESPACE::String > 
verifyIdmapdSection (const IdmapdSection &section) const
const BLOCXX_NAMESPACE::Array
< BLOCXX_NAMESPACE::String > 
verifyConf ()
void load (const BLOCXX_NAMESPACE::String &filename)
void save (const BLOCXX_NAMESPACE::String &idmapdFile, const BLOCXX_NAMESPACE::String &backupSuffix)

Static Public Member Functions

static IdmapdConf parseIdmapdConfFile (const BLOCXX_NAMESPACE::String &idmapdFile)
static IdmapdEntry parseIdmapdEntry (const BLOCXX_NAMESPACE::String &entry)
static void writeIdmapdConfFile (const IdmapdConf &idmapdConf, const BLOCXX_NAMESPACE::String &idmapdFile, const BLOCXX_NAMESPACE::String &backupSuffix)

Private Attributes

KNfsIdmapdRules * rules
bool dirty

Constructor & Destructor Documentation

limal::nfs_server::KNfsIdmapdConf::KNfsIdmapdConf (  ) 
limal::nfs_server::KNfsIdmapdConf::KNfsIdmapdConf ( const IdmapdConf conf  ) 
limal::nfs_server::KNfsIdmapdConf::~KNfsIdmapdConf (  ) 

Member Function Documentation

void limal::nfs_server::KNfsIdmapdConf::load ( const BLOCXX_NAMESPACE::String &  filename  ) 

Loads idmapd entries from the specified idmapd file

Parameters:
idmapdFile The idmapd file name.
static IdmapdConf limal::nfs_server::KNfsIdmapdConf::parseIdmapdConfFile ( const BLOCXX_NAMESPACE::String &  idmapdFile  )  [static]

Parse specified idmapd file and return a IdmapConf object built there of .

static IdmapdEntry limal::nfs_server::KNfsIdmapdConf::parseIdmapdEntry ( const BLOCXX_NAMESPACE::String &  entry  )  [static]

Parse the specified (idmapd file encoded) line and construct an Idmapd entry object.

void limal::nfs_server::KNfsIdmapdConf::save ( const BLOCXX_NAMESPACE::String &  idmapdFile,
const BLOCXX_NAMESPACE::String &  backupSuffix 
)

Saves current idmapd entries to specified idmapd file name creating a backup first if backupSuffix is not empty and the idmapd file alteady existed.

Parameters:
idmapdFile The idmapd file name.
backupSuffix The suffix appended to idmapdFile while writing a backup file.
bool limal::nfs_server::KNfsIdmapdConf::validIdmapdEntry ( const BLOCXX_NAMESPACE::String &  name,
const BLOCXX_NAMESPACE::String &  value 
) const
const BLOCXX_NAMESPACE ::Array< BLOCXX_NAMESPACE ::String> limal::nfs_server::KNfsIdmapdConf::verifyConf (  ) 

checks for essential sections and dependencies apart from checking individual sections using verifyIdmapdSection ()

BLOCXX_NAMESPACE ::String limal::nfs_server::KNfsIdmapdConf::verifyIdmapdEntry ( const IdmapdEntry entry  )  const
BLOCXX_NAMESPACE ::Array< BLOCXX_NAMESPACE ::String> limal::nfs_server::KNfsIdmapdConf::verifyIdmapdSection ( const IdmapdSection section  )  const
static void limal::nfs_server::KNfsIdmapdConf::writeIdmapdConfFile ( const IdmapdConf idmapdConf,
const BLOCXX_NAMESPACE::String &  idmapdFile,
const BLOCXX_NAMESPACE::String &  backupSuffix 
) [static]

Saves specified idmapd entries to the idmapd file name creating a backup first, if backupSuffix is not empty and the idmapd file already existed.

Parameters:
entries The idmapd entries.
idmapdFile The idmapd file name.
backupSuffix The suffix appended to idmapdFile while writing a backup file.

Member Data Documentation

KNfsIdmapdRules* limal::nfs_server::KNfsIdmapdConf::rules [private]

The documentation for this class was generated from the following file:
Generated on Sun Aug 1 09:24:44 2010 for limal-nfs-server by  doxygen 1.6.3