2019-06-21 15:05:31 +02:00
|
|
|
|
/*
|
2024-03-05 18:37:42 +01:00
|
|
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
2019-06-21 15:05:31 +02:00
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-06-26 10:13:11 +02:00
|
|
|
|
using System;
|
2019-06-21 15:05:31 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Lockdown.Contracts
|
2019-06-21 15:05:31 +02:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the functionality of a backup repository for <see cref="IFeatureConfiguration"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IFeatureConfigurationBackup
|
|
|
|
|
{
|
2019-06-26 10:13:11 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Deletes the given <see cref="IFeatureConfiguration"/> from the backup repository.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Delete(IFeatureConfiguration configuration);
|
|
|
|
|
|
2019-06-21 15:05:31 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets all <see cref="IFeatureConfiguration"/> currently saved in the backup repository.
|
|
|
|
|
/// </summary>
|
2019-06-26 10:13:11 +02:00
|
|
|
|
IList<IFeatureConfiguration> GetAllConfigurations();
|
2019-06-21 15:05:31 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-06-26 10:13:11 +02:00
|
|
|
|
/// Gets all <see cref="IFeatureConfiguration"/> which are part of the given group.
|
2019-06-21 15:05:31 +02:00
|
|
|
|
/// </summary>
|
2019-06-26 10:13:11 +02:00
|
|
|
|
IList<IFeatureConfiguration> GetBy(Guid groupId);
|
2019-06-21 15:05:31 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-06-26 10:13:11 +02:00
|
|
|
|
/// Saves the given <see cref="IFeatureConfiguration"/> in the backup repository.
|
2019-06-21 15:05:31 +02:00
|
|
|
|
/// </summary>
|
2019-06-26 10:13:11 +02:00
|
|
|
|
void Save(IFeatureConfiguration configuration);
|
2019-06-21 15:05:31 +02:00
|
|
|
|
}
|
|
|
|
|
}
|