17 private $ECCDesc =
"Performs file scanning to find text fragments that could be relevant for export control. Note: More keywords related to export control can be included using the configuration file.";
19 public function __construct()
21 $this->Name =
"agent_ecc";
22 $this->Title = _(
"ECC Analysis <img src=\"images/info_16.png\" data-toggle=\"tooltip\" title=\"".$this->ECCDesc.
"\" class=\"info-bullet\"/>");
23 $this->AgentName =
"ecc";
25 parent::__construct();
34 return CheckARS($uploadId, $this->AgentName,
"ecc scanner",
"ecc_ars");
41 public function AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=[],
42 $arguments=
null, $request=
null, $unpackArgs=
null)
44 if ($request !=
null && !is_array($request)) {
45 $unpackArgs = intval($request->get(
'scm', 0)) == 1 ?
'-I' :
'';
47 $unpackArgs = intval(@$_POST[
'scm']) == 1 ?
'-I' :
'';
54 if ($jobQueueId != 0) {
59 if (!empty($unpackArgs)) {
60 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_mimetype"),$uploadId,$args,$request);
62 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, array(
"agent_adj2nest"), $uploadId,
null, $request);
74 foreach ($dependencies as $dependency) {
75 if ($dependency == $agentName) {
78 if (is_array($dependency) && $agentName == $dependency[
'name']) {
Create UI plugin for ECC agent.
isAgentIncluded($dependencies, $agentName)
AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=[], $arguments=null, $request=null, $unpackArgs=null)
AgentHasResults($uploadId=0)
doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null, $request=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.