Skip to content

Commit

Permalink
SEBSERV-456 and FeatureService deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
anhefti committed Jan 18, 2024
1 parent 52e2a83 commit aec6bd6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/main/java/ch/ethz/seb/sebserver/gbl/FeatureService.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
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.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
@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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ public static SEBClientConfig createNew(final Long institutionId, final long pin
null,
institutionId,
null,
ConfigPurpose.CONFIGURE_CLIENT,
ConfigPurpose.START_EXAM,
pingIterval,
VDIType.NO,
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ private void saveAdditionalAttributes(final SEBClientConfig sebClientConfig, fin
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,
Expand Down

0 comments on commit aec6bd6

Please sign in to comment.