1 #ifndef _ots_Utilities_RemoteWebUsers_h
2 #define _ots_Utilities_RemoteWebUsers_h
4 #include "otsdaq-core/SOAPUtilities/SOAPMessenger.h"
5 #include "otsdaq-core/WebUsersUtilities/WebUsers.h"
10 #include "otsdaq-core/TableCore/TableGroupKey.h"
14 class AllSupervisorInfo;
15 class HttpXmlDocument;
30 std::ostringstream* out,
49 std::string getActiveUserList(
50 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* supervisorDescriptor);
51 void sendSystemMessage(
52 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* supervisorDescriptor,
53 const std::string& toUser,
54 const std::string& msg);
55 void makeSystemLogbookEntry(
56 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* supervisorDescriptor,
57 const std::string& entryText);
59 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* supervisorDescriptor,
60 const std::string& actionOfLastGroup,
61 std::string& actionTimeString);
65 bool cookieCodeIsActiveForRequest(
66 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* supervisorDescriptor,
67 std::string& cookieCode,
68 uint8_t* userPermissions = 0,
70 bool refreshCookie =
true,
71 std::string* userWithLock = 0);
73 bool getUserInfoForCookie(
74 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* supervisorDescriptor,
75 std::string& cookieCode,
76 std::string* userName,
77 std::string* displayName = 0,
78 uint64_t* activeSessionIndex = 0);
81 std::string ActiveUserList_;
82 time_t ActiveUserLastUpdateTime_;
85 ACTIVE_USERS_UPDATE_THRESHOLD =
89 std::string tmpUserWithLock_, tmpUserGroups_, tmpUsername_;
bool xmlRequestToGateway(cgicc::Cgicc &cgi, std::ostringstream *out, HttpXmlDocument *xmldoc, const AllSupervisorInfo &allSupervisorInfo, WebUsers::RequestUserInfo &userInfo)