From a313bd5d35061d7110a30ffacb2c84c6303c3e65 Mon Sep 17 00:00:00 2001 From: shamalka Date: Wed, 22 Mar 2023 13:32:38 +0530 Subject: [PATCH] Add Traccar device rename method --- .../mgt/common/spi/TraccarManagementService.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/spi/TraccarManagementService.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/spi/TraccarManagementService.java index 39bb7d85ef..dceba7d6e2 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/spi/TraccarManagementService.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/spi/TraccarManagementService.java @@ -31,9 +31,9 @@ public interface TraccarManagementService { /** * Removes the Traccar device with the specified device ID from the logged in user. - * @param deviceId The ID of the Traccar device to be unlinked from the user. + * @param deviceEnrollmentId The enrollment ID of the device to be removed from Traccar. */ - void unLinkTraccarDevice(int deviceId); + void unLinkTraccarDevice(int deviceEnrollmentId); /** * Removes the device with the specified enrollment ID from Traccar. @@ -41,6 +41,13 @@ public interface TraccarManagementService { */ void removeDevice(int deviceEnrollmentId); + /** + * Renames the device with the specified enrollment ID to the given name. + * @param deviceEnrollmentId the enrollment ID of the device to be renamed + * @param name The new name for the device + */ + void renameDevice(int deviceEnrollmentId, String name); + /** * Updates the location of the provided device with the specified device location. * @param device The device whose location is to be updated.