Class PrivacyConfiguration
- java.lang.Object
-
- com.dynatrace.openkit.core.configuration.PrivacyConfiguration
-
public class PrivacyConfiguration extends java.lang.ObjectConfiguration class storing user configured privacy settings.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrivacyConfigurationfrom(DynatraceOpenKitBuilder builder)Create aPrivacyConfigurationfrom givenDynatraceOpenKitBuilder.CrashReportingLevelgetCrashReportingLevel()Get the crash reporting level.DataCollectionLevelgetDataCollectionLevel()Get the data collection level.booleanisActionReportingAllowed()Gives a boolean indicating whether reporting actions is allowed or not.booleanisCrashReportingAllowed()Gives a boolean indicating whether reporting crashes is allowed or not.booleanisDeviceIDSendingAllowed()Gives a boolean indicating whether sending the device identifier is allowed or not.booleanisErrorReportingAllowed()Gives a boolean indicating whether reporting errors is allowed or not.booleanisEventReportingAllowed()Gives a boolean indicating whether reporting events is allowed or not.booleanisSessionNumberReportingAllowed()Gives a boolean indicating whether sending the session number is allowed or not.booleanisSessionReportingAllowed()Gives a boolean indicating whether reporting ended sessions is allowed or not.booleanisUserIdentificationAllowed()Gives a boolean indicating whether identifying users is allowed or not.booleanisValueReportingAllowed()Gives a boolean indicating whether reporting values is allowed or not.booleanisWebRequestTracingAllowed()Gives a boolean indicating whether tracing web requests is allowed or not.
-
-
-
Method Detail
-
from
public static PrivacyConfiguration from(DynatraceOpenKitBuilder builder)
Create aPrivacyConfigurationfrom givenDynatraceOpenKitBuilder.- Parameters:
builder- The OpenKit builder for which to create aPrivacyConfiguration.- Returns:
- Newly created
PrivacyConfigurationornullif given argument isnull
-
getDataCollectionLevel
public DataCollectionLevel getDataCollectionLevel()
Get the data collection level.- Returns:
- Data collection level, which was set in the constructor.
-
getCrashReportingLevel
public CrashReportingLevel getCrashReportingLevel()
Get the crash reporting level.- Returns:
- Crash reporting level, which was set in the constructor.
-
isDeviceIDSendingAllowed
public boolean isDeviceIDSendingAllowed()
Gives a boolean indicating whether sending the device identifier is allowed or not.- Returns:
trueif sending device identifier is allowed,falseotherwise.
-
isSessionNumberReportingAllowed
public boolean isSessionNumberReportingAllowed()
Gives a boolean indicating whether sending the session number is allowed or not.- Returns:
trueif sending the session number is allowed,falseotherwise.
-
isWebRequestTracingAllowed
public boolean isWebRequestTracingAllowed()
Gives a boolean indicating whether tracing web requests is allowed or not.- Returns:
trueif web request tracing is allowed,falseotherwise.
-
isSessionReportingAllowed
public boolean isSessionReportingAllowed()
Gives a boolean indicating whether reporting ended sessions is allowed or not.- Returns:
trueif ended sessions can be reported,falseotherwise.
-
isActionReportingAllowed
public boolean isActionReportingAllowed()
Gives a boolean indicating whether reporting actions is allowed or not.- Returns:
trueif action reporting is allowed,falseotherwise.
-
isValueReportingAllowed
public boolean isValueReportingAllowed()
Gives a boolean indicating whether reporting values is allowed or not.- Returns:
trueif value reporting is allowed,falseotherwise.
-
isEventReportingAllowed
public boolean isEventReportingAllowed()
Gives a boolean indicating whether reporting events is allowed or not.- Returns:
trueif event reporting is allowed,falseotherwise.
-
isErrorReportingAllowed
public boolean isErrorReportingAllowed()
Gives a boolean indicating whether reporting errors is allowed or not.- Returns:
trueif error reporting is allowed,falseotherwise.
-
isCrashReportingAllowed
public boolean isCrashReportingAllowed()
Gives a boolean indicating whether reporting crashes is allowed or not.- Returns:
trueif crash reporting is allowed,falseotherwise.
-
isUserIdentificationAllowed
public boolean isUserIdentificationAllowed()
Gives a boolean indicating whether identifying users is allowed or not.- Returns:
trueif user identification is allowed,falseotherwise.
-
-