added few changes after review

revert-70aa11f8
ayyoob 8 years ago
parent 6c7f911cbc
commit c93410eb92

@ -99,13 +99,14 @@ public class HTTPDeviceTypeManagerService extends DeviceTypeManagerService imple
} }
deviceTypeConfiguration.setName(deviceTypeName); deviceTypeConfiguration.setName(deviceTypeName);
if (deviceTypeMetaDefinition.getLicense() != null) { //TODO: Add it to the license management service.
License license = new License(); // if (deviceTypeMetaDefinition.getLicense() != null) {
license.setLanguage(deviceTypeMetaDefinition.getLicense().getLanguage()); // License license = new License();
license.setText(deviceTypeMetaDefinition.getLicense().getText()); // license.setLanguage(deviceTypeMetaDefinition.getLicense().getLanguage());
license.setVersion(deviceTypeMetaDefinition.getLicense().getVersion()); // license.setText(deviceTypeMetaDefinition.getLicense().getText());
deviceTypeConfiguration.setLicense(license); // license.setVersion(deviceTypeMetaDefinition.getLicense().getVersion());
} // deviceTypeConfiguration.setLicense(license);
// }
PolicyMonitoring policyMonitoring = new PolicyMonitoring(); PolicyMonitoring policyMonitoring = new PolicyMonitoring();
policyMonitoring.setEnabled(deviceTypeMetaDefinition.isPolicyMonitoringEnabled()); policyMonitoring.setEnabled(deviceTypeMetaDefinition.isPolicyMonitoringEnabled());
deviceTypeConfiguration.setPolicyMonitoring(policyMonitoring); deviceTypeConfiguration.setPolicyMonitoring(policyMonitoring);

@ -59,7 +59,7 @@
</h4> </h4>
<form id="form-{{operation}}" style="padding-bottom: 20px;"--> <form id="form-{{operation}}" style="padding-bottom: 20px;"-->
<select id="operation-type" class="form-control" onChange="operationTypeChage(this)"> <select id="operation-type" class="form-control" onChange="operationTypeChage(this)" style="display:none">
<option value="CONFIG">Config</option> <option value="CONFIG">Config</option>
<option value="COMMAND">Command</option> <option value="COMMAND">Command</option>
</select> </select>

@ -80,9 +80,6 @@
<bundleDef> <bundleDef>
org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.oauth.extensions:${carbon.device.mgt.version} org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.oauth.extensions:${carbon.device.mgt.version}
</bundleDef> </bundleDef>
<bundleDef>
org.wso2.carbon.devicemgt:org.wso2.carbon.identity.authenticator.backend.oauth:${carbon.device.mgt.version}
</bundleDef>
</bundles> </bundles>
<importFeatures> <importFeatures>
<importFeatureDef>org.wso2.carbon.core.server:${carbon.kernel.version} <importFeatureDef>org.wso2.carbon.core.server:${carbon.kernel.version}

Loading…
Cancel
Save