Merge branch 'master' into 'master'

Add device mgt service methods

See merge request entgra/carbon-device-mgt-plugins!172
merge-requests/173/merge
Dharmakeerthi Lasantha 4 years ago
commit 21b2e599a8

@ -797,4 +797,7 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv
throws OperationManagementException {
return 0;
}
@Override
public License getLicenseConfig(String s) throws DeviceManagementException { return null; }
}

@ -32,6 +32,7 @@ import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfiguration
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
import org.wso2.carbon.device.mgt.common.general.GeneralConfig;
import org.wso2.carbon.device.mgt.common.invitation.mgt.DeviceEnrollmentInvitationDetails;
import org.wso2.carbon.device.mgt.common.license.mgt.License;
import org.wso2.carbon.device.mgt.common.policy.mgt.PolicyMonitoringManager;
import org.wso2.carbon.device.mgt.common.pull.notification.PullNotificationSubscriber;
import org.wso2.carbon.device.mgt.common.push.notification.PushNotificationConfig;
@ -153,6 +154,9 @@ public class AndroidDeviceManagementService implements DeviceManagementService {
@Override public DeviceEnrollmentInvitationDetails getDeviceEnrollmentInvitationDetails() { return null; }
@Override
public License getLicenseConfig() { return null; }
private String getConfigProperty(List<ConfigurationEntry> configs, String propertyName) {
for (ConfigurationEntry entry : configs) {
if (propertyName.equals(entry.getName())) {

Loading…
Cancel
Save