
PUT /api/v1/summits/{id}/tracks/{track_id}/extra-questions/{question_id} DELETE /api/v1/summits/{id}/tracks/{track_id}/extra-questions/{question_id} scopes %s/tracks/write %s/summits/write Change-Id: I5d3455dad8058a93f357b40adc7efdf5995b01c7
80 lines
2.3 KiB
PHP
80 lines
2.3 KiB
PHP
<?php namespace App\Services\Model;
|
|
/**
|
|
* Copyright 2018 OpenStack Foundation
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
**/
|
|
use models\exceptions\EntityNotFoundException;
|
|
use models\exceptions\ValidationException;
|
|
use models\summit\PresentationCategory;
|
|
use models\summit\Summit;
|
|
/**
|
|
* Interface ISummitTrackService
|
|
* @package App\Services\Model
|
|
*/
|
|
interface ISummitTrackService
|
|
{
|
|
/**
|
|
* @param Summit $summit
|
|
* @param array $data
|
|
* @return PresentationCategory
|
|
* @throws EntityNotFoundException
|
|
* @throws ValidationException
|
|
*/
|
|
public function addTrack(Summit $summit, array $data);
|
|
|
|
/**
|
|
* @param Summit $summit
|
|
* @param int $track_id
|
|
* @param array $data
|
|
* @return PresentationCategory
|
|
* @throws EntityNotFoundException
|
|
* @throws ValidationException
|
|
*/
|
|
public function updateTrack(Summit $summit, $track_id, array $data);
|
|
|
|
/**
|
|
* @param Summit $summit
|
|
* @param int $track_id
|
|
* @return void
|
|
* @throws EntityNotFoundException
|
|
* @throws ValidationException
|
|
*/
|
|
public function deleteTrack(Summit $summit, $track_id);
|
|
|
|
/**
|
|
* @param Summit $from_summit
|
|
* @param Summit $to_summit
|
|
* @return PresentationCategory[]
|
|
* @throws EntityNotFoundException
|
|
* @throws ValidationException
|
|
*/
|
|
public function copyTracks(Summit $from_summit, Summit $to_summit);
|
|
|
|
/**
|
|
* @param int $track_id
|
|
* @param int $question_id
|
|
* @return void
|
|
* @throws EntityNotFoundException
|
|
* @throws ValidationException
|
|
*/
|
|
public function addTrackExtraQuestion($track_id, $question_id);
|
|
|
|
|
|
/**
|
|
* @param int $track_id
|
|
* @param int $question_id
|
|
* @return void
|
|
* @throws EntityNotFoundException
|
|
* @throws ValidationException
|
|
*/
|
|
public function removeTrackExtraQuestion($track_id, $question_id);
|
|
|
|
} |