Class LicenseKeyReportingConfigurer
java.lang.Object
com.itextpdf.licensing.base.reporting.LicenseKeyReportingConfigurer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static com.itextpdf.licensing.base.licensefile.ReportingType
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
Reset API configuration.static void
useLocalReporting
(String directoryToWritePath) Select local reporting type with specified root directory for generated reports.static void
Select remote reporting type in which events are sent over the web to a remote server.
-
Field Details
-
REMOTE_REPORTING_TYPE
- See Also:
-
LOCAL_REPORTING_TYPE
- See Also:
-
-
Method Details
-
useRemoteReporting
public static void useRemoteReporting()Select remote reporting type in which events are sent over the web to a remote server. -
useLocalReporting
Select local reporting type with specified root directory for generated reports.- Parameters:
-
directoryToWritePath
- the path to local directory for writing reports. If it is null, then System property, or System environment variable will be used. - Throws:
-
IllegalArgumentException
- in case of invalid directory path
-
resetApiConfiguration
public static void resetApiConfiguration()Reset API configuration. Can be used to use environment variables or default logic after API use. -
getReportingType
public static com.itextpdf.licensing.base.licensefile.ReportingType getReportingType() -
getLocalFileRootDir
-
isStatisticsEnabledForProduct
Checks if statistics are enabled for such productName.- Parameters:
-
productName
- name of the product for which to check if statistics are enabled - Returns:
-
true
if statistics are enabled,false
otherwise
-
overrideStatisticsSendingForProduct
Enables or disables statistics for provided product. By default the value from license file will be taken.- Parameters:
-
productName
- name of the product for which enable or disable statistics -
sendStatistics
-true
to enable statistics,false
otherwise
-