FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\UI\Ajax\AjaxExplorer Class Reference
Inheritance diagram for Fossology\UI\Ajax\AjaxExplorer:
Inheritance graph
Collaboration diagram for Fossology\UI\Ajax\AjaxExplorer:
Collaboration graph

Public Member Functions

 handle (Request $request)
 
- Public Member Functions inherited from Fossology\Lib\Plugin\DefaultPlugin
 __construct ($name, $parameters=array())
 
 getName ()
 
 getVersion ()
 
 getTitle ()
 
 isRequiresLogin ()
 
 getDependency ()
 
 getPluginLevel ()
 
 getDBaccess ()
 
 getState ()
 
 getInitOrder ()
 
 getNoMenu ()
 
 getResponse ()
 
 getObject ($name)
 
 preInstall ()
 
 postInstall ()
 
 unInstall ()
 
 execute ()
 
 isLoggedIn ()
 
 __get ($name)
 
 __toString ()
 

Public Attributes

const NAME = "ajax_explorer"
 
- Public Attributes inherited from Fossology\Lib\Plugin\DefaultPlugin
const PERMISSION = "permission"
 
const REQUIRES_LOGIN = "requiresLogin"
 
const ENABLE_MENU = "ENABLE_MENU"
 
const LEVEL = "level"
 
const DEPENDENCIES = "dependencies"
 
const INIT_ORDER = "initOrder"
 
const MENU_LIST = "menuList"
 
const MENU_ORDER = "menuOrder"
 
const MENU_TARGET = "menuTarget"
 
const TITLE = "title"
 

Protected Attributes

 $agentNames = AgentRef::AGENT_LIST
 
- Protected Attributes inherited from Fossology\Lib\Plugin\DefaultPlugin
 $container
 
 $renderer
 
 $microMenu
 

Private Member Functions

 createFileListing ($tagId, ItemTreeBounds $itemTreeBounds, &$UniqueTagArray, $selectedAgentId, $groupId, $scanJobProxy, $request)
 
 updateTheFindingsAndDecisions ($agentIds, $isFlat, $groupId, &$editedMappedLicenses, $itemTreeBounds, $nameRange=array())
 Fetch the license findings and decisions. More...
 
 updateFilesToBeCleared ($isFlat, $itemTreeBounds)
 

Private Attributes

 $uploadtree_tablename = ""
 
 $uploadDao
 
 $compatibilityDao
 
 $licenseDao
 
 $clearingDao
 
 $agentDao
 
 $clearingFilter
 
 $licenseProjector
 
 $filesThatShouldStillBeCleared
 
 $filesToBeCleared
 
 $alreadyClearedUploadTreeView
 
 $noLicenseUploadTreeView
 
 $cacheClearedCounter
 

Additional Inherited Members

- Protected Member Functions inherited from Fossology\Lib\Plugin\DefaultPlugin
 RegisterMenus ()
 Customize submenus.
 
 render ($templateName, $vars=null, $headers=null)
 
 getDefaultHeaders ()
 
 getDefaultVars ()
 
 mergeWithDefault ($vars)
 
 flushContent ($content)
 

Detailed Description

Definition at line 38 of file AjaxExplorer.php.

Member Function Documentation

◆ createFileListing()

Fossology\UI\Ajax\AjaxExplorer::createFileListing (   $tagId,
ItemTreeBounds  $itemTreeBounds,
$UniqueTagArray,
  $selectedAgentId,
  $groupId,
  $scanJobProxy,
  $request 
)
private
Parameters
$tagId
ItemTreeBounds$itemTreeBounds
$UniqueTagArray
$selectedAgentId
int$groupId
ScanJobProxy$scanJobProxy
Request$request
Returns
array

change the license result when selecting one version of nomos

Definition at line 155 of file AjaxExplorer.php.

◆ handle()

Fossology\UI\Ajax\AjaxExplorer::handle ( Request  $request)
Parameters
Request$request
Returns
Response

Reimplemented from Fossology\Lib\Plugin\DefaultPlugin.

Definition at line 110 of file AjaxExplorer.php.

◆ updateFilesToBeCleared()

Fossology\UI\Ajax\AjaxExplorer::updateFilesToBeCleared (   $isFlat,
  $itemTreeBounds 
)
private

Update filesThatShouldStillBeCleared and filesToBeCleared counts if the passed item has not been cached yet.

Parameters
boolean$isFlat
ItemTreeBounds$itemTreeBounds

Definition at line 568 of file AjaxExplorer.php.

◆ updateTheFindingsAndDecisions()

Fossology\UI\Ajax\AjaxExplorer::updateTheFindingsAndDecisions (   $agentIds,
  $isFlat,
  $groupId,
$editedMappedLicenses,
  $itemTreeBounds,
  $nameRange = array() 
)
private

Fetch the license findings and decisions.

Parameters
array$agentIdsMap of agents run on the upload (with agent name as key and id as value)
boolean$isFlatIs the flat view required?
integer$groupIdThe user group
[in,out]array$editedMappedLicensesMap of decisions
ItemTreeBounds$itemTreeBoundsThe current item tree bound
array$nameRangeThe name range for current view
Returns
array Array of license findings mapped as [pfile_id][license_id][agent_name] = license_findings

***** File Listing ***********

Definition at line 507 of file AjaxExplorer.php.

Member Data Documentation

◆ $alreadyClearedUploadTreeView

UploadTreeProxy Fossology\UI\Ajax\AjaxExplorer::$alreadyClearedUploadTreeView
private

DB proxy view to hold upload tree entries for already cleared files

Definition at line 63 of file AjaxExplorer.php.

◆ $cacheClearedCounter

array Fossology\UI\Ajax\AjaxExplorer::$cacheClearedCounter
private

Array to hold item tree which are already calculated

Definition at line 71 of file AjaxExplorer.php.

◆ $noLicenseUploadTreeView

UploadTreeProxy Fossology\UI\Ajax\AjaxExplorer::$noLicenseUploadTreeView
private

DB proxy view to hold upload tree entries for files with no license

Definition at line 66 of file AjaxExplorer.php.


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