16 public function __construct()
18 $this->Name =
"agent_ecc";
19 $this->Title = _(
"ECC Analysis, scanning for text fragments potentially relevant for export control");
20 $this->AgentName =
"ecc";
22 parent::__construct();
31 return CheckARS($uploadId, $this->AgentName,
"ecc scanner",
"ecc_ars");
38 public function AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=
null)
40 $unpackArgs = intval(@$_POST[
'scm']) == 1 ?
'-I' :
'';
46 if ($jobQueueId != 0) {
51 if (!empty($unpackArgs)) {
52 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_mimetype"),$uploadId,$args);
54 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_adj2nest"), $uploadId);
66 foreach ($dependencies as $dependency) {
67 if ($dependency == $agentName) {
70 if (is_array($dependency) && $agentName == $dependency[
'name']) {
Create UI plugin for ECC agent.
isAgentIncluded($dependencies, $agentName)
AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null)
AgentHasResults($uploadId=0)
doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=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.