SEBSERV-456 and FeatureService deprecation
This commit is contained in:
parent
52e2a83fb3
commit
aec6bd6c04
4 changed files with 6 additions and 2 deletions
|
@ -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.exam.ProctoringServiceSettings.ProctoringServerType;
|
||||||
import ch.ethz.seb.sebserver.gbl.model.institution.LmsSetup.LmsType;
|
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 {
|
public interface FeatureService {
|
||||||
|
|
||||||
String FEATURE_SETTINGS_PREFIX = "sebserver.feature.";
|
String FEATURE_SETTINGS_PREFIX = "sebserver.feature.";
|
||||||
|
|
|
@ -20,6 +20,8 @@ import ch.ethz.seb.sebserver.gbl.profile.WebServiceProfile;
|
||||||
@Lazy
|
@Lazy
|
||||||
@Service
|
@Service
|
||||||
@WebServiceProfile
|
@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 {
|
public class FeatureServiceImpl implements FeatureService {
|
||||||
|
|
||||||
private final Environment environment;
|
private final Environment environment;
|
||||||
|
|
|
@ -511,7 +511,7 @@ public final class SEBClientConfig implements GrantEntity, Activatable {
|
||||||
null,
|
null,
|
||||||
institutionId,
|
institutionId,
|
||||||
null,
|
null,
|
||||||
ConfigPurpose.CONFIGURE_CLIENT,
|
ConfigPurpose.START_EXAM,
|
||||||
pingIterval,
|
pingIterval,
|
||||||
VDIType.NO,
|
VDIType.NO,
|
||||||
null,
|
null,
|
||||||
|
|
|
@ -532,7 +532,7 @@ public class SEBClientConfigDAOImpl implements SEBClientConfigDAO {
|
||||||
SEBClientConfig.ATTR_CONFIG_PURPOSE,
|
SEBClientConfig.ATTR_CONFIG_PURPOSE,
|
||||||
(sebClientConfig.configPurpose != null)
|
(sebClientConfig.configPurpose != null)
|
||||||
? sebClientConfig.configPurpose.name()
|
? sebClientConfig.configPurpose.name()
|
||||||
: ConfigPurpose.CONFIGURE_CLIENT.name());
|
: ConfigPurpose.START_EXAM.name());
|
||||||
|
|
||||||
this.additionalAttributesDAO.saveAdditionalAttribute(
|
this.additionalAttributesDAO.saveAdditionalAttribute(
|
||||||
EntityType.SEB_CLIENT_CONFIGURATION,
|
EntityType.SEB_CLIENT_CONFIGURATION,
|
||||||
|
|
Loading…
Reference in a new issue