diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/BatteryStatusIndicator.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/BatteryStatusIndicator.java index d40fccc9..7d9e6c95 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/BatteryStatusIndicator.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/BatteryStatusIndicator.java @@ -14,6 +14,7 @@ import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import ch.ethz.seb.sebserver.gbl.api.API; +import ch.ethz.seb.sebserver.gbl.model.exam.Indicator; import ch.ethz.seb.sebserver.gbl.model.exam.Indicator.IndicatorType; import ch.ethz.seb.sebserver.gbl.model.session.ClientEvent.EventType; import ch.ethz.seb.sebserver.webservice.datalayer.batis.mapper.ClientEventRecordMapper; @@ -28,6 +29,12 @@ public class BatteryStatusIndicator extends AbstractLogNumberIndicator { super.tags = new String[] { API.LOG_EVENT_TAG_BATTERY_STATUS }; } + @Override + public void init(final Indicator indicatorDefinition, final Long connectionId, final boolean cachingEnabled) { + super.init(indicatorDefinition, connectionId, cachingEnabled); + super.tags = new String[] { API.LOG_EVENT_TAG_BATTERY_STATUS }; + } + @Override public IndicatorType getType() { return IndicatorType.BATTERY_STATUS; diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/WLANStatusIndicator.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/WLANStatusIndicator.java index 70ad26bc..0f8b89b6 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/WLANStatusIndicator.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/WLANStatusIndicator.java @@ -14,6 +14,7 @@ import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import ch.ethz.seb.sebserver.gbl.api.API; +import ch.ethz.seb.sebserver.gbl.model.exam.Indicator; import ch.ethz.seb.sebserver.gbl.model.exam.Indicator.IndicatorType; import ch.ethz.seb.sebserver.gbl.model.session.ClientEvent.EventType; import ch.ethz.seb.sebserver.webservice.datalayer.batis.mapper.ClientEventRecordMapper; @@ -28,6 +29,12 @@ public class WLANStatusIndicator extends AbstractLogNumberIndicator { super.tags = new String[] { API.LOG_EVENT_TAG_WLAN_STATUS }; } + @Override + public void init(final Indicator indicatorDefinition, final Long connectionId, final boolean cachingEnabled) { + super.init(indicatorDefinition, connectionId, cachingEnabled); + super.tags = new String[] { API.LOG_EVENT_TAG_WLAN_STATUS }; + } + @Override public IndicatorType getType() { return IndicatorType.WLAN_STATUS;