public final class LicenseKeyReportingConfigurer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LOCAL_REPORTING_TYPE |
static String |
REMOTE_REPORTING_TYPE |
Modifier and Type | Method and Description |
---|---|
static String |
getLocalFileRootDir() |
static com.itextpdf.licensing.base.licensefile.ReportingType |
getReportingType() |
static boolean |
isStatisticsEnabledForProduct(String productName)
Checks if statistics are enabled for such productName.
|
static void |
overrideStatisticsSendingForProduct(String productName, boolean sendStatistics)
Enables or disables statistics for provided product.
|
static void |
resetApiConfiguration()
Reset API configuration.
|
static void |
useLocalReporting(String directoryToWritePath)
Select local reporting type with specified root directory for generated reports.
|
static void |
useRemoteReporting()
Select remote reporting type in which events are sent over the web to a remote server.
|
public static final String REMOTE_REPORTING_TYPE
public static final String LOCAL_REPORTING_TYPE
public static void useRemoteReporting()
public static void useLocalReporting(String directoryToWritePath)
directoryToWritePath
- the path to local directory for writing reports. If it is null, then System property, or System environment variable will be used.
IllegalArgumentException
- in case of invalid directory path
public static void resetApiConfiguration()
public static com.itextpdf.licensing.base.licensefile.ReportingType getReportingType()
public static String getLocalFileRootDir()
public static boolean isStatisticsEnabledForProduct(String productName)
productName
- name of the product for which to check if statistics are enabled
true
if statistics are enabled, false
otherwise
public static void overrideStatisticsSendingForProduct(String productName, boolean sendStatistics)
productName
- name of the product for which enable or disable statistics
sendStatistics
- true
to enable statistics, false
otherwise
Copyright © 2023. All rights reserved.