*/ interface AuthorizationProvider { /** * Verify that a given delivery is allowed to be started * * @param string $deliveryId * @throws \common_exception_Unauthorized */ public function verifyStartAuthorization($deliveryId, User $user); /** * Verify that a given delivery execution is allowed to be executed * * @param DeliveryExecutionInterface $deliveryExecution * @param User $user * @throws \common_exception_Unauthorized */ public function verifyResumeAuthorization(DeliveryExecutionInterface $deliveryExecution, User $user); }