|
|
@ -21,6 +21,7 @@ package io.entgra.device.mgt.core.device.mgt.core.metadata.mgt;
|
|
|
|
import com.google.gson.Gson;
|
|
|
|
import com.google.gson.Gson;
|
|
|
|
import com.google.gson.JsonObject;
|
|
|
|
import com.google.gson.JsonObject;
|
|
|
|
import com.google.gson.reflect.TypeToken;
|
|
|
|
import com.google.gson.reflect.TypeToken;
|
|
|
|
|
|
|
|
import io.entgra.device.mgt.core.device.mgt.common.exceptions.MetadataKeyNotFoundException;
|
|
|
|
import io.entgra.device.mgt.core.device.mgt.common.exceptions.MetadataManagementException;
|
|
|
|
import io.entgra.device.mgt.core.device.mgt.common.exceptions.MetadataManagementException;
|
|
|
|
import io.entgra.device.mgt.core.device.mgt.common.exceptions.TransactionManagementException;
|
|
|
|
import io.entgra.device.mgt.core.device.mgt.common.exceptions.TransactionManagementException;
|
|
|
|
import io.entgra.device.mgt.core.device.mgt.common.metadata.mgt.AllowedDeviceStatus;
|
|
|
|
import io.entgra.device.mgt.core.device.mgt.common.metadata.mgt.AllowedDeviceStatus;
|
|
|
@ -42,12 +43,12 @@ import java.util.ArrayList;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class DeviceStatusManagementServiceImpl implements DeviceStatusManagementService {
|
|
|
|
public class DeviceStatusManagementServiceImpl implements DeviceStatusManagementService {
|
|
|
|
|
|
|
|
|
|
|
|
private static final Log log = LogFactory.getLog(DeviceStatusManagementServiceImpl.class);
|
|
|
|
private static final Log log = LogFactory.getLog(DeviceStatusManagementServiceImpl.class);
|
|
|
|
|
|
|
|
|
|
|
|
private final MetadataDAO metadataDAO;
|
|
|
|
private final MetadataDAO metadataDAO;
|
|
|
|
|
|
|
|
private static final Gson gson = new Gson();
|
|
|
|
|
|
|
|
|
|
|
|
public DeviceStatusManagementServiceImpl() {
|
|
|
|
public DeviceStatusManagementServiceImpl() {
|
|
|
|
this.metadataDAO = MetadataManagementDAOFactory.getMetadataDAO();
|
|
|
|
this.metadataDAO = MetadataManagementDAOFactory.getMetadataDAO();
|
|
|
@ -57,12 +58,11 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
|
|
|
public void addDefaultDeviceStatusFilterIfNotExist(int tenantId) throws MetadataManagementException {
|
|
|
|
public void addDefaultDeviceStatusFilterIfNotExist(int tenantId) throws MetadataManagementException {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
MetadataManagementDAOFactory.beginTransaction();
|
|
|
|
MetadataManagementDAOFactory.beginTransaction();
|
|
|
|
if (!metadataDAO.isExist(tenantId, MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY) && !metadataDAO.isExist(tenantId, MetadataConstants.IS_DEVICE_STATUS_CHECK_META_KEY)) {
|
|
|
|
if (!metadataDAO.isExist(tenantId, MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY)) {
|
|
|
|
Metadata defaultDeviceStatusMetadata = constructDeviceStatusMetadata(getDefaultDeviceStatus());
|
|
|
|
metadataDAO.addMetadata(tenantId, constructDeviceStatusMetadata(getDefaultDeviceStatus()));
|
|
|
|
Metadata defaultDeviceStatusCheckMetadata = constructDeviceStatusCheckMetadata(getDefaultDeviceStatusCheck());
|
|
|
|
}
|
|
|
|
// Add default device status and device status check metadata entries
|
|
|
|
if (!metadataDAO.isExist(tenantId, MetadataConstants.IS_DEVICE_STATUS_CHECK_META_KEY)) {
|
|
|
|
addMetadataEntry(tenantId, defaultDeviceStatusMetadata, MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY);
|
|
|
|
metadataDAO.addMetadata(tenantId, constructDeviceStatusCheckMetadata(getDefaultDeviceStatusCheck()));
|
|
|
|
addMetadataEntry(tenantId, defaultDeviceStatusCheckMetadata, MetadataConstants.IS_DEVICE_STATUS_CHECK_META_KEY);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
MetadataManagementDAOFactory.commitTransaction();
|
|
|
|
MetadataManagementDAOFactory.commitTransaction();
|
|
|
|
} catch (MetadataManagementDAOException e) {
|
|
|
|
} catch (MetadataManagementDAOException e) {
|
|
|
@ -80,8 +80,27 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void resetToDefaultDeviceStausFilter() throws MetadataManagementException {
|
|
|
|
public void resetToDefaultDeviceStatusFilter(int tenantId) throws MetadataManagementException {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
MetadataManagementDAOFactory.beginTransaction();
|
|
|
|
|
|
|
|
Metadata defaultDeviceStatusMetadata = constructDeviceStatusMetadata(getDefaultDeviceStatus());
|
|
|
|
|
|
|
|
Metadata defaultDeviceStatusCheckMetadata = constructDeviceStatusCheckMetadata(getDefaultDeviceStatusCheck());
|
|
|
|
|
|
|
|
// Add default device status and device status check metadata entries
|
|
|
|
|
|
|
|
metadataDAO.addMetadata(tenantId, defaultDeviceStatusMetadata);
|
|
|
|
|
|
|
|
metadataDAO.addMetadata(tenantId, defaultDeviceStatusCheckMetadata);
|
|
|
|
|
|
|
|
MetadataManagementDAOFactory.commitTransaction();
|
|
|
|
|
|
|
|
} catch (MetadataManagementDAOException e) {
|
|
|
|
|
|
|
|
MetadataManagementDAOFactory.rollbackTransaction();
|
|
|
|
|
|
|
|
String msg = "Error occurred while inserting default device status metadata entries.";
|
|
|
|
|
|
|
|
log.error(msg, e);
|
|
|
|
|
|
|
|
throw new MetadataManagementException(msg, e);
|
|
|
|
|
|
|
|
} catch (TransactionManagementException e) {
|
|
|
|
|
|
|
|
String msg = "Error occurred while starting the transaction to reset default device status filters.";
|
|
|
|
|
|
|
|
log.error(msg, e);
|
|
|
|
|
|
|
|
throw new MetadataManagementException(msg, e);
|
|
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
|
|
MetadataManagementDAOFactory.closeConnection();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -91,7 +110,6 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
|
|
|
// Retrieve the current device status metadata
|
|
|
|
// Retrieve the current device status metadata
|
|
|
|
Metadata metadata = metadataDAO.getMetadata(tenantId, MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY);
|
|
|
|
Metadata metadata = metadataDAO.getMetadata(tenantId, MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY);
|
|
|
|
if (metadata != null) {
|
|
|
|
if (metadata != null) {
|
|
|
|
Gson gson = new Gson();
|
|
|
|
|
|
|
|
Type listType = new TypeToken<List<AllowedDeviceStatus>>() {
|
|
|
|
Type listType = new TypeToken<List<AllowedDeviceStatus>>() {
|
|
|
|
}.getType();
|
|
|
|
}.getType();
|
|
|
|
List<AllowedDeviceStatus> currentStatusList = gson.fromJson(metadata.getMetaValue(), listType);
|
|
|
|
List<AllowedDeviceStatus> currentStatusList = gson.fromJson(metadata.getMetaValue(), listType);
|
|
|
@ -105,7 +123,7 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
metadata.setMetaValue(gson.toJson(currentStatusList));
|
|
|
|
metadata.setMetaValue(gson.toJson(currentStatusList));
|
|
|
|
updateMetadataEntry(tenantId, metadata, MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY);
|
|
|
|
metadataDAO.updateMetadata(tenantId, metadata);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
MetadataManagementDAOFactory.commitTransaction();
|
|
|
|
MetadataManagementDAOFactory.commitTransaction();
|
|
|
|
} catch (MetadataManagementDAOException e) {
|
|
|
|
} catch (MetadataManagementDAOException e) {
|
|
|
@ -124,14 +142,12 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean updateDefaultDeviceStatusCheck(int tenantId, boolean isChecked) throws MetadataManagementException {
|
|
|
|
public boolean updateDefaultDeviceStatusCheck(int tenantId, boolean isChecked) throws MetadataManagementException {
|
|
|
|
boolean success = false;
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
MetadataManagementDAOFactory.beginTransaction();
|
|
|
|
MetadataManagementDAOFactory.beginTransaction();
|
|
|
|
if (metadataDAO.isExist(tenantId, MetadataConstants.IS_DEVICE_STATUS_CHECK_META_KEY)) {
|
|
|
|
if (metadataDAO.isExist(tenantId, MetadataConstants.IS_DEVICE_STATUS_CHECK_META_KEY)) {
|
|
|
|
Metadata isDeviceStatusChecked = constructDeviceStatusCheckMetadata(isChecked);
|
|
|
|
|
|
|
|
// Add default device status check metadata entries
|
|
|
|
// Add default device status check metadata entries
|
|
|
|
updateMetadataEntry(tenantId, isDeviceStatusChecked, MetadataConstants.IS_DEVICE_STATUS_CHECK_META_KEY);
|
|
|
|
metadataDAO.updateMetadata(tenantId, constructDeviceStatusCheckMetadata(isChecked));
|
|
|
|
success = true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
MetadataManagementDAOFactory.commitTransaction();
|
|
|
|
MetadataManagementDAOFactory.commitTransaction();
|
|
|
|
} catch (MetadataManagementDAOException e) {
|
|
|
|
} catch (MetadataManagementDAOException e) {
|
|
|
@ -146,7 +162,7 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
MetadataManagementDAOFactory.closeConnection();
|
|
|
|
MetadataManagementDAOFactory.closeConnection();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return success;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -154,11 +170,15 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
MetadataManagementDAOFactory.openConnection();
|
|
|
|
MetadataManagementDAOFactory.openConnection();
|
|
|
|
Metadata metadata = metadataDAO.getMetadata(tenantId, MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY);
|
|
|
|
Metadata metadata = metadataDAO.getMetadata(tenantId, MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY);
|
|
|
|
Gson gson = new Gson();
|
|
|
|
if (metadata == null) {
|
|
|
|
Type listType = new TypeToken<List<AllowedDeviceStatus>>() {}.getType();
|
|
|
|
String msg =
|
|
|
|
List<AllowedDeviceStatus> statusList = gson.fromJson(metadata.getMetaValue(), listType);
|
|
|
|
"Couldn't find the meta data value for meta key: " + MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY;
|
|
|
|
|
|
|
|
log.error(msg);
|
|
|
|
return statusList;
|
|
|
|
throw new MetadataKeyNotFoundException(msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Type listType = new TypeToken<List<AllowedDeviceStatus>>() {
|
|
|
|
|
|
|
|
}.getType();
|
|
|
|
|
|
|
|
return gson.fromJson(metadata.getMetaValue(), listType);
|
|
|
|
} catch (MetadataManagementDAOException e) {
|
|
|
|
} catch (MetadataManagementDAOException e) {
|
|
|
|
String msg = "Error occurred while retrieving device status meta data for tenant:" + tenantId;
|
|
|
|
String msg = "Error occurred while retrieving device status meta data for tenant:" + tenantId;
|
|
|
|
log.error(msg, e);
|
|
|
|
log.error(msg, e);
|
|
|
@ -177,8 +197,14 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
MetadataManagementDAOFactory.openConnection();
|
|
|
|
MetadataManagementDAOFactory.openConnection();
|
|
|
|
Metadata metadata = metadataDAO.getMetadata(tenantId, MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY);
|
|
|
|
Metadata metadata = metadataDAO.getMetadata(tenantId, MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY);
|
|
|
|
Gson gson = new Gson();
|
|
|
|
if (metadata == null) {
|
|
|
|
Type listType = new TypeToken<List<AllowedDeviceStatus>>() {}.getType();
|
|
|
|
String msg = "Couldn't find the meta details of meta Key: "
|
|
|
|
|
|
|
|
+ MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY + " and tenant Id: " + tenantId;
|
|
|
|
|
|
|
|
log.error(msg);
|
|
|
|
|
|
|
|
throw new MetadataKeyNotFoundException(msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Type listType = new TypeToken<List<AllowedDeviceStatus>>() {
|
|
|
|
|
|
|
|
}.getType();
|
|
|
|
List<AllowedDeviceStatus> statusList = gson.fromJson(metadata.getMetaValue(), listType);
|
|
|
|
List<AllowedDeviceStatus> statusList = gson.fromJson(metadata.getMetaValue(), listType);
|
|
|
|
|
|
|
|
|
|
|
|
for (AllowedDeviceStatus status : statusList) {
|
|
|
|
for (AllowedDeviceStatus status : statusList) {
|
|
|
@ -207,6 +233,12 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
MetadataManagementDAOFactory.openConnection();
|
|
|
|
MetadataManagementDAOFactory.openConnection();
|
|
|
|
Metadata metadata = metadataDAO.getMetadata(tenantId, MetadataConstants.IS_DEVICE_STATUS_CHECK_META_KEY);
|
|
|
|
Metadata metadata = metadataDAO.getMetadata(tenantId, MetadataConstants.IS_DEVICE_STATUS_CHECK_META_KEY);
|
|
|
|
|
|
|
|
if (metadata == null) {
|
|
|
|
|
|
|
|
String msg = "Couldn't find the meta data value for meta key: "
|
|
|
|
|
|
|
|
+ MetadataConstants.IS_DEVICE_STATUS_CHECK_META_KEY + " and tenant Id: " + tenantId;
|
|
|
|
|
|
|
|
log.error(msg);
|
|
|
|
|
|
|
|
throw new MetadataKeyNotFoundException(msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
String metaValue = metadata.getMetaValue();
|
|
|
|
String metaValue = metadata.getMetaValue();
|
|
|
|
return Boolean.parseBoolean(metaValue);
|
|
|
|
return Boolean.parseBoolean(metaValue);
|
|
|
|
} catch (MetadataManagementDAOException e) {
|
|
|
|
} catch (MetadataManagementDAOException e) {
|
|
|
@ -227,8 +259,13 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
MetadataManagementDAOFactory.openConnection();
|
|
|
|
MetadataManagementDAOFactory.openConnection();
|
|
|
|
Metadata metadata = metadataDAO.getMetadata(tenantId, MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY);
|
|
|
|
Metadata metadata = metadataDAO.getMetadata(tenantId, MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY);
|
|
|
|
|
|
|
|
if (metadata == null) {
|
|
|
|
|
|
|
|
String msg = "Couldn't find the meta data value for meta key: "
|
|
|
|
|
|
|
|
+ MetadataConstants.ALLOWED_DEVICE_STATUS_META_KEY + " and tenant Id: " + tenantId;
|
|
|
|
|
|
|
|
log.error(msg);
|
|
|
|
|
|
|
|
throw new MetadataKeyNotFoundException(msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Gson gson = new Gson();
|
|
|
|
|
|
|
|
Type listType = new TypeToken<List<AllowedDeviceStatus>>() {
|
|
|
|
Type listType = new TypeToken<List<AllowedDeviceStatus>>() {
|
|
|
|
}.getType();
|
|
|
|
}.getType();
|
|
|
|
List<AllowedDeviceStatus> statusList = gson.fromJson(metadata.getMetaValue(), listType);
|
|
|
|
List<AllowedDeviceStatus> statusList = gson.fromJson(metadata.getMetaValue(), listType);
|
|
|
@ -254,22 +291,13 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void addMetadataEntry(int tenantId, Metadata metadata, String key) throws MetadataManagementDAOException {
|
|
|
|
/**
|
|
|
|
metadataDAO.addMetadata(tenantId, metadata);
|
|
|
|
* To construct device status Meta data by using received device status items
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
*
|
|
|
|
log.debug(key + " metadata entry has been inserted successfully");
|
|
|
|
* @param deviceStatusItems {@link List<DeviceStatusItem>}
|
|
|
|
}
|
|
|
|
* @return {@link Metadata}
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
private void updateMetadataEntry(int tenantId, Metadata metadata, String key) throws MetadataManagementDAOException {
|
|
|
|
|
|
|
|
metadataDAO.updateMetadata(tenantId, metadata);
|
|
|
|
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
|
|
|
|
log.debug(key + " metadata entry has been updated successfully");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Metadata constructDeviceStatusMetadata(List<DeviceStatusItem> deviceStatusItems) {
|
|
|
|
private Metadata constructDeviceStatusMetadata(List<DeviceStatusItem> deviceStatusItems) {
|
|
|
|
Gson gson = new Gson();
|
|
|
|
|
|
|
|
String deviceStatusItemsJsonString = gson.toJson(deviceStatusItems);
|
|
|
|
String deviceStatusItemsJsonString = gson.toJson(deviceStatusItems);
|
|
|
|
|
|
|
|
|
|
|
|
Metadata metadata = new Metadata();
|
|
|
|
Metadata metadata = new Metadata();
|
|
|
@ -279,6 +307,12 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
|
|
|
return metadata;
|
|
|
|
return metadata;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* To construct device status check Meta data to either enable it or disable it.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param deviceStatusCheck True or False
|
|
|
|
|
|
|
|
* @return {@link Metadata}
|
|
|
|
|
|
|
|
*/
|
|
|
|
private Metadata constructDeviceStatusCheckMetadata(boolean deviceStatusCheck) {
|
|
|
|
private Metadata constructDeviceStatusCheckMetadata(boolean deviceStatusCheck) {
|
|
|
|
JsonObject jsonObject = new JsonObject();
|
|
|
|
JsonObject jsonObject = new JsonObject();
|
|
|
|
jsonObject.addProperty("deviceStatusCheck", String.valueOf(deviceStatusCheck));
|
|
|
|
jsonObject.addProperty("deviceStatusCheck", String.valueOf(deviceStatusCheck));
|
|
|
@ -289,6 +323,11 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
|
|
|
return metadata;
|
|
|
|
return metadata;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Get default list of device status items from the configuration.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @return List of device status items
|
|
|
|
|
|
|
|
*/
|
|
|
|
private List<DeviceStatusItem> getDefaultDeviceStatus() {
|
|
|
|
private List<DeviceStatusItem> getDefaultDeviceStatus() {
|
|
|
|
DeviceStatusConfigurations deviceStatusConfigurations = UIConfigurationManager.getInstance().getUIConfig().getDeviceStatusConfigurations();
|
|
|
|
DeviceStatusConfigurations deviceStatusConfigurations = UIConfigurationManager.getInstance().getUIConfig().getDeviceStatusConfigurations();
|
|
|
|
List<DeviceStatusItem> deviceStatusItems = new ArrayList<>();
|
|
|
|
List<DeviceStatusItem> deviceStatusItems = new ArrayList<>();
|
|
|
@ -305,6 +344,11 @@ public class DeviceStatusManagementServiceImpl implements DeviceStatusManagement
|
|
|
|
return deviceStatusItems;
|
|
|
|
return deviceStatusItems;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Get Default device status check from the configuration.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @return default status check value, it will be either 'True' or 'False'
|
|
|
|
|
|
|
|
*/
|
|
|
|
private boolean getDefaultDeviceStatusCheck() {
|
|
|
|
private boolean getDefaultDeviceStatusCheck() {
|
|
|
|
DeviceStatusConfigurations deviceStatusConfigurations = UIConfigurationManager.getInstance().getUIConfig().getDeviceStatusConfigurations();
|
|
|
|
DeviceStatusConfigurations deviceStatusConfigurations = UIConfigurationManager.getInstance().getUIConfig().getDeviceStatusConfigurations();
|
|
|
|
boolean deviceStatusCheck = false;
|
|
|
|
boolean deviceStatusCheck = false;
|
|
|
|