21#if !defined(ms_users_group_INCLUDED_)
22#define ms_users_group_INCLUDED_
32namespace matrix_science {
48 GROUPID_GUESTS = 0x0001,
49 GROUPID_ADMINISTRATORS = 0x0002,
50 GROUPID_POWERUSERS = 0x0003,
51 GROUPID_DAEMONS = 0x0004,
52 GROUPID_INTEGRA_SYSTEM = 0x0005,
60 ms_group(
const int groupID,
const std::string groupName);
72 bool addUser(
const int userID);
75 bool deleteUser(
const int userID);
78 bool isUserInGroup(
const int userID)
const;
81 std::vector<int> getAllUserIDs(
const void *
const security = NULL,
const int voidSortby = 1)
const;
84 std::string getName()
const;
87 void setName(
const std::string newVal);
93 bool removePermittedTask(
const int taskID);
105 void setID(
int newVal);
108 bool saveStringParam(
const std::string name,
const std::string param);
112 bool getStringParam(
const std::string name, std::string & param)
const;
116 std::string getStringParam(
const std::string name)
const;
119 bool clearParam(
const std::string name);
122#ifndef DOXYGEN_SHOULD_SKIP_THIS
123 typedef std::map<std::string, std::string> customParams_t;
124 customParams_t getAllCustomParams()
const {
return params_; }
130 typedef std::set<int> users_t;
131 ms_security_tasks tasks_;
132 std::string groupName_;
134 customParams_t params_;
136 void copyFrom(
const ms_group * src);
137 void updateUsersArrayTasks();
This class will normally only be used by Mascot Security Administration applications.
Definition: ms_security_group.hpp:39
systemids
Definitions for predefined groups.
Definition: ms_security_group.hpp:47
Each group has permission to do one or more tasks. This class defines an individual task.
Definition: ms_security_task.hpp:51
Each group has permission to do one or more tasks. This class defines a collection of tasks.
Definition: ms_security_tasks.hpp:51