Class CmsVirusReport

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.gwt.client.ui.CmsVirusReport
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

public class CmsVirusReport extends com.google.gwt.user.client.ui.Composite
Shows which viruses were found in files the user tried to upload.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static interface 
    The UiBinder interface for this widget.

    Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

    com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected CmsFieldSet
    Contains the resource boxes with the virus information.
    Displays the warning message to the user.

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new virus report widget.
  • Method Summary

    Modifier and Type
    Method
    Description
    static CmsPopup
    createPopup(Map<String,List<String>> viruses, Runnable callback)
    Creates a popup containing a virus report.
    getVirusWarnings(com.google.gwt.json.client.JSONObject jsonObject)
    Extracts virus warnings from a JSON object.

    Methods inherited from class com.google.gwt.user.client.ui.Composite

    claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget

    Methods inherited from class com.google.gwt.user.client.ui.Widget

    addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents

    Methods inherited from class com.google.gwt.user.client.ui.UIObject

    addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • CmsVirusReport

      public CmsVirusReport(Map<String,List<String>> viruses)
      Creates a new virus report widget.
      Parameters:
      viruses - a map from file names to lists of virus names found in the corresponding files
  • Method Details

    • createPopup

      public static CmsPopup createPopup(Map<String,List<String>> viruses, Runnable callback)
      Creates a popup containing a virus report.
      Parameters:
      viruses - a map from file names to lists of viruses found in the corresponding files
      callback - the callback to executing after closing the dialog
      Returns:
    • getVirusWarnings

      public static Map<String,List<String>> getVirusWarnings(com.google.gwt.json.client.JSONObject jsonObject)
      Extracts virus warnings from a JSON object.
      Parameters:
      jsonObject - the JSON object
      Returns:
      the map of virus warnings, which maps file names to lists of viruses found in the corresponding file