2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
2020-01-08 12:04:51 +00:00
|
|
|
|
/// Copyright (c) 2013-2020 Sensus Slovensko a.s.
|
2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
using System;
|
2020-01-08 12:04:51 +00:00
|
|
|
|
using System.Collections.Generic;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2015-12-04 16:17:20 +00:00
|
|
|
|
namespace Config.Entities
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
|
|
|
|
|
public class Group
|
|
|
|
|
|
{
|
|
|
|
|
|
public virtual int Id { get; protected set; }
|
2021-09-23 09:46:40 +00:00
|
|
|
|
public virtual Common.GID GID { get; set; }
|
2020-01-08 12:04:51 +00:00
|
|
|
|
public virtual long AccessFlags { get; set; } /// Bitfield of access flags: bit0 .. bit62
|
|
|
|
|
|
public virtual IList<User> Users { get; set; } /// Group can be a member of a list of users
|
2017-05-01 09:16:23 +00:00
|
|
|
|
|
|
|
|
|
|
public Group()
|
|
|
|
|
|
{
|
2020-01-08 12:04:51 +00:00
|
|
|
|
Users = new List<User>();
|
2017-05-01 09:16:23 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2021-09-23 09:46:40 +00:00
|
|
|
|
public Group(Common.GID gid)
|
2020-01-08 12:04:51 +00:00
|
|
|
|
: this()
|
|
|
|
|
|
{
|
2019-12-03 19:57:37 +00:00
|
|
|
|
GID = gid;
|
2017-05-01 09:16:23 +00:00
|
|
|
|
}
|
2020-01-08 12:04:51 +00:00
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|