FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Readme_OSS agent generates list of licenses and copyrights found in an upload. More...
Public Member Functions | |
processUploadId ($uploadId) | |
Given an upload ID, process the items in it. More... | |
Public Member Functions inherited from Fossology\Lib\Agent\Agent | |
__construct ($agentName, $version, $revision) | |
scheduler_connect () | |
Connect with scheduler and initialize options. More... | |
heartbeat ($newProcessed) | |
Send hear beat to the scheduler. More... | |
bail ($exitvalue) | |
Bail the agent, print the stack and disconnect from scheduler. More... | |
scheduler_disconnect ($exitvalue) | |
Closes connection from scheduler. More... | |
scheduler_greet () | |
Greet the scheduler at the beginning of connection. More... | |
initArsTable () | |
Initialize ARS table. | |
run_scheduler_event_loop () | |
Runs a loop to read commands from scheduler and process them. More... | |
Public Attributes | |
const | UPLOAD_ADDS = "uploadsAdd" |
The HTTP GET parameter name. | |
Protected Attributes | |
$additionalUploadIds = array() | |
Protected Attributes inherited from Fossology\Lib\Agent\Agent | |
$userId | |
$groupId | |
$jobId | |
$agentSpecifOptions = "" | |
$agentSpecifLongOptions = array() | |
$args = array() | |
$dbManager | |
$agentDao | |
$container | |
$schedulerMode | |
Private Member Functions | |
writeReport ($contents, $uploadId) | |
Write data to text file. More... | |
updateReportTable ($uploadId, $jobId, $filename) | |
Update the report path. More... | |
createReadMeOSSFormat ($addSeparator, $dataForReadME, $extract, $break) | |
This function lists elements of array. More... | |
generateReport ($contents, $packageName) | |
Gather all the data. More... | |
Private Attributes | |
$licenseClearedGetter | |
$cpClearedGetter | |
$licenseMainGetter | |
$uploadDao | |
Additional Inherited Members | |
Static Public Member Functions inherited from Fossology\Lib\Agent\Agent | |
static | heartbeat_handler ($signo) |
Function to handle hear beats from the agent and send them to the scheduler from STDOUT. More... | |
Readme_OSS agent generates list of licenses and copyrights found in an upload.
Definition at line 51 of file readmeoss.php.
|
private |
This function lists elements of array.
string | $addSeparator | Separator to be used |
string | $dataForReadME | Array of content |
string | $extract | Data to be extracted from $dataForReadME |
string | $break | Line break string |
Definition at line 186 of file readmeoss.php.
|
private |
Gather all the data.
array | $contents | Array of contents with licenseMain , licenses and licenseAcknowledgements keys. |
string | $packageName | Package for which the report is generated |
Definition at line 208 of file readmeoss.php.
ReadmeOssAgent::processUploadId | ( | $uploadId | ) |
Given an upload ID, process the items in it.
This function is implemented by agent and should call heartbeat() at regular intervals.
int | $uploadId | Upload to be processed by the agent. |
Reimplemented from Fossology\Lib\Agent\Agent.
Definition at line 98 of file readmeoss.php.
|
private |
Update the report path.
int | $uploadId | Upload ID |
int | $jobId | Job ID |
string | $filename | Path of the file |
Definition at line 173 of file readmeoss.php.
|
private |
Write data to text file.
array | $contents | Contents of the report |
int | $uploadId | ID of the upload |
Definition at line 143 of file readmeoss.php.
|
protected |
Additional Uploads to be included in report
Definition at line 78 of file readmeoss.php.
|
private |
XpClearedGetter object
Definition at line 63 of file readmeoss.php.
|
private |
LicenseClearedGetter object
Definition at line 58 of file readmeoss.php.
|
private |
LicenseMainGetter object
Definition at line 68 of file readmeoss.php.
|
private |
UploadDao object
Definition at line 73 of file readmeoss.php.