1 #ifndef _ots_Utilities_RemoteWebUsers_h
2 #define _ots_Utilities_RemoteWebUsers_h
4 #include "otsdaq/SOAPUtilities/SOAPMessenger.h"
5 #include "otsdaq/WebUsersUtilities/WebUsers.h"
10 #include "otsdaq/TableCore/TableGroupKey.h"
15 class AllSupervisorInfo;
16 class HttpXmlDocument;
25 RemoteWebUsers(xdaq::Application* application, XDAQ_CONST_CALL xdaq::ApplicationDescriptor* gatewaySupervisorDescriptor);
42 void sendSystemMessage (
const std::string& toUser,
const std::string& message,
bool doEmail =
false);
43 void sendSystemMessage (
const std::string& toUser,
const std::string& subject,
const std::string& message,
bool doEmail =
false);
46 getLastTableGroup (
const std::string& actionOfLastGroup, std::string& returnedActionTimeString);
49 std::string >>& theGroups);
54 std::string ActiveUserList_;
55 time_t ActiveUserLastUpdateTime_;
58 ACTIVE_USERS_UPDATE_THRESHOLD = 2,
XDAQ_CONST_CALL xdaq::ApplicationDescriptor * gatewaySupervisorDescriptor_
void getLastTableGroups(std::map< std::string, std::tuple< std::string, TableGroupKey, std::string >> &theGroups)
RemoteWebUsers(xdaq::Application *application, XDAQ_CONST_CALL xdaq::ApplicationDescriptor *gatewaySupervisorDescriptor)
std::pair< std::string, TableGroupKey > getLastTableGroup(const std::string &actionOfLastGroup, std::string &returnedActionTimeString)
actionOfLastGroup = "Configured" or "Started", for example
std::string getActiveUserList(void)
void sendSystemMessage(const std::string &toUser, const std::string &message, bool doEmail=false)
void makeSystemLogEntry(const std::string &entryText)
bool xmlRequestToGateway(cgicc::Cgicc &cgi, std::ostringstream *out, HttpXmlDocument *xmldoc, const AllSupervisorInfo &allSupervisorInfo, WebUsers::RequestUserInfo &userInfo)