com.jalios.jcms.fileprocessor.ui
Class FileProcessorUIUtil

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

public class FileProcessorUIUtil
extends Object


Field Summary
static String ICON_DO_BLACKLIST
           
static String ICON_DO_PARTIAL_BLACKLIST
           
static String ICON_ERROR
           
static String ICON_EVENTS
           
static String ICON_EXTENSIONS
           
static String ICON_FILE_BLACKLISTED
           
static String ICON_FILE_INDEXED
           
static String ICON_FILE_PARTIALLY_BLACKLISTED
           
static String ICON_FILE_STATUS
           
static String ICON_GLOBAL_REPORT
           
static String ICON_IGNORED
           
static String ICON_OK
           
static String ICON_PROCESSOR
           
static String ICON_START_REPOSITORY
           
static String ICON_STOP_REPOSITORY
           
static String ICON_UNDO_BLACKLIST
           
static String ICON_UNDO_PARTIAL_BLACKLIST
           
static String ICONS_DIR
           
 
Constructor Summary
FileProcessorUIUtil()
           
 
Method Summary
static String getDisplayPercent(int part, int all)
           
static String getFileTypeIcon(String filename, String userLang)
          Method to get file type icon when possible.
static String getFileTypeIconFromExtension(String extension, String userLang)
          Method to get file type icon when possible.
static String getStatusIconHtml(FileProcessingLog log, String userLang)
          Retrieve the HTML to use for the specified log's status representation
static String getStatusIconHtml(ProcessingStatus status, String userLang)
          Retrieve the HTML to use for the specified status representation
static String getStatusIconPath(ProcessingStatus status)
          Retrieve the icon path to use for the specified status representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ICONS_DIR

public static String ICONS_DIR

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_DO_BLACKLIST

public static String ICON_DO_BLACKLIST

ICON_DO_PARTIAL_BLACKLIST

public static String ICON_DO_PARTIAL_BLACKLIST

ICON_UNDO_BLACKLIST

public static String ICON_UNDO_BLACKLIST

ICON_UNDO_PARTIAL_BLACKLIST

public static String ICON_UNDO_PARTIAL_BLACKLIST

ICON_STOP_REPOSITORY

public static String ICON_STOP_REPOSITORY

ICON_START_REPOSITORY

public static String ICON_START_REPOSITORY

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 Detail

FileProcessorUIUtil

public FileProcessorUIUtil()
Method Detail

getStatusIconPath

public static String getStatusIconPath(ProcessingStatus status)
Retrieve the icon path 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)


Copyright © 2001-2010 Jalios SA. All Rights Reserved.