Leosac
0.8.0
Open Source Access Control
|
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... | |
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.
|
virtual |
Build a new Profile object by merging two profiles.
@warn works only with SimpleAccessProfile object.
Definition at line 28 of file ProfileMerger.cpp.