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

Describe the membership of an User with regroup to a Group. More...

#include <UserGroupMembership.hpp>

Public Member Functions

 UserGroupMembership ()
 
const UserGroupMembershipIdid () const
 
const UserLWPtruser () const
 
UserId user_id () const
 
void user (UserPtr user)
 
const GroupLWPtr group () const
 
GroupId group_id () const
 
void group (GroupPtr group)
 
const boost::posix_time::ptime & timestamp () const
 
GroupRank rank () const
 
void rank (const GroupRank &rank)
 

Private Attributes

UserGroupMembershipId id_
 
UserLWPtr user_
 
GroupLWPtr group_
 
boost::posix_time::ptime timestamp_
 
GroupRank rank_
 
const size_t version_
 

Friends

class odb::access
 

Detailed Description

Describe the membership of an User with regroup to a Group.

This class is "database enabled".

Note
A membership is deleted on cascade when either its Group or its User is deleted.

Definition at line 39 of file UserGroupMembership.hpp.

Constructor & Destructor Documentation

◆ UserGroupMembership()

UserGroupMembership::UserGroupMembership ( )

Definition at line 28 of file UserGroupMembership.cpp.

Member Function Documentation

◆ group() [1/2]

const GroupLWPtr UserGroupMembership::group ( ) const

Definition at line 51 of file UserGroupMembership.cpp.

◆ group() [2/2]

void UserGroupMembership::group ( GroupPtr  group)

Definition at line 56 of file UserGroupMembership.cpp.

◆ group_id()

GroupId UserGroupMembership::group_id ( ) const

Definition at line 81 of file UserGroupMembership.cpp.

◆ id()

const UserGroupMembershipId & UserGroupMembership::id ( ) const

Definition at line 36 of file UserGroupMembership.cpp.

◆ rank() [1/2]

GroupRank UserGroupMembership::rank ( ) const

Definition at line 66 of file UserGroupMembership.cpp.

◆ rank() [2/2]

void UserGroupMembership::rank ( const GroupRank rank)

Definition at line 71 of file UserGroupMembership.cpp.

◆ timestamp()

const boost::posix_time::ptime & UserGroupMembership::timestamp ( ) const

Definition at line 61 of file UserGroupMembership.cpp.

◆ user() [1/2]

const UserLWPtr & UserGroupMembership::user ( ) const

Definition at line 41 of file UserGroupMembership.cpp.

◆ user() [2/2]

void UserGroupMembership::user ( UserPtr  user)

Definition at line 46 of file UserGroupMembership.cpp.

◆ user_id()

UserId UserGroupMembership::user_id ( ) const

Definition at line 76 of file UserGroupMembership.cpp.

Friends And Related Function Documentation

◆ odb::access

friend class odb::access
friend

Definition at line 80 of file UserGroupMembership.hpp.

Member Data Documentation

◆ group_

GroupLWPtr Leosac::Auth::UserGroupMembership::group_
private

Definition at line 69 of file UserGroupMembership.hpp.

◆ id_

UserGroupMembershipId Leosac::Auth::UserGroupMembership::id_
private

Definition at line 61 of file UserGroupMembership.hpp.

◆ rank_

GroupRank Leosac::Auth::UserGroupMembership::rank_
private

Definition at line 75 of file UserGroupMembership.hpp.

◆ timestamp_

boost::posix_time::ptime Leosac::Auth::UserGroupMembership::timestamp_
private

Definition at line 72 of file UserGroupMembership.hpp.

◆ user_

UserLWPtr Leosac::Auth::UserGroupMembership::user_
private

Definition at line 65 of file UserGroupMembership.hpp.

◆ version_

const size_t Leosac::Auth::UserGroupMembership::version_
private

Definition at line 78 of file UserGroupMembership.hpp.


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