Leosac  0.8.0
Open Source Access Control
Leosac::Auth::GroupValidator Class Reference

Validate a Group object's attributes, throwing ModelException if some attributes are invalid. More...

#include <Group.hpp>

Static Public Member Functions

static void validate (const Group &grp)
 Validate the group's attributes. More...
 
static void validate_name (const std::string &name)
 

Detailed Description

Validate a Group object's attributes, throwing ModelException if some attributes are invalid.

Validations rules:

  • name must contains ascii alphanumeric character, "-", "_" or ".".

Definition at line 43 of file Group.hpp.

Member Function Documentation

◆ validate()

void GroupValidator::validate ( const Group grp)
static

Validate the group's attributes.

Definition at line 167 of file Group.cpp.

◆ validate_name()

void GroupValidator::validate_name ( const std::string &  name)
static

Definition at line 172 of file Group.cpp.


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