public function finishDeliveryExecution() {
	    $deliveryExecution = $this->getCurrentDeliveryExecution();
	    if ($deliveryExecution->getUserIdentifier() == common_session_SessionManager::getSession()->getUserUri()) {
            $stateService = $this->getServiceManager()->get(StateServiceInterface::SERVICE_ID);
	        $stateService->finish($deliveryExecution);
	    } else {
	        common_Logger::w('Non owner '.common_session_SessionManager::getSession()->getUserUri().' tried to finish deliveryExecution '.$deliveryExecution->getIdentifier());
	    }
	    $this->redirect($this->getReturnUrl());
	}
public function finishDeliveryExecution() {
	    $deliveryExecution = $this->getCurrentDeliveryExecution();
	    if ($deliveryExecution->getUserIdentifier() == common_session_SessionManager::getSession()->getUserUri()) {
            $stateService = $this->getServiceManager()->get(StateServiceInterface::SERVICE_ID);
	        $stateService->finish($deliveryExecution);
	    } else {
	        common_Logger::w('Non owner '.common_session_SessionManager::getSession()->getUserUri().' tried to finish deliveryExecution '.$deliveryExecution->getIdentifier());
	    }
	    $this->redirect($this->getReturnUrl());
	}
public function finishDeliveryExecution ( ) { $ deliveryExecution = $ this -> getCurrentDeliveryExecution ( ) ; if ( $ deliveryExecution -> getUserIdentifier ( ) == common_session_SessionManager :: getSession ( ) -> getUserUri ( ) ) { $ stateService = $ this -> getServiceManager ( ) -> get ( StateServiceInterface :: SERVICE_ID ) ; $ stateService -> finish ( $ deliveryExecution ) ; } else { common_Logger :: w ( 'Non owner ' . common_session_SessionManager :: getSession ( ) -> getUserUri ( ) . ' tried to finish deliveryExecution ' . $ deliveryExecution -> getIdentifier ( ) ) ; } $ this -> redirect ( $ this -> getReturnUrl ( ) ) ; }
Finish the delivery execution

@throws common_exception_Error
@throws common_exception_NotFound
Finish the delivery execution