Add StampEventIKeyForConcerns option in Java layer (#1107)

* Add StampEventIKeyForConcerns option in Java layer

* Update modules version and bump version

* Bump version to speed up release.
This commit is contained in:
Sid Dahiya 2023-03-06 13:37:48 -08:00 коммит произвёл GitHub
Родитель 76a1051f74
Коммит 3c77727853
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 21 добавлений и 7 удалений

Просмотреть файл

@ -15,6 +15,7 @@ public class PrivacyGuard {
boolean UseEventFieldPrefix,
boolean ScanForUrls,
boolean DisableAdvancedScans,
boolean StampEventIKeyForConcerns,
String domainName,
String machineName,
Object[] userNames,
@ -31,7 +32,8 @@ public class PrivacyGuard {
String SummaryEventName,
boolean UseEventFieldPrefix,
boolean ScanForUrls,
boolean DisableAdvancedScans
boolean DisableAdvancedScans,
boolean StampEventIKeyForConcerns
);
/**
@ -61,6 +63,7 @@ public class PrivacyGuard {
initConfig.UseEventFieldPrefix,
initConfig.ScanForUrls,
initConfig.DisableAdvancedScans,
initConfig.StampEventIKeyForConcerns,
initConfig.DataContext.domainName,
initConfig.DataContext.machineName,
initConfig.DataContext.userNames.toArray(),
@ -78,7 +81,8 @@ public class PrivacyGuard {
initConfig.SummaryEventName,
initConfig.UseEventFieldPrefix,
initConfig.ScanForUrls,
initConfig.DisableAdvancedScans
initConfig.DisableAdvancedScans,
initConfig.StampEventIKeyForConcerns
);
}
}

Просмотреть файл

@ -69,4 +69,10 @@ public class PrivacyGuardInitConfig {
* Default value is `false`.
*/
public boolean DisableAdvancedScans = false;
/**
* (OPTIONAL) Should stamp the iKey for the scanned event as an additional property on Concerns.
* Default value is `false`.
*/
public boolean StampEventIKeyForConcerns = false;
}

Просмотреть файл

@ -6,8 +6,8 @@
#define MAT_VERSION_HPP
// WARNING: DO NOT MODIFY THIS FILE!
// This file has been automatically generated, manual changes will be lost.
#define BUILD_VERSION_STR "3.7.46.1"
#define BUILD_VERSION 3,7,46,1
#define BUILD_VERSION_STR "3.7.62.1"
#define BUILD_VERSION 3,7,62,1
#ifndef RESOURCE_COMPILER_INVOKED
#include "ctmacros.hpp"
@ -18,7 +18,7 @@ namespace MAT_NS_BEGIN {
uint64_t const Version =
((uint64_t)3 << 48) |
((uint64_t)7 << 32) |
((uint64_t)46 << 16) |
((uint64_t)62 << 16) |
((uint64_t)1);
} MAT_NS_END

Просмотреть файл

@ -53,7 +53,8 @@ Java_com_microsoft_applications_events_PrivacyGuard_nativeInitializePrivacyGuard
jstring SummaryEventName,
jboolean UseEventFieldPrefix,
jboolean ScanForUrls,
jboolean DisableAdvancedScans) {
jboolean DisableAdvancedScans,
jboolean StampEventIKeyForConcerns) {
if (spPrivacyGuard != nullptr) {
return false;
}
@ -76,6 +77,7 @@ Java_com_microsoft_applications_events_PrivacyGuard_nativeInitializePrivacyGuard
config.UseEventFieldPrefix = static_cast<bool>(UseEventFieldPrefix);
config.ScanForUrls = static_cast<bool>(ScanForUrls);
config.DisableAdvancedScans = static_cast<bool>(DisableAdvancedScans);
config.StampEventIKeyForConcerns = static_cast<bool>(StampEventIKeyForConcerns);
spPrivacyGuard = std::make_shared<PrivacyGuard>(config);
return true;
@ -92,6 +94,7 @@ Java_com_microsoft_applications_events_PrivacyGuard_nativeInitializePrivacyGuard
jboolean UseEventFieldPrefix,
jboolean ScanForUrls,
jboolean DisableAdvancedScans,
jboolean StampEventIKeyForConcerns,
jstring domainName,
jstring machineName,
jobjectArray userNames,
@ -131,6 +134,7 @@ Java_com_microsoft_applications_events_PrivacyGuard_nativeInitializePrivacyGuard
config.UseEventFieldPrefix = static_cast<bool>(UseEventFieldPrefix);
config.ScanForUrls = static_cast<bool>(ScanForUrls);
config.DisableAdvancedScans = static_cast<bool>(DisableAdvancedScans);
config.StampEventIKeyForConcerns = static_cast<bool>(StampEventIKeyForConcerns);
spPrivacyGuard = std::make_shared<PrivacyGuard>(config);
return true;

@ -1 +1 @@
Subproject commit 6eb4b93345b4ce62406dc4669d7d086fb179a5ee
Subproject commit 883a3e3b9c63fa713bdde31bf7417e63e416fe4e