27 public function __construct() {
28 $this->Name =
"agent_ecc";
29 $this->Title = _(
"ECC Analysis, scanning for text fragments potentially relevant for export control");
30 $this->AgentName =
"ecc";
32 parent::__construct();
41 return CheckARS($uploadId, $this->AgentName,
"ecc scanner",
"ecc_ars");
48 public function AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null)
50 $unpackArgs = intval(@$_POST[
'scm']) == 1 ?
'-I' :
'';
56 if ($jobQueueId != 0) {
61 if (!empty($unpackArgs)) {
62 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_mimetype"),$uploadId,$args);
64 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_adj2nest"), $uploadId);
76 foreach ($dependencies as $dependency) {
77 if ($dependency == $agentName) {
80 if (is_array($dependency) && $agentName == $dependency[
'name']) {
IsAlreadyScheduled($job_pk, $AgentName, $upload_pk)
Check if an agent is already scheduled in a job.
Create UI plugin for ECC agent.
AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null)
isAgentIncluded($dependencies, $agentName)
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.
AgentHasResults($uploadId=0)
doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null)