Unverified Commit 0ebe576a authored by Jerome Boucher's avatar Jerome Boucher
Browse files

fix/15334 : code refactoring

parent cd6c1c24
Pipeline #10307 failed with stages
in 50 seconds
......@@ -583,27 +583,4 @@ class scheduling
}
}
}
/**
* List service accounts available for a scheduling
*
* @param string $schedulingId scheduling Identifier
*
* @return array $serviceAccounts List of service accounts
*/
public function getServiceAccountsByScheduling($schedulingId)
{
$scheduling = $this->sdoFactory->read("batchProcessing/scheduling", $schedulingId);
if (is_null($scheduling)) {
throw \laabs::newException("batchProcessing/schedulingException", "Scheduling unknown");
}
$task = $this->readTask($scheduling->taskId);
$serviceAccountController = \laabs::newController("auth/serviceAccount");
$serviceAccounts = $serviceAccountController->getAccountsByPrivilege($task->route);
return $serviceAccounts;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment