mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge pull request #9 from manojgunayadev/master
Licence Management Refactor
This commit is contained in:
commit
8a25f55ac2
@ -73,8 +73,10 @@ public class LicenseManagerImpl implements LicenseManager {
|
|||||||
filteredArtifacts = artifactManager.findGenericArtifacts(
|
filteredArtifacts = artifactManager.findGenericArtifacts(
|
||||||
new GenericArtifactFilter() {
|
new GenericArtifactFilter() {
|
||||||
public boolean matches(GenericArtifact artifact) throws GovernanceException {
|
public boolean matches(GenericArtifact artifact) throws GovernanceException {
|
||||||
String attributeNameVal = artifact.getAttribute("overview_name");
|
String attributeNameVal = artifact.getAttribute(
|
||||||
String attributeLangVal = artifact.getAttribute("overview_language");
|
DeviceManagementConstants.LicenseProperties.OVERVIEW_NAME);
|
||||||
|
String attributeLangVal = artifact.getAttribute(
|
||||||
|
DeviceManagementConstants.LicenseProperties.OVERVIEW_LANGUAGE);
|
||||||
return (attributeNameVal != null && attributeLangVal != null && attributeNameVal.equals
|
return (attributeNameVal != null && attributeLangVal != null && attributeNameVal.equals
|
||||||
(deviceType) && attributeLangVal.equals(languageCodes));
|
(deviceType) && attributeLangVal.equals(languageCodes));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user