SEBSERV-456 and FeatureService deprecation

This commit is contained in:
anhefti 2024-01-18 08:46:47 +01:00
parent 52e2a83fb3
commit aec6bd6c04
4 changed files with 6 additions and 2 deletions

View file

@ -12,6 +12,8 @@ import ch.ethz.seb.sebserver.gbl.model.exam.CollectingStrategy;
import ch.ethz.seb.sebserver.gbl.model.exam.ProctoringServiceSettings.ProctoringServerType;
import ch.ethz.seb.sebserver.gbl.model.institution.LmsSetup.LmsType;
@Deprecated // we need another more flexible feature service that also take new User Role and Privileges into account
// SEBSERV-497
public interface FeatureService {
String FEATURE_SETTINGS_PREFIX = "sebserver.feature.";

View file

@ -20,6 +20,8 @@ import ch.ethz.seb.sebserver.gbl.profile.WebServiceProfile;
@Lazy
@Service
@WebServiceProfile
@Deprecated // we need another more flexible feature service that also take new User Role and Privileges into account
// SEBSERV-497
public class FeatureServiceImpl implements FeatureService {
private final Environment environment;

View file

@ -511,7 +511,7 @@ public final class SEBClientConfig implements GrantEntity, Activatable {
null,
institutionId,
null,
ConfigPurpose.CONFIGURE_CLIENT,
ConfigPurpose.START_EXAM,
pingIterval,
VDIType.NO,
null,

View file

@ -532,7 +532,7 @@ public class SEBClientConfigDAOImpl implements SEBClientConfigDAO {
SEBClientConfig.ATTR_CONFIG_PURPOSE,
(sebClientConfig.configPurpose != null)
? sebClientConfig.configPurpose.name()
: ConfigPurpose.CONFIGURE_CLIENT.name());
: ConfigPurpose.START_EXAM.name());
this.additionalAttributesDAO.saveAdditionalAttribute(
EntityType.SEB_CLIENT_CONFIGURATION,