21#if !defined(ms_security_tasks_INCLUDED_)
22#define ms_security_tasks_INCLUDED_
31namespace matrix_science {
66 SECTASK_ALLOWMSMS = 2,
67 SECTASK_ALLOWMSMSNOENZYME = 3,
68 SECTASK_ALLOWPMFNOENZYME = 4,
69 SECTASK_MAXCONCURRENTSEARCHES = 5,
70 SECTASK_MAXJOBPRIORITY = 6,
71 SECTASK_MAXQUERIES = 7,
72 SECTASK_MAXEXECUTIONTIME = 8,
74 SECTASK_NAMEDFASTA = 10,
75 SECTASK_MAXVARMODS = 11,
76 SECTASK_MAXETVARMODS = 12,
78 SECTASK_SEESEARCHINGROUP = 13,
79 SECTASK_SEEALLSEARCHESWITHUSERID= 14,
80 SECTASK_SEEOLDSEARCHES = 15,
81 SECTASK_USEMSREVIEWEXE = 16,
83 SECTASK_VIEWCONFIGUSINGMSSTATUS = 17,
84 SECTASK_MODIFYOWNPROFILE = 18,
86 SECTASK_DAEMONCLIENT = 19,
87 SECTASK_DISTILLERCLIENT = 20,
88 SECTASK_ALLOWSPOOFOTHERUSER = 22,
89 SECTASK_INTEGRASYSTEMACCOUNT = 23,
90 SECTASK_BIOTOOLSBATCH = 24,
91 SECTASK_SPOOFNAMEDGROUPSONLY = 25,
92 SECTASK_DOWNLOAD_DISTILLER_XML = 26,
93 SECTASK_UPLOAD_DISTILLER_XML = 27,
95 SECTASK_ADMINPAGES = 30,
96 SECTASK_ACCESSDBSETUP = 31,
97 SECTASK_USEMSSTATUSEXE = 32,
98 SECTASK_MSSTATUSEXECLUSTER = 33,
99 SECTASK_MSSTATUSEXERETRYDB = 34,
100 SECTASK_KILLTASKINGROUP = 35,
101 SECTASK_KILLALLTASK = 36,
102 SECTASK_VIEWCONFIG = 37,
103 SECTASK_EDITCONFIG = 38,
105 SECTASK_MAXETACCESSIONS = 50,
106 SECTASK_MAXNOENZQUERIES = 51,
107 SECTASK_MAXFASTAFILES = 52,
108 SECTASK_DENYQUANT = 53,
109 SECTASK_DATAURLPROTOCOLS = 54,
110 SECTASK_DATAURLMAXSIZE = 55,
112 SECTASK_SEESEARCHINANYGROUP = 60,
114 MISECTASK_ACCESS =100,
115 MISECTASK_PROTEINAPPROVAL =101,
116 MISECTASK_ADDIMPORTFILTER =102,
117 MISECTASK_ADMIN =103,
118 MISECTASK_ADDCUSTOMREPORT =104,
119 MISECTASK_DELETECUSTOMREPORT =105,
120 MISECTASK_ADDEXCLUSIONFILE =106,
121 MISECTASK_DELETEEXCLUSIONFILE =107,
122 MISECTASK_SENDNOTIFICATION =108
142 bool loadFromFile(
const char * filename);
145 bool saveToFile(
const char * filename);
151 bool removeTask(
const int taskID);
154 void removeAllTasks();
157 bool isPermitted(
const int taskID)
const;
160 bool isPermitted_long(
const int taskID,
const long value)
const;
163 bool isPermitted_double(
const int taskID,
const double value)
const;
166 bool isPermitted_string(
const int taskID,
const std::string value)
const;
169 bool isFastaPermitted(
const std::string database)
const;
172 int getNumberOfTasks()
const;
181 bool isTaskExists(
const int taskID)
const;
192 void updateAllUsersTasks(
const std::set<int> & allUsers);
195 typedef std::map<int, ms_security_task> tasksSet;
This class is used as a base class for several Mascot Parser classes.
Definition: ms_errors.hpp:696
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
TASKID
Definitions for TASKID.
Definition: ms_security_tasks.hpp:64