FOSSology  4.4.0
Open Source License Compliance by Open Source Software
BucketAgentPlugin Class Reference
Inheritance diagram for BucketAgentPlugin:
Inheritance graph
Collaboration diagram for BucketAgentPlugin:
Collaboration graph

Public Member Functions

 preInstall ()
 
 AgentHasResults ($uploadId=0)
 
 AgentAdd ($jobId, $uploadId, &$errorMsg, $dependencies=[], $arguments=null, $request=null, $unpackArgs=null)
 
- Public Member Functions inherited from Fossology\Lib\Plugin\AgentPlugin
 execute ()
 
 postInstall ()
 
 unInstall ()
 
 getName ()
 
 __toString ()
 

Private Attributes

 $bucketDesc
 

Additional Inherited Members

- Public Attributes inherited from Fossology\Lib\Plugin\AgentPlugin
const PRE_JOB_QUEUE = 'preJq'
 
 $AgentName
 
 $Name = "agent_abstract"
 
 $Dependency = array()
 
 $Title = 'how to show checkbox'
 
 $PluginLevel = 10
 
 $State = PLUGIN_STATE_READY
 
 $DBaccess = PLUGIN_DB_WRITE
 
- Protected Member Functions inherited from Fossology\Lib\Plugin\AgentPlugin
 doAgentAdd ($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null, $request=null)
 
 implicitAgentAdd ($jobId, $uploadId, &$errorMsg, $dependency, $request)
 

Detailed Description

Definition at line 14 of file agent-bucket.php.

Member Function Documentation

◆ AgentAdd()

BucketAgentPlugin::AgentAdd (   $jobId,
  $uploadId,
$errorMsg,
  $dependencies = [],
  $arguments = null,
  $request = null,
  $unpackArgs = null 
)

Parameters
int$jobId
int$uploadId
string$errorMsg- error message on failure
array$dependencies- array of plugin names representing dependencies.
mixed$arguments(ignored if not a string)
Request | null$requestSymfony request
string$unpackArgsUnunpack args from adj2nest
Returns
int
  • jqId Successfully queued
  • 0 Not queued, latest version of agent has previously run successfully
  • -1 Not queued, error, error string in $ErrorMsg
See also
Fossology::Lib::Plugin::AgentPlugin::AgentAdd()

Reimplemented from Fossology\Lib\Plugin\AgentPlugin.

Definition at line 99 of file agent-bucket.php.

◆ AgentHasResults()

BucketAgentPlugin::AgentHasResults (   $uploadId = 0)

Parameters
int$uploadId
Returns
int
  • 0 = no or this agent can be re run multiple times
  • 1 = yes, from latest agent version
  • 2 = yes, from older agent version
See also
Fossology::Lib::Plugin::AgentPlugin::AgentHasResults()

Reimplemented from Fossology\Lib\Plugin\AgentPlugin.

Definition at line 63 of file agent-bucket.php.

◆ preInstall()

BucketAgentPlugin::preInstall ( )

Register the plugin to UI

See also
Fossology::Lib::Plugin::AgentPlugin::preInstall()

Reimplemented from Fossology\Lib\Plugin\AgentPlugin.

Definition at line 50 of file agent-bucket.php.

Member Data Documentation

◆ $bucketDesc

BucketAgentPlugin::$bucketDesc
private
Initial value:
= "Performs grouping based on different needs. you can group licenses as 'Good Licenses', 'Academic Licenses', 'Copyleft Licenses' etc. One can also group files by copyright holder, or by file-type, or files without my copyright.
Note: There is no FOSSology UI to create bucket pools, bucket definitions, scripts, or anything else you need."

Definition at line 17 of file agent-bucket.php.


The documentation for this class was generated from the following file: