public class AndroidDeviceDAOImpl extends Object implements MobileDeviceDAO
Constructor and Description |
---|
AndroidDeviceDAOImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
addMobileDevice(MobileDevice mobileDevice)
Adds a new MobileDevice to the MDM database.
|
boolean |
deleteMobileDevice(String mblDeviceId)
Deletes a given MobileDevice from MDM database.
|
List<MobileDevice> |
getAllMobileDevices()
Fetches all MobileDevices from MDM database.
|
MobileDevice |
getMobileDevice(String mblDeviceId)
Fetches a MobileDevice from MDM database.
|
boolean |
updateMobileDevice(MobileDevice mobileDevice)
Updates MobileDevice information in MDM database.
|
public MobileDevice getMobileDevice(String mblDeviceId) throws MobileDeviceManagementDAOException
MobileDeviceDAO
getMobileDevice
in interface MobileDeviceDAO
mblDeviceId
- Id of the Mobile-Device.MobileDeviceManagementDAOException
public boolean addMobileDevice(MobileDevice mobileDevice) throws MobileDeviceManagementDAOException
MobileDeviceDAO
addMobileDevice
in interface MobileDeviceDAO
mobileDevice
- MobileDevice to be added.MobileDeviceManagementDAOException
public boolean updateMobileDevice(MobileDevice mobileDevice) throws MobileDeviceManagementDAOException
MobileDeviceDAO
updateMobileDevice
in interface MobileDeviceDAO
mobileDevice
- MobileDevice to be updated.MobileDeviceManagementDAOException
public boolean deleteMobileDevice(String mblDeviceId) throws MobileDeviceManagementDAOException
MobileDeviceDAO
deleteMobileDevice
in interface MobileDeviceDAO
mblDeviceId
- Id of MobileDevice to be deleted.MobileDeviceManagementDAOException
public List<MobileDevice> getAllMobileDevices() throws MobileDeviceManagementDAOException
MobileDeviceDAO
getAllMobileDevices
in interface MobileDeviceDAO
MobileDeviceManagementDAOException
Copyright © 2017 WSO2. All rights reserved.