mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'master' of https://github.com/wso2/product-cdm
This commit is contained in:
commit
fb3e40bc2f
@ -59,21 +59,11 @@ public final class DeviceManagementConstants {
|
|||||||
public final static String LANGUAGE_CODE_ENGLISH_UK = "en-uk";
|
public final static String LANGUAGE_CODE_ENGLISH_UK = "en-uk";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class DefaultLicences {
|
|
||||||
|
|
||||||
private DefaultLicences() {
|
|
||||||
throw new AssertionError();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String DEFAULT_LICENSE_CONFIG_XML_NAME = "DefaultLicense.xml";
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final class LicenseProperties {
|
public static final class LicenseProperties {
|
||||||
|
|
||||||
private LicenseProperties() {
|
private LicenseProperties() {
|
||||||
throw new AssertionError();
|
throw new AssertionError();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final String OVERVIEW_PROVIDER = "overview_provider";
|
public static final String OVERVIEW_PROVIDER = "overview_provider";
|
||||||
public static final String OVERVIEW_NAME = "overview_name";
|
public static final String OVERVIEW_NAME = "overview_name";
|
||||||
public static final String OVERVIEW_LANGUAGE = "overview_language";
|
public static final String OVERVIEW_LANGUAGE = "overview_language";
|
||||||
|
|||||||
@ -68,7 +68,8 @@ public class LicenseManagerImpl implements LicenseManager {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
GovernanceUtils.loadGovernanceArtifacts((UserRegistry) registry);
|
GovernanceUtils.loadGovernanceArtifacts((UserRegistry) registry);
|
||||||
GenericArtifactManager artifactManager = new GenericArtifactManager(registry, "license");
|
GenericArtifactManager artifactManager = new GenericArtifactManager(registry,
|
||||||
|
DeviceManagementConstants.LicenseProperties.LICENSE_REGISTRY_KEY);
|
||||||
|
|
||||||
filteredArtifacts = artifactManager.findGenericArtifacts(
|
filteredArtifacts = artifactManager.findGenericArtifacts(
|
||||||
new GenericArtifactFilter() {
|
new GenericArtifactFilter() {
|
||||||
|
|||||||
@ -68,7 +68,7 @@ public class LicenseManagementServiceComponent {
|
|||||||
LicenseManager licenseManager = new LicenseManagerImpl();
|
LicenseManager licenseManager = new LicenseManagerImpl();
|
||||||
LicenseManagementDataHolder.getInstance().setLicenseManager(licenseManager);
|
LicenseManagementDataHolder.getInstance().setLicenseManager(licenseManager);
|
||||||
|
|
||||||
/* If -Dsetup option enabled then create creates default license management */
|
/* If -Dsetup option enabled then create creates default license management */
|
||||||
String setupOption = System.getProperty(
|
String setupOption = System.getProperty(
|
||||||
org.wso2.carbon.device.mgt.core.DeviceManagementConstants.Common.PROPERTY_SETUP);
|
org.wso2.carbon.device.mgt.core.DeviceManagementConstants.Common.PROPERTY_SETUP);
|
||||||
|
|
||||||
@ -81,7 +81,6 @@ public class LicenseManagementServiceComponent {
|
|||||||
.getLicenseMgtConfig();
|
.getLicenseMgtConfig();
|
||||||
addDefaultLicenses(licenseManagementConfig);
|
addDefaultLicenses(licenseManagementConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
log.debug("Registering OSGi service LicenseManagementService");
|
log.debug("Registering OSGi service LicenseManagementService");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,50 @@
|
|||||||
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
|
<!--
|
||||||
|
~
|
||||||
|
~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||||
|
~
|
||||||
|
~ WSO2 Inc. licenses this file to you under the Apache License,
|
||||||
|
~ Version 2.0 (the "License"); you may not use this file except
|
||||||
|
~ in compliance with the License.
|
||||||
|
~ You may obtain a copy of the License at
|
||||||
|
~
|
||||||
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
~
|
||||||
|
~ Unless required by applicable law or agreed to in writing,
|
||||||
|
~ software distributed under the License is distributed on an
|
||||||
|
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
~ KIND, either express or implied. See the License for the
|
||||||
|
~ specific language governing permissions and limitations
|
||||||
|
~ under the License.
|
||||||
|
~
|
||||||
|
-->
|
||||||
|
|
||||||
|
<DefaultLicense>
|
||||||
|
<License>
|
||||||
|
<provider>wso2</provider>
|
||||||
|
<name>android</name>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<language>1.0.0</language>
|
||||||
|
<validFrom>01-01-2014</validFrom>
|
||||||
|
<validTo>31-12-2035</validTo>
|
||||||
|
<license><![CDATA[Test License]]></license>
|
||||||
|
</License>
|
||||||
|
<License>
|
||||||
|
<provider>wso2</provider>
|
||||||
|
<name>ios</name>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<language>1.0.0</language>
|
||||||
|
<validFrom>01-01-2014</validFrom>
|
||||||
|
<validTo>31-12-2035</validTo>
|
||||||
|
<license><![CDATA[IOS License]]></license>
|
||||||
|
</License>
|
||||||
|
<License>
|
||||||
|
<provider>wso2</provider>
|
||||||
|
<name>windows</name>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<language>1.0.0</language>
|
||||||
|
<validFrom>01-01-2014</validFrom>
|
||||||
|
<validTo>31-12-2035</validTo>
|
||||||
|
<license><![CDATA[Windows License]]></license>
|
||||||
|
</License>
|
||||||
|
</DefaultLicense>
|
||||||
Loading…
Reference in New Issue
Block a user