chg: [genericRequestProcessor] Changed signature of `process` function
parent
47384925c6
commit
63e9dd1644
|
@ -43,7 +43,7 @@ class ToolInterconnectionProcessor extends BroodRequestProcessor implements Gene
|
||||||
return parent::create($requestData);
|
return parent::create($requestData);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function process($id, $requestData)
|
public function process($id, $requestData, $inboxRequest)
|
||||||
{
|
{
|
||||||
$connectionSuccessfull = false;
|
$connectionSuccessfull = false;
|
||||||
$interConnectionResult = [];
|
$interConnectionResult = [];
|
||||||
|
|
|
@ -8,7 +8,7 @@ use Cake\View\ViewBuilder;
|
||||||
interface GenericProcessorActionI
|
interface GenericProcessorActionI
|
||||||
{
|
{
|
||||||
public function create($requestData);
|
public function create($requestData);
|
||||||
public function process($requestID, $serverRequest);
|
public function process($requestID, $serverRequest, $inboxRequest);
|
||||||
public function discard($requestID ,$requestData);
|
public function discard($requestID ,$requestData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ class IncomingConnectionRequestProcessor extends LocalToolRequestProcessor imple
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function process($id, $requestData)
|
public function process($id, $requestData, $inboxRequest)
|
||||||
{
|
{
|
||||||
$connectionSuccessfull = false;
|
$connectionSuccessfull = false;
|
||||||
$interConnectionResult = [];
|
$interConnectionResult = [];
|
||||||
|
@ -175,7 +175,7 @@ class AcceptedRequestProcessor extends LocalToolRequestProcessor implements Gene
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function process($id, $requestData)
|
public function process($id, $requestData, $inboxRequest)
|
||||||
{
|
{
|
||||||
$connectionSuccessfull = false;
|
$connectionSuccessfull = false;
|
||||||
$interConnectionResult = [];
|
$interConnectionResult = [];
|
||||||
|
@ -232,7 +232,7 @@ class DeclinedRequestProcessor extends LocalToolRequestProcessor implements Gene
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function process($id, $requestData)
|
public function process($id, $requestData, $inboxRequest)
|
||||||
{
|
{
|
||||||
$connectionSuccessfull = false;
|
$connectionSuccessfull = false;
|
||||||
$interConnectionResult = [];
|
$interConnectionResult = [];
|
||||||
|
|
|
@ -43,7 +43,7 @@ class ProposalEditProcessor extends ProposalRequestProcessor implements GenericP
|
||||||
return parent::create($requestData);
|
return parent::create($requestData);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function process($id, $requestData)
|
public function process($id, $requestData, $inboxRequest)
|
||||||
{
|
{
|
||||||
$proposalAccepted = false;
|
$proposalAccepted = false;
|
||||||
$saveResult = [];
|
$saveResult = [];
|
||||||
|
|
|
@ -43,7 +43,7 @@ class DataExchangeProcessor extends SynchronisationRequestProcessor implements G
|
||||||
return parent::create($requestData);
|
return parent::create($requestData);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function process($id, $requestData)
|
public function process($id, $requestData, $inboxRequest)
|
||||||
{
|
{
|
||||||
$dataExchangeAccepted = false;
|
$dataExchangeAccepted = false;
|
||||||
$saveResult = [];
|
$saveResult = [];
|
||||||
|
|
|
@ -43,7 +43,7 @@ class SCOPE_ACTION_Processor extends ProposalRequestProcessor implements Generic
|
||||||
return parent::create($requestData);
|
return parent::create($requestData);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function process($id, $requestData)
|
public function process($id, $requestData, $inboxRequest)
|
||||||
{
|
{
|
||||||
$proposalAccepted = false;
|
$proposalAccepted = false;
|
||||||
$saveResult = [];
|
$saveResult = [];
|
||||||
|
|
|
@ -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) {
|
if ($requestData['individual_id'] == -1) {
|
||||||
$individual = $this->Users->Individuals->newEntity([
|
$individual = $this->Users->Individuals->newEntity([
|
||||||
|
|
|
@ -87,7 +87,7 @@ class InboxController extends AppController
|
||||||
$processor = $this->requestProcessor->getProcessor($scope, $action);
|
$processor = $this->requestProcessor->getProcessor($scope, $action);
|
||||||
}
|
}
|
||||||
if ($this->request->is('post')) {
|
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);
|
return $processor->genHTTPReply($this, $processResult);
|
||||||
} else {
|
} else {
|
||||||
$renderedView = $processor->render($request, $this->request);
|
$renderedView = $processor->render($request, $this->request);
|
||||||
|
|
Loading…
Reference in New Issue