1 #include "otsdaq/CodeEditor/CodeEditorSupervisor.h"
11 CodeEditorSupervisor::~CodeEditorSupervisor(
void)
13 __SUP_COUT__ <<
"Destroying..." << __E__;
19 void CodeEditorSupervisor::defaultPage(xgi::Input* , xgi::Output* out)
21 __SUP_COUT__ <<
"ApplicationDescriptor LID=" << getApplicationDescriptor()->getLocalId() << __E__;
22 *out <<
"<!DOCTYPE HTML><html lang='en'><frameset col='100%' row='100%'><frame "
23 "src='/WebPath/html/CodeEditor.html?urn="
24 << getApplicationDescriptor()->getLocalId() <<
"'></frameset></html>";
31 void CodeEditorSupervisor::setSupervisorPropertyDefaults()
33 CorePropertySupervisorBase::setSupervisorProperty(CorePropertySupervisorBase::SUPERVISOR_PROPERTIES.UserPermissionsThreshold,
34 std::string() +
"*=1 | codeEditor=-1");
41 void CodeEditorSupervisor::forceSupervisorPropertyValues()
43 CorePropertySupervisorBase::setSupervisorProperty(CorePropertySupervisorBase::SUPERVISOR_PROPERTIES.RequireUserLockRequestTypes,
"codeEditor");
44 CorePropertySupervisorBase::setSupervisorProperty(CorePropertySupervisorBase::SUPERVISOR_PROPERTIES.RequireSecurityRequestTypes,
"codeEditor");
57 if(requestType ==
"codeEditor")
59 __SUP_COUT__ <<
"Code Editor" << __E__;
61 codeEditor_.xmlRequest(CgiDataUtilities::getData(cgiIn,
"option"),
67 else if(requestType ==
"readOnlycodeEditor")
69 codeEditor_.xmlRequest(CgiDataUtilities::getData(cgiIn,
"option"),
77 __SUP_SS__ <<
"requestType Request, " << requestType <<
", not recognized." << __E__;