Package org.opencms.ui.apps.logfile
Class CmsDefaultLogDownloadProvider
java.lang.Object
org.opencms.ui.apps.logfile.CmsDefaultLogDownloadProvider
- All Implemented Interfaces:
I_CmsLogDownloadProvider
Default implementation for the log download functionality.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the user can download a zip with all logs.Gets the prefix to use for the download file name.Gets the set of log file paths.Gets the input stream for the download with all logs (only works if canDownloadAllLogs() returned true)Gets the input stream for the download of a single log file
-
Constructor Details
-
CmsDefaultLogDownloadProvider
public CmsDefaultLogDownloadProvider()
-
-
Method Details
-
canDownloadAllLogs
Description copied from interface:I_CmsLogDownloadProviderChecks if the user can download a zip with all logs.- Specified by:
canDownloadAllLogsin interfaceI_CmsLogDownloadProvider- Returns:
- true if the user can download a zip with all logs
- See Also:
-
getDownloadPrefix
Description copied from interface:I_CmsLogDownloadProviderGets the prefix to use for the download file name.- Specified by:
getDownloadPrefixin interfaceI_CmsLogDownloadProvider- Returns:
- the prefix for the download
- See Also:
-
getLogFiles
Description copied from interface:I_CmsLogDownloadProviderGets the set of log file paths.- Specified by:
getLogFilesin interfaceI_CmsLogDownloadProvider- Returns:
- the set of log file paths
- See Also:
-
readAllLogs
Description copied from interface:I_CmsLogDownloadProviderGets the input stream for the download with all logs (only works if canDownloadAllLogs() returned true)- Specified by:
readAllLogsin interfaceI_CmsLogDownloadProvider- Returns:
- the input stream for the collected logs zip file
- See Also:
-
readLog
Description copied from interface:I_CmsLogDownloadProviderGets the input stream for the download of a single log file- Specified by:
readLogin interfaceI_CmsLogDownloadProvider- Parameters:
path- the full path of the log file (must be a value in the set returned by getLogFiles())- Returns:
- the input stream for the download
- See Also:
-