|
|
|
@ -24,6 +24,8 @@ import org.osgi.service.component.ComponentContext;
|
|
|
|
|
import org.wso2.carbon.apimgt.impl.APIManagerConfigurationService;
|
|
|
|
|
import org.wso2.carbon.core.ServerStartupObserver;
|
|
|
|
|
import org.wso2.carbon.device.mgt.common.DeviceManagementException;
|
|
|
|
|
import org.wso2.carbon.device.mgt.common.app.mgt.AppManagerConnector;
|
|
|
|
|
import org.wso2.carbon.device.mgt.common.app.mgt.AppManagerConnectorException;
|
|
|
|
|
import org.wso2.carbon.device.mgt.common.license.mgt.License;
|
|
|
|
|
import org.wso2.carbon.device.mgt.common.license.mgt.LicenseManagementException;
|
|
|
|
|
import org.wso2.carbon.device.mgt.common.license.mgt.LicenseManager;
|
|
|
|
@ -37,8 +39,6 @@ import org.wso2.carbon.device.mgt.core.api.mgt.APIPublisherService;
|
|
|
|
|
import org.wso2.carbon.device.mgt.core.api.mgt.APIPublisherServiceImpl;
|
|
|
|
|
import org.wso2.carbon.device.mgt.core.api.mgt.APIRegistrationStartupObserver;
|
|
|
|
|
import org.wso2.carbon.device.mgt.core.app.mgt.AppManagementServiceImpl;
|
|
|
|
|
import org.wso2.carbon.device.mgt.common.app.mgt.AppManagerConnector;
|
|
|
|
|
import org.wso2.carbon.device.mgt.common.app.mgt.AppManagerConnectorException;
|
|
|
|
|
import org.wso2.carbon.device.mgt.core.app.mgt.RemoteAppManagerConnector;
|
|
|
|
|
import org.wso2.carbon.device.mgt.core.app.mgt.config.AppManagementConfig;
|
|
|
|
|
import org.wso2.carbon.device.mgt.core.app.mgt.config.AppManagementConfigurationManager;
|
|
|
|
@ -55,9 +55,11 @@ import org.wso2.carbon.device.mgt.core.service.DeviceManagementService;
|
|
|
|
|
import org.wso2.carbon.device.mgt.core.service.DeviceManagementServiceImpl;
|
|
|
|
|
import org.wso2.carbon.device.mgt.core.util.DeviceManagementSchemaInitializer;
|
|
|
|
|
import org.wso2.carbon.device.mgt.user.core.UserManager;
|
|
|
|
|
import org.wso2.carbon.user.core.service.RealmService;
|
|
|
|
|
import org.wso2.carbon.device.mgt.user.core.service.UserManagementService;
|
|
|
|
|
import org.wso2.carbon.ndatasource.core.DataSourceService;
|
|
|
|
|
import org.wso2.carbon.registry.core.service.RegistryService;
|
|
|
|
|
import org.wso2.carbon.user.core.service.RealmService;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
@ -93,9 +95,9 @@ import java.util.List;
|
|
|
|
|
* policy="dynamic"
|
|
|
|
|
* bind="setDataSourceService"
|
|
|
|
|
* unbind="unsetDataSourceService"
|
|
|
|
|
* @scr.reference name="org.wso2.carbon.device.mgt.usermanager.service"
|
|
|
|
|
* @scr.reference name="org.wso2.carbon.device.mgt.user.core.usermanager"
|
|
|
|
|
* interface="org.wso2.carbon.device.mgt.user.core.UserManager"
|
|
|
|
|
* cardinality="1..1"
|
|
|
|
|
* cardinality="1..1
|
|
|
|
|
* policy="dynamic"
|
|
|
|
|
* bind="setUserManager"
|
|
|
|
|
* unbind="unsetUserManager"
|
|
|
|
@ -188,7 +190,7 @@ public class DeviceManagementServiceComponent {
|
|
|
|
|
AppManagementConfig appConfig =
|
|
|
|
|
AppManagementConfigurationManager.getInstance().getAppManagementConfig();
|
|
|
|
|
DeviceManagementDataHolder.getInstance().setAppManagerConfig(appConfig);
|
|
|
|
|
RemoteAppManagerConnector appManager = new RemoteAppManagerConnector(appConfig,this.getPluginRepository());
|
|
|
|
|
RemoteAppManagerConnector appManager = new RemoteAppManagerConnector(appConfig, this.getPluginRepository());
|
|
|
|
|
DeviceManagementDataHolder.getInstance().setAppManager(appManager);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|