1 #ifndef _ots_WizardSupervisor_h
2 #define _ots_WizardSupervisor_h
4 #include "otsdaq-core/SOAPUtilities/SOAPMessenger.h"
6 #include <xdaq/Application.h>
7 #include <xgi/Method.h>
8 #include "otsdaq-core/Macros/XDAQApplicationMacros.h"
10 #include <xoap/Method.h>
11 #include <xoap/SOAPBody.h>
12 #include <xoap/SOAPEnvelope.h>
13 #include <xoap/domutils.h>
15 #include <cgicc/HTMLClasses.h>
16 #include <cgicc/HTMLDoctype.h>
17 #include <cgicc/HTTPCookie.h>
18 #include <cgicc/HTTPHeader.h>
23 #include "otsdaq-core/CodeEditor/CodeEditor.h"
24 #include "otsdaq-core/SupervisorInfo/AllSupervisorInfo.h"
28 class HttpXmlDocument;
50 void generateURL(
void);
53 void Default(xgi::Input* in, xgi::Output* out)
throw(xgi::exception::Exception);
54 void verification(xgi::Input* in, xgi::Output* out)
throw(xgi::exception::Exception);
55 void request(xgi::Input* in, xgi::Output* out)
throw(xgi::exception::Exception);
56 void requestIcons(xgi::Input* in, xgi::Output* out)
throw(xgi::exception::Exception);
58 void editSecurity(xgi::Input* in, xgi::Output* out)
throw(xgi::exception::Exception);
59 void UserSettings(xgi::Input* in, xgi::Output* out)
throw(xgi::exception::Exception);
60 void tooltipRequest(xgi::Input* in,
61 xgi::Output* out)
throw(xgi::exception::Exception);
62 void toggleSecurityCodeGeneration(xgi::Input* in,
63 xgi::Output* out)
throw(xgi::exception::Exception);
64 std::string validateUploadFileType(
const std::string fileType);
65 void cleanUpPreviews();
66 void savePostPreview(std::string& subject,
68 const std::vector<cgicc::FormFile>& files,
73 xoap::MessageReference supervisorSequenceCheck(xoap::MessageReference msg)
throw(
74 xoap::exception::Exception);
75 xoap::MessageReference supervisorLastConfigGroupRequest(
76 xoap::MessageReference msg)
throw(xoap::exception::Exception);
79 std::string securityCode_;
80 bool defaultSequence_;
81 std::vector<std::string> allowedFileUploadTypes_, matchingFileUploadTypes_;
83 std::string supervisorClass_;
84 std::string supervisorClassNoNamespace_;
88 ADMIN_PERMISSIONS_THRESHOLD = 255,
89 EXPERIMENT_NAME_MIN_LENTH = 3,
90 EXPERIMENT_NAME_MAX_LENTH = 25,
91 USER_DATA_EXPIRATION_TIME = 60 * 20,