Skip to content
Snippets Groups Projects
Commit 0cfaa0c2 authored by Steven Murray's avatar Steven Murray
Browse files

Add the bootstrap method Scheduler::createAdminHostWithoutAuthorizingRequester()

parent b5b1fd33
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,16 @@ void cta::Scheduler::createAdminHost(
m_db.createAdminHost(requester, hostName, comment);
}
//------------------------------------------------------------------------------
// createAdminHostWithoutAuthorizingRequester
//------------------------------------------------------------------------------
void cta::Scheduler::createAdminHostWithoutAuthorizingRequester(
const SecurityIdentity &requester,
const std::string &hostName,
const std::string &comment) {
m_db.createAdminHost(requester, hostName, comment);
}
//------------------------------------------------------------------------------
// deleteAdminHost
//------------------------------------------------------------------------------
......
......@@ -188,8 +188,7 @@ public:
/**
* Creates the specified administration host.
*
* @param requester The identity of the user requesting the creation of the
* administration host.
* @param requester The identity of the requester.
* @param hostName The network name of the administration host.
* @param comment The comment describing the administration host.
*/
......@@ -198,6 +197,23 @@ public:
const std::string &hostName,
const std::string &comment);
/**
* Creates the specified administration host with performing any authorisation
* checks.
*
* This method provides a way to bootstrap the list of administration hosts.
* This method does not perform any authorizations checks therefore please
* take any necessary precautions before calling this method.
*
* @param requester The identity of the requester.
* @param hostName The network name of the administration host.
* @param comment The comment describing the administration host.
*/
void createAdminHostWithoutAuthorizingRequester(
const SecurityIdentity &requester,
const std::string &hostName,
const std::string &comment);
/**
* Deletes the specified administration host.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment