chg: [genericRequestProcessor] Changed signature of `process` function

pull/59/head
mokaddem 2021-06-14 13:25:49 +02:00
parent 47384925c6
commit 63e9dd1644
8 changed files with 10 additions and 10 deletions

View File

@ -43,7 +43,7 @@ class ToolInterconnectionProcessor extends BroodRequestProcessor implements Gene
return parent::create($requestData);
}
public function process($id, $requestData)
public function process($id, $requestData, $inboxRequest)
{
$connectionSuccessfull = false;
$interConnectionResult = [];

View File

@ -8,7 +8,7 @@ use Cake\View\ViewBuilder;
interface GenericProcessorActionI
{
public function create($requestData);
public function process($requestID, $serverRequest);
public function process($requestID, $serverRequest, $inboxRequest);
public function discard($requestID ,$requestData);
}

View File

@ -113,7 +113,7 @@ class IncomingConnectionRequestProcessor extends LocalToolRequestProcessor imple
];
}
public function process($id, $requestData)
public function process($id, $requestData, $inboxRequest)
{
$connectionSuccessfull = false;
$interConnectionResult = [];
@ -175,7 +175,7 @@ class AcceptedRequestProcessor extends LocalToolRequestProcessor implements Gene
];
}
public function process($id, $requestData)
public function process($id, $requestData, $inboxRequest)
{
$connectionSuccessfull = false;
$interConnectionResult = [];
@ -232,7 +232,7 @@ class DeclinedRequestProcessor extends LocalToolRequestProcessor implements Gene
];
}
public function process($id, $requestData)
public function process($id, $requestData, $inboxRequest)
{
$connectionSuccessfull = false;
$interConnectionResult = [];

View File

@ -43,7 +43,7 @@ class ProposalEditProcessor extends ProposalRequestProcessor implements GenericP
return parent::create($requestData);
}
public function process($id, $requestData)
public function process($id, $requestData, $inboxRequest)
{
$proposalAccepted = false;
$saveResult = [];

View File

@ -43,7 +43,7 @@ class DataExchangeProcessor extends SynchronisationRequestProcessor implements G
return parent::create($requestData);
}
public function process($id, $requestData)
public function process($id, $requestData, $inboxRequest)
{
$dataExchangeAccepted = false;
$saveResult = [];

View File

@ -43,7 +43,7 @@ class SCOPE_ACTION_Processor extends ProposalRequestProcessor implements Generic
return parent::create($requestData);
}
public function process($id, $requestData)
public function process($id, $requestData, $inboxRequest)
{
$proposalAccepted = false;
$saveResult = [];

View File

@ -80,7 +80,7 @@ class RegistrationProcessor extends UserRequestProcessor implements GenericProce
];
}
public function process($id, $requestData)
public function process($id, $requestData, $inboxRequest)
{
if ($requestData['individual_id'] == -1) {
$individual = $this->Users->Individuals->newEntity([

View File

@ -87,7 +87,7 @@ class InboxController extends AppController
$processor = $this->requestProcessor->getProcessor($scope, $action);
}
if ($this->request->is('post')) {
$processResult = $processor->process($id, $this->request->getData());
$processResult = $processor->process($id, $this->request->getData(), $request);
return $processor->genHTTPReply($this, $processResult);
} else {
$renderedView = $processor->render($request, $this->request);