#include <KNfsIdmapdConf.hpp>

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 §ion) 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 |
| limal::nfs_server::KNfsIdmapdConf::KNfsIdmapdConf | ( | ) |
| limal::nfs_server::KNfsIdmapdConf::KNfsIdmapdConf | ( | const IdmapdConf & | conf | ) |
| limal::nfs_server::KNfsIdmapdConf::~KNfsIdmapdConf | ( | ) |
| void limal::nfs_server::KNfsIdmapdConf::load | ( | const BLOCXX_NAMESPACE::String & | filename | ) |
Loads idmapd entries from the specified idmapd file
| 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.
| 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.
| entries | The idmapd entries. | |
| idmapdFile | The idmapd file name. | |
| backupSuffix | The suffix appended to idmapdFile while writing a backup file. |
bool limal::nfs_server::KNfsIdmapdConf::dirty [private] |
KNfsIdmapdRules* limal::nfs_server::KNfsIdmapdConf::rules [private] |