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

Helper class that merges profile together. More...

#include <ProfileMerger.hpp>

Public Member Functions

virtual IAccessProfilePtr merge (std::shared_ptr< const IAccessProfile > p1, std::shared_ptr< const IAccessProfile > p2)
 Build a new Profile object by merging two profiles. More...
 

Detailed Description

Helper class that merges profile together.

This is useful to build a profile for a user that is in multiple group.

Ideally this class could use a strategy-like pattern, but since we only have one way to merge profile yet, we wont.

Definition at line 36 of file ProfileMerger.hpp.

Member Function Documentation

◆ merge()

IAccessProfilePtr ProfileMerger::merge ( std::shared_ptr< const IAccessProfile p1,
std::shared_ptr< const IAccessProfile p2 
)
virtual

Build a new Profile object by merging two profiles.

@warn works only with SimpleAccessProfile object.

Definition at line 28 of file ProfileMerger.cpp.


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