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 mblDeviceOperationMapping)
          Adds a new mobile device operation mapping to the table.
 boolean deleteMobileDeviceOperationMapping(String mblDeviceId, int operationId)
          Delete a given MobileDeviceOperationMapping from MobileDeviceOperationMapping table.
 List<MobileDeviceOperationMapping> getAllMobileDeviceOperationMappingsOfDevice(String mblDeviceId)
          Retrieves all the of MobileDeviceOperationMappings relevant to a given mobile device.
 List<MobileDeviceOperationMapping> getAllPendingOperationMappingsOfMobileDevice(String mblDeviceId)
          Retrieves all the pending MobileDeviceOperationMappings of a mobile device.
 MobileDeviceOperationMapping getMobileDeviceOperationMapping(String mblDeviceId, int operationId)
          Retrieves a given MobileDeviceOperationMapping object from the MobileDeviceOperationMapping table.
 boolean updateMobileDeviceOperationMapping(MobileDeviceOperationMapping mblDeviceOperation)
          Updates a MobileDeviceOperationMapping in MobileDeviceOperationMapping table.
 boolean updateMobileDeviceOperationMappingToCompleted(String mblDeviceId, int operationId)
          Updates a MobileDeviceOperationMapping to completed state in MobileDeviceOperationMapping table.
 boolean updateMobileDeviceOperationMappingToInProgress(String mblDeviceId, int operationId)
          Updates a MobileDeviceOperationMapping to In-Progress state in MobileDeviceOperationMapping table.
 

Method Detail

addMobileDeviceOperationMapping

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

Parameters:
mblDeviceOperationMapping - MobileDeviceOperationMapping object that holds data related to the MobileDeviceOperationMapping to be inserted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

updateMobileDeviceOperationMapping

boolean updateMobileDeviceOperationMapping(MobileDeviceOperationMapping mblDeviceOperation)
                                           throws MobileDeviceManagementDAOException
Updates a MobileDeviceOperationMapping in MobileDeviceOperationMapping table.

Parameters:
mblDeviceOperation - MobileDeviceOperationMapping object that holds data has to be updated.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

updateMobileDeviceOperationMappingToInProgress

boolean updateMobileDeviceOperationMappingToInProgress(String mblDeviceId,
                                                       int operationId)
                                                       throws MobileDeviceManagementDAOException
Updates a MobileDeviceOperationMapping to In-Progress state in MobileDeviceOperationMapping table.

Parameters:
mblDeviceId - MobileDevice id of the mappings to be updated.
operationId - Operation id of the mapping to be updated.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

updateMobileDeviceOperationMappingToCompleted

boolean updateMobileDeviceOperationMappingToCompleted(String mblDeviceId,
                                                      int operationId)
                                                      throws MobileDeviceManagementDAOException
Updates a MobileDeviceOperationMapping to completed state in MobileDeviceOperationMapping table.

Parameters:
mblDeviceId - MobileDevice id of the mappings to be updated.
operationId - Operation id of the mapping to be updated.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

deleteMobileDeviceOperationMapping

boolean deleteMobileDeviceOperationMapping(String mblDeviceId,
                                           int operationId)
                                           throws MobileDeviceManagementDAOException
Delete a given MobileDeviceOperationMapping from MobileDeviceOperationMapping table.

Parameters:
mblDeviceId - MobileDevice id of the mappings to be deleted.
operationId - Operation id of the mapping to be deleted.
Returns:
The status of the operation.
Throws:
MobileDeviceManagementDAOException

getMobileDeviceOperationMapping

MobileDeviceOperationMapping getMobileDeviceOperationMapping(String mblDeviceId,
                                                             int operationId)
                                                             throws MobileDeviceManagementDAOException
Retrieves a given MobileDeviceOperationMapping object from the MobileDeviceOperationMapping table.

Parameters:
mblDeviceId - 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

getAllMobileDeviceOperationMappingsOfDevice

List<MobileDeviceOperationMapping> getAllMobileDeviceOperationMappingsOfDevice(String mblDeviceId)
                                                                               throws MobileDeviceManagementDAOException
Retrieves all the of MobileDeviceOperationMappings relevant to a given mobile device.

Parameters:
mblDeviceId - MobileDevice id of the mappings to be retrieved.
Returns:
MobileDeviceOperationMapping object list.
Throws:
MobileDeviceManagementDAOException

getAllPendingOperationMappingsOfMobileDevice

List<MobileDeviceOperationMapping> getAllPendingOperationMappingsOfMobileDevice(String mblDeviceId)
                                                                                throws MobileDeviceManagementDAOException
Retrieves all the pending MobileDeviceOperationMappings of a mobile device.

Parameters:
mblDeviceId - MobileDevice id of the mappings to be retrieved.
Returns:
MobileDeviceOperationMapping object list.
Throws:
MobileDeviceManagementDAOException


Copyright © 2015 WSO2. All rights reserved.