Class FileProcessorUIUtil

java.lang.Object
com.jalios.jcms.fileprocessor.ui.FileProcessorUIUtil

public class FileProcessorUIUtil extends Object
  • Field Details

    • ICON_FILE_BLACKLISTED

      public static String ICON_FILE_BLACKLISTED
    • ICON_FILE_INDEXED

      public static String ICON_FILE_INDEXED
    • ICON_FILE_PARTIALLY_BLACKLISTED

      public static String ICON_FILE_PARTIALLY_BLACKLISTED
    • ICON_OK

      public static String ICON_OK
    • ICON_ERROR

      public static String ICON_ERROR
    • ICON_IGNORED

      public static String ICON_IGNORED
    • ICON_POSTPONED

      public static String ICON_POSTPONED
    • ICON_IN_PROGRESS

      public static String ICON_IN_PROGRESS
    • ICON_GLOBAL_REPORT

      public static String ICON_GLOBAL_REPORT
    • ICON_FILE_STATUS

      public static String ICON_FILE_STATUS
    • ICON_PROCESSOR

      public static String ICON_PROCESSOR
    • ICON_EXTENSIONS

      public static String ICON_EXTENSIONS
    • ICON_EVENTS

      public static String ICON_EVENTS
  • Constructor Details

    • FileProcessorUIUtil

      public FileProcessorUIUtil()
  • Method Details

    • getStatusIconName

      public static String getStatusIconName(ProcessingStatus status)
      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

      public static String getStatusIconHtml(ProcessingStatus status, String userLang)
      Retrieve the HTML to use for the specified status representation
      Parameters:
      status - the ProcessingStatus to represent as an icon
      userLang - the ISO-639 user language in which to perform I18N
      Returns:
      a HTML img tag with proper icon and I18N
    • getStatusIconHtml

      public static String getStatusIconHtml(FileProcessingLog log, String userLang)
      Retrieve the HTML to use for the specified log's status representation
      Parameters:
      log - the FileProcessingLog to represent as an icon
      userLang - the ISO-639 user language in which to perform I18N
      Returns:
      a HTML img tag with proper icon and I18N
    • getFileTypeIcon

      public static String getFileTypeIcon(String filename, String userLang)
      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

      public static String getFileTypeIconFromExtension(String extension, String userLang)
      Method to get file type icon when possible.
      Parameters:
      extension - generic file extension
      userLang - the ISO-639 user language in which to perform I18N
      Returns:
      the complete html sequence to display the icon
    • getDisplayPercent

      public static String getDisplayPercent(int part, int all)