org.wso2.carbon.device.mgt.mobile.dao
Interface MobileDeviceOperationMappingDAO

All Known Implementing Classes:
MobileDeviceOperationMappingDAOImpl

public interface MobileDeviceOperationMappingDAO

This class represents the mapping between mobile device and operations.


Method Summary
 boolean addMobileDeviceOperationMapping(MobileDeviceOperationMapping deviceOperation)
          Add a new mobile device operation mapping to the table.
 boolean deleteMobileDeviceOperationMapping(String deviceId, int operationId)
          Delete a given mobile device operation mapping from table.
 List<MobileDeviceOperationMapping> getAllMobileDeviceOperationNappingsOfDevice(String deviceId)
          Retrieves all the of mobile device operation mappings relavent to the given mobile device.
 List<MobileDeviceOperationMapping> getAllPendingOperationMappingsOfMobileDevice(String deviceId)
          Retrieves all the pending device operation mappings of a mobiel device.
 MobileDeviceOperationMapping getMobileDeviceOperationMapping(String deviceId, int operationId)
          Retrieves a given mobile device operation from the plugin database.
 boolean updateMobileDeviceOperationMapping(MobileDeviceOperationMapping deviceOperation)
          Updates a mobile device operation mapping.
 boolean updateMobileDeviceOperationMappingToCompleted(String deviceId, int operationId)
          Updates a mobile device operation mapping to completed state.
 boolean updateMobileDeviceOperationMappingToInProgress(String deviceId, int operationId)
          Updates a mobile device operation mapping to In-Progress state.
 

Method Detail

addMobileDeviceOperationMapping

boolean addMobileDeviceOperationMapping(MobileDeviceOperationMapping deviceOperation)
                                        throws MobileDeviceManagementDAOException
Add a new mobile device operation mapping to the table.

Parameters:
deviceOperation - MobileDeviceOperation object that holds data related to the MobileDeviceOperation to be inserted.
Returns:
The status of the operation. If the insert was successful or not.
Throws:
MobileDeviceManagementDAOException

updateMobileDeviceOperationMapping

boolean updateMobileDeviceOperationMapping(MobileDeviceOperationMapping deviceOperation)
                                           throws MobileDeviceManagementDAOException
Updates a mobile device operation mapping.

Parameters:
deviceOperation - MobileDeviceOperation object that holds data has to be updated.
Returns:
The status of the operation. If the update was successful or not.
Throws:
MobileDeviceManagementDAOException

updateMobileDeviceOperationMappingToInProgress

boolean updateMobileDeviceOperationMappingToInProgress(String deviceId,
                                                       int operationId)
                                                       throws MobileDeviceManagementDAOException
Updates a mobile device operation mapping to In-Progress state.

Parameters:
deviceId - Device id of the mapping to be deleted.
operationId - Operation id of the mapping to be deleted.
Returns:
The status of the operation. If the update was successful or not.
Throws:
MobileDeviceManagementDAOException

updateMobileDeviceOperationMappingToCompleted

boolean updateMobileDeviceOperationMappingToCompleted(String deviceId,
                                                      int operationId)
                                                      throws MobileDeviceManagementDAOException
Updates a mobile device operation mapping to completed state.

Parameters:
deviceId - Device id of the mapping to be deleted.
operationId - Operation id of the mapping to be deleted.
Returns:
The status of the operation. If the update was successful or not.
Throws:
MobileDeviceManagementDAOException

deleteMobileDeviceOperationMapping

boolean deleteMobileDeviceOperationMapping(String deviceId,
                                           int operationId)
                                           throws MobileDeviceManagementDAOException
Delete a given mobile device operation mapping from table.

Parameters:
deviceId - Device id of the mapping to be deleted.
operationId - Operation id of the mapping to be deleted.
Returns:
The status of the operation. If the deletion was successful or not.
Throws:
MobileDeviceManagementDAOException

getMobileDeviceOperationMapping

MobileDeviceOperationMapping getMobileDeviceOperationMapping(String deviceId,
                                                             int operationId)
                                                             throws MobileDeviceManagementDAOException
Retrieves a given mobile device operation from the plugin database.

Parameters:
deviceId - Device id of the mapping to be retrieved.
operationId - Operation id of the mapping to be retrieved.
Returns:
MobileDeviceOperation object that holds data of the device operation mapping represented by deviceId and operationId.
Throws:
MobileDeviceManagementDAOException

getAllMobileDeviceOperationNappingsOfDevice

List<MobileDeviceOperationMapping> getAllMobileDeviceOperationNappingsOfDevice(String deviceId)
                                                                               throws MobileDeviceManagementDAOException
Retrieves all the of mobile device operation mappings relavent to the given mobile device.

Returns:
Device operation mapping object list.
Throws:
MobileDeviceManagementDAOException

getAllPendingOperationMappingsOfMobileDevice

List<MobileDeviceOperationMapping> getAllPendingOperationMappingsOfMobileDevice(String deviceId)
                                                                                throws MobileDeviceManagementDAOException
Retrieves all the pending device operation mappings of a mobiel device.

Returns:
Device operation mapping object list.
Throws:
MobileDeviceManagementDAOException


Copyright © 2015 WSO2. All rights reserved.