FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Controllers\UploadTreeController Class Reference

Controller for UploadTree model. More...

Inheritance diagram for Fossology\UI\Api\Controllers\UploadTreeController:
Inheritance graph
Collaboration diagram for Fossology\UI\Api\Controllers\UploadTreeController:
Collaboration graph

Public Member Functions

 __construct ($container)
 
 getNextPreviousItem ($request, $response, $args)
 
 getBulkHistory ($request, $response, $args)
 
 getClearingHistory ($request, $response, $args)
 
 getLicenseDecisions ($request, $response, $args)
 

Private Member Functions

 getAgentInfo (ClearingResult $licenseDecisionResult)
 
 getEventInfo ($licenseDecisionEvent, $licenseEventTypes)
 

Private Attributes

 $clearingDao
 
 $licenseDao
 
 $highlightDao
 
 $clearingDecisionEventProcessor
 
 $decisionTypes
 

Additional Inherited Members

- Protected Member Functions inherited from Fossology\UI\Api\Controllers\RestController
 getParsedBody (ServerRequestInterface $request)
 Parse request body as JSON and return associative PHP array. More...
 
 throwNotAdminException ()
 
 uploadAccessible ($id)
 
 isItemExists (int $uploadId, int $itemId)
 
- Protected Attributes inherited from Fossology\UI\Api\Controllers\RestController
 $container
 
 $restHelper
 
 $dbHelper
 

Detailed Description

Controller for UploadTree model.

Definition at line 43 of file UploadTreeController.php.

Constructor & Destructor Documentation

◆ __construct()

Fossology\UI\Api\Controllers\UploadTreeController::__construct (   $container)

Constructor for base controller

Parameters
ContainerInterface$container

Reimplemented from Fossology\UI\Api\Controllers\RestController.

Definition at line 70 of file UploadTreeController.php.

Member Function Documentation

◆ getAgentInfo()

Fossology\UI\Api\Controllers\UploadTreeController::getAgentInfo ( ClearingResult  $licenseDecisionResult)
private
Parameters
ClearingResult$licenseDecisionResult
Returns
array

Definition at line 558 of file UploadTreeController.php.

◆ getBulkHistory()

Fossology\UI\Api\Controllers\UploadTreeController::getBulkHistory (   $request,
  $response,
  $args 
)

Get the bulk history of an item

Parameters
ServerRequestInterface$request
ResponseHelper$response
array$args
Returns
ResponseHelper
Exceptions
HttpErrorException

Definition at line 215 of file UploadTreeController.php.

◆ getClearingHistory()

Fossology\UI\Api\Controllers\UploadTreeController::getClearingHistory (   $request,
  $response,
  $args 
)

Get the clearing history for a particular upload-tree

Parameters
ServerRequestInterface$request
ResponseHelper$response
array$args
Returns
ResponseHelper
Exceptions
HttpErrorException

Definition at line 254 of file UploadTreeController.php.

◆ getLicenseDecisions()

Fossology\UI\Api\Controllers\UploadTreeController::getLicenseDecisions (   $request,
  $response,
  $args 
)

Get all license decisions for a particular upload-tree

Parameters
ServerRequestInterface$request
ResponseHelper$response
array$args
Returns
ResponseHelper
Exceptions
HttpErrorException

Definition at line 472 of file UploadTreeController.php.

◆ getNextPreviousItem()

Fossology\UI\Api\Controllers\UploadTreeController::getNextPreviousItem (   $request,
  $response,
  $args 
)

Get the next and previous item for a given upload and itemId

Parameters
ServerRequestInterface$request
ResponseHelper$response
array$args
Returns
ResponseHelper
Exceptions
HttpErrorException

Definition at line 172 of file UploadTreeController.php.

Member Data Documentation

◆ $decisionTypes

DecisionTypes Fossology\UI\Api\Controllers\UploadTreeController::$decisionTypes
private

Decision types object

Definition at line 67 of file UploadTreeController.php.

◆ $highlightDao

HighlightDao Fossology\UI\Api\Controllers\UploadTreeController::$highlightDao
private

HighlightDao object

Definition at line 58 of file UploadTreeController.php.

◆ $licenseDao

LicenseDao Fossology\UI\Api\Controllers\UploadTreeController::$licenseDao
private

License Dao object

Definition at line 52 of file UploadTreeController.php.


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