mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
License Managment refactor
This commit is contained in:
parent
ce1586a52c
commit
4b81d04320
@ -59,21 +59,11 @@ public final class DeviceManagementConstants {
|
||||
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 {
|
||||
|
||||
private LicenseProperties() {
|
||||
throw new AssertionError();
|
||||
}
|
||||
|
||||
public static final String OVERVIEW_PROVIDER = "overview_provider";
|
||||
public static final String OVERVIEW_NAME = "overview_name";
|
||||
public static final String OVERVIEW_LANGUAGE = "overview_language";
|
||||
|
||||
@ -68,7 +68,8 @@ public class LicenseManagerImpl implements LicenseManager {
|
||||
|
||||
try {
|
||||
GovernanceUtils.loadGovernanceArtifacts((UserRegistry) registry);
|
||||
GenericArtifactManager artifactManager = new GenericArtifactManager(registry, "license");
|
||||
GenericArtifactManager artifactManager = new GenericArtifactManager(registry,
|
||||
DeviceManagementConstants.LicenseProperties.LICENSE_REGISTRY_KEY);
|
||||
|
||||
filteredArtifacts = artifactManager.findGenericArtifacts(
|
||||
new GenericArtifactFilter() {
|
||||
|
||||
@ -81,7 +81,6 @@ public class LicenseManagementServiceComponent {
|
||||
.getLicenseMgtConfig();
|
||||
addDefaultLicenses(licenseManagementConfig);
|
||||
}
|
||||
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("Registering OSGi service LicenseManagementService");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user