mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'master' of https://github.com/wso2/carbon-device-mgt
This commit is contained in:
commit
a8e9bd81c1
@ -36,7 +36,7 @@ import java.util.List;
|
|||||||
* Implements CRUD for Devices. This holds the generic implementation. An instance of this will be created for
|
* Implements CRUD for Devices. This holds the generic implementation. An instance of this will be created for
|
||||||
* each device type.
|
* each device type.
|
||||||
*/
|
*/
|
||||||
public class DeviceTypePluginDAOImpl implements PluginDAO{
|
public class DeviceTypePluginDAOImpl implements PluginDAO {
|
||||||
|
|
||||||
private static final Log log = LogFactory.getLog(DeviceTypePluginDAOImpl.class);
|
private static final Log log = LogFactory.getLog(DeviceTypePluginDAOImpl.class);
|
||||||
private DeviceTypeDAOHandler deviceTypeDAOHandler;
|
private DeviceTypeDAOHandler deviceTypeDAOHandler;
|
||||||
@ -241,9 +241,11 @@ public class DeviceTypePluginDAOImpl implements PluginDAO{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getPropertString(List<Device.Property> properties, String propertyName) {
|
private String getPropertString(List<Device.Property> properties, String propertyName) {
|
||||||
for (Device.Property property : properties) {
|
if (properties != null) {
|
||||||
if (property.getName() != null && property.getName().equals(propertyName)) {
|
for (Device.Property property : properties) {
|
||||||
return property.getValue();
|
if (property.getName() != null && property.getName().equals(propertyName)) {
|
||||||
|
return property.getValue();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user