|
|
@ -42,7 +42,15 @@ public interface DeviceDAO {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int addDevice(int typeId, Device device, int tenantId) throws DeviceManagementDAOException;
|
|
|
|
int addDevice(int typeId, Device device, int tenantId) throws DeviceManagementDAOException;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* This method is used to update a given device.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param typeId device type id.
|
|
|
|
|
|
|
|
* @param device device object.
|
|
|
|
|
|
|
|
* @param tenantId tenant id.
|
|
|
|
|
|
|
|
* @return returns the id of updated device.
|
|
|
|
|
|
|
|
* @throws DeviceManagementDAOException
|
|
|
|
|
|
|
|
*/
|
|
|
|
boolean updateDevice(int typeId, Device device, int tenantId) throws DeviceManagementDAOException;
|
|
|
|
boolean updateDevice(int typeId, Device device, int tenantId) throws DeviceManagementDAOException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -104,6 +112,7 @@ public interface DeviceDAO {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* This method is used to retrieve devices of a given user.
|
|
|
|
* This method is used to retrieve devices of a given user.
|
|
|
|
|
|
|
|
*
|
|
|
|
* @param username user name.
|
|
|
|
* @param username user name.
|
|
|
|
* @param tenantId tenant id.
|
|
|
|
* @param tenantId tenant id.
|
|
|
|
* @return returns list of devices.
|
|
|
|
* @return returns list of devices.
|
|
|
@ -122,6 +131,7 @@ public interface DeviceDAO {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* This method is used to retrieve devices of a given device name.
|
|
|
|
* This method is used to retrieve devices of a given device name.
|
|
|
|
|
|
|
|
*
|
|
|
|
* @param deviceName device name.
|
|
|
|
* @param deviceName device name.
|
|
|
|
* @param tenantId tenant id.
|
|
|
|
* @param tenantId tenant id.
|
|
|
|
* @return returns list of devices.
|
|
|
|
* @return returns list of devices.
|
|
|
@ -197,5 +207,17 @@ public interface DeviceDAO {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int getEnrolmentByStatus(DeviceIdentifier deviceId, Status status,
|
|
|
|
int getEnrolmentByStatus(DeviceIdentifier deviceId, Status status,
|
|
|
|
int tenantId) throws DeviceManagementDAOException;
|
|
|
|
int tenantId) throws DeviceManagementDAOException;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* This method is used to retrieve the enrollment info of a given list of devices and status.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param deviceIds A list of device identifiers.
|
|
|
|
|
|
|
|
* @param status enrollment status.
|
|
|
|
|
|
|
|
* @param tenantId tenant id.
|
|
|
|
|
|
|
|
* @return returns a list of enrolment info objects.
|
|
|
|
|
|
|
|
* @throws DeviceManagementDAOException
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
List<EnrolmentInfo> getEnrolmentsByStatus(List<DeviceIdentifier> deviceIds, Status status,
|
|
|
|
|
|
|
|
int tenantId) throws DeviceManagementDAOException;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|