mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Removed unnecessary comments
This commit is contained in:
parent
97c19c23b0
commit
8c748b3dfd
@ -93,7 +93,7 @@ public interface DeviceManagementProviderService extends OperationManager {
|
|||||||
void updateDeviceEnrolmentInfo(Device device, EnrolmentInfo.Status active) throws DeviceManagementException;
|
void updateDeviceEnrolmentInfo(Device device, EnrolmentInfo.Status active) throws DeviceManagementException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is used to retrieve list of devices based on the device status
|
* This method is used to retrieve list of devices based on the device status.
|
||||||
*
|
*
|
||||||
* @param status Device status
|
* @param status Device status
|
||||||
* @return List of devices
|
* @return List of devices
|
||||||
|
|||||||
@ -492,8 +492,9 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|||||||
public Device getDevice(DeviceIdentifier deviceId) throws DeviceManagementException {
|
public Device getDevice(DeviceIdentifier deviceId) throws DeviceManagementException {
|
||||||
Device device;
|
Device device;
|
||||||
try {
|
try {
|
||||||
|
DeviceManagementDAOFactory.openConnection();
|
||||||
device = deviceDAO.getDevice(deviceId, this.getTenantId());
|
device = deviceDAO.getDevice(deviceId, this.getTenantId());
|
||||||
} catch (DeviceManagementDAOException e) {
|
} catch (DeviceManagementDAOException | SQLException e) {
|
||||||
throw new DeviceManagementException("Error occurred while obtaining the device for id " +
|
throw new DeviceManagementException("Error occurred while obtaining the device for id " +
|
||||||
"'" + deviceId.getId() + "'", e);
|
"'" + deviceId.getId() + "'", e);
|
||||||
} finally {
|
} finally {
|
||||||
@ -731,10 +732,8 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|||||||
DeviceManagementDAOFactory.closeConnection();
|
DeviceManagementDAOFactory.closeConnection();
|
||||||
}
|
}
|
||||||
for (Device device : userDevices) {
|
for (Device device : userDevices) {
|
||||||
Device dmsDevice =
|
Device dmsDevice = this.getDeviceManager(device.getType()).
|
||||||
this.getPluginRepository().getDeviceManagementService(
|
getDevice(new DeviceIdentifier(device.getDeviceIdentifier(), device.getType()));
|
||||||
device.getType()).getDeviceManager().getDevice(
|
|
||||||
new DeviceIdentifier(device.getDeviceIdentifier(), device.getType()));
|
|
||||||
if (dmsDevice != null) {
|
if (dmsDevice != null) {
|
||||||
device.setFeatures(dmsDevice.getFeatures());
|
device.setFeatures(dmsDevice.getFeatures());
|
||||||
device.setProperties(dmsDevice.getProperties());
|
device.setProperties(dmsDevice.getProperties());
|
||||||
@ -771,10 +770,8 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|||||||
DeviceManagementDAOFactory.closeConnection();
|
DeviceManagementDAOFactory.closeConnection();
|
||||||
}
|
}
|
||||||
for (Device device : allDevices) {
|
for (Device device : allDevices) {
|
||||||
Device dmsDevice =
|
Device dmsDevice = this.getDeviceManager(device.getType()).
|
||||||
this.getPluginRepository().getDeviceManagementService(
|
getDevice(new DeviceIdentifier(device.getDeviceIdentifier(), device.getType()));
|
||||||
device.getType()).getDeviceManager().getDevice(
|
|
||||||
new DeviceIdentifier(device.getDeviceIdentifier(), device.getType()));
|
|
||||||
if (dmsDevice != null) {
|
if (dmsDevice != null) {
|
||||||
device.setFeatures(dmsDevice.getFeatures());
|
device.setFeatures(dmsDevice.getFeatures());
|
||||||
device.setProperties(dmsDevice.getProperties());
|
device.setProperties(dmsDevice.getProperties());
|
||||||
@ -835,10 +832,8 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (Device device : allDevices) {
|
for (Device device : allDevices) {
|
||||||
Device dmsDevice =
|
Device dmsDevice = this.getDeviceManager(device.getType()).
|
||||||
this.getPluginRepository().getDeviceManagementService(
|
getDevice(new DeviceIdentifier(device.getDeviceIdentifier(), device.getType()));
|
||||||
device.getType()).getDeviceManager().getDevice(
|
|
||||||
new DeviceIdentifier(device.getDeviceIdentifier(), device.getType()));
|
|
||||||
if (dmsDevice != null) {
|
if (dmsDevice != null) {
|
||||||
device.setFeatures(dmsDevice.getFeatures());
|
device.setFeatures(dmsDevice.getFeatures());
|
||||||
device.setProperties(dmsDevice.getProperties());
|
device.setProperties(dmsDevice.getProperties());
|
||||||
|
|||||||
@ -37,14 +37,6 @@
|
|||||||
<description>This feature contains oauth functionality
|
<description>This feature contains oauth functionality
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<!--<dependencies>-->
|
|
||||||
|
|
||||||
<!--<dependency>-->
|
|
||||||
<!--<groupId>org.wso2.mdm</groupId>-->
|
|
||||||
<!--<artifactId>dynamic-client-manager</artifactId>-->
|
|
||||||
<!--</dependency>-->
|
|
||||||
<!--</dependencies>-->
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -101,8 +93,6 @@
|
|||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.wso2.maven</groupId>
|
<groupId>org.wso2.maven</groupId>
|
||||||
<artifactId>carbon-p2-plugin</artifactId>
|
<artifactId>carbon-p2-plugin</artifactId>
|
||||||
@ -123,20 +113,6 @@
|
|||||||
<propertyDef>org.eclipse.equinox.p2.type.group:false</propertyDef>
|
<propertyDef>org.eclipse.equinox.p2.type.group:false</propertyDef>
|
||||||
</properties>
|
</properties>
|
||||||
</adviceFile>
|
</adviceFile>
|
||||||
<!--<bundles>-->
|
|
||||||
<!--<bundleDef>-->
|
|
||||||
<!--org.wso2.carbon.devicemgt:org.wso2.carbon.policy.mgt.core:${carbon.device.mgt.version}-->
|
|
||||||
<!--</bundleDef>-->
|
|
||||||
<!--<bundleDef>-->
|
|
||||||
<!--org.wso2.carbon.devicemgt:org.wso2.carbon.policy.mgt.common:${carbon.device.mgt.version}-->
|
|
||||||
<!--</bundleDef>-->
|
|
||||||
<!--<bundleDef>-->
|
|
||||||
<!--org.wso2.carbon.devicemgt:org.wso2.carbon.simple.policy.decision.point:${carbon.device.mgt.version}-->
|
|
||||||
<!--</bundleDef>-->
|
|
||||||
<!--<bundleDef>-->
|
|
||||||
<!--org.wso2.carbon.devicemgt:org.wso2.carbon.policy.information.point:${carbon.device.mgt.version}-->
|
|
||||||
<!--</bundleDef>-->
|
|
||||||
<!--</bundles>-->
|
|
||||||
<importFeatures>
|
<importFeatures>
|
||||||
<importFeatureDef>org.wso2.carbon.core.server:${carbon.kernel.version}
|
<importFeatureDef>org.wso2.carbon.core.server:${carbon.kernel.version}
|
||||||
</importFeatureDef>
|
</importFeatureDef>
|
||||||
@ -145,10 +121,6 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user