21 public function __construct()
23 $this->Name =
"agent_nomos";
25 "Nomos License Analysis, scanning for licenses using regular expressions");
26 $this->AgentName =
"nomos";
28 parent::__construct();
37 return CheckARS($uploadId, $this->AgentName,
"license scanner",
"nomos_ars");
44 public function AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=
null)
46 $unpackArgs = intval(@$_POST[
'scm']) == 1 ?
'-I' :
'';
52 if ($jobQueueId != 0) {
57 if (!empty($unpackArgs)) {
58 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_mimetype"),$uploadId,$args);
60 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_adj2nest"), $uploadId);
72 foreach ($dependencies as $dependency) {
73 if ($dependency == $agentName) {
76 if (is_array($dependency) && $agentName == $dependency[
'name']) {
doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null)
isAgentIncluded($dependencies, $agentName)
AgentHasResults($uploadId=0)
AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null)
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.
IsAlreadyScheduled($job_pk, $AgentName, $upload_pk)
Check if an agent is already scheduled in a job.