Package com.jalios.jcms.fileprocessor.ui
Class FileProcessorUIUtil
java.lang.Object
com.jalios.jcms.fileprocessor.ui.FileProcessorUIUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDisplayPercent(int part, int all) static StringgetFileTypeIcon(String filename, String userLang) Method to get file type icon when possible.static StringgetFileTypeIconFromExtension(String extension, String userLang) Method to get file type icon when possible.static StringgetStatusIconHtml(FileProcessingLog log, String userLang) Retrieve the HTML to use for the specified log's status representationstatic StringgetStatusIconHtml(ProcessingStatus status, String userLang) Retrieve the HTML to use for the specified status representationstatic StringgetStatusIconName(ProcessingStatus status) Retrieve the icon name to use for the specified status representation
-
Field Details
-
ICON_FILE_BLACKLISTED
-
ICON_FILE_INDEXED
-
ICON_FILE_PARTIALLY_BLACKLISTED
-
ICON_OK
-
ICON_ERROR
-
ICON_IGNORED
-
ICON_POSTPONED
-
ICON_IN_PROGRESS
-
ICON_GLOBAL_REPORT
-
ICON_FILE_STATUS
-
ICON_PROCESSOR
-
ICON_EXTENSIONS
-
ICON_EVENTS
-
-
Constructor Details
-
FileProcessorUIUtil
public FileProcessorUIUtil()
-
-
Method Details
-
getStatusIconName
Retrieve the icon name to use for the specified status representation- Parameters:
status- the ProcessingStatus to represent as an icon- Returns:
- a path relative to the webapp root or null if no icon match the specified status.
-
getStatusIconHtml
Retrieve the HTML to use for the specified status representation- Parameters:
status- the ProcessingStatus to represent as an iconuserLang- the ISO-639 user language in which to perform I18N- Returns:
- a HTML img tag with proper icon and I18N
-
getStatusIconHtml
Retrieve the HTML to use for the specified log's status representation- Parameters:
log- the FileProcessingLog to represent as an iconuserLang- the ISO-639 user language in which to perform I18N- Returns:
- a HTML img tag with proper icon and I18N
-
getFileTypeIcon
Method to get file type icon when possible.- Parameters:
filename- or part of the filename ending with current extension.userLang- the ISO-639 user language in which to perform I18N- Returns:
- the complete html sequence to display the icon
-
getFileTypeIconFromExtension
Method to get file type icon when possible.- Parameters:
extension- generic file extensionuserLang- the ISO-639 user language in which to perform I18N- Returns:
- the complete html sequence to display the icon
-
getDisplayPercent
-