Class HylandViewerImpl

java.lang.Object
org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Window
com.saperion.ngc.events.BaseWindow
com.saperion.ngc.viewer.hylandviewer.HylandViewerImpl
All Implemented Interfaces:
EventChild, EventChildHandler, LogEventChildHandler, ViewerComponent, Serializable, Cloneable, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.ext.Scope, org.zkoss.zk.ui.IdSpace, org.zkoss.zk.ui.sys.ComponentCtrl, org.zkoss.zul.ext.Framable

public class HylandViewerImpl extends BaseWindow implements ViewerComponent
Implementation of ViewerComponent for the Hyland Viewer.
Author:
schowdhury
See Also:
  • Field Details

    • CONFIG_FILE

      public static final String CONFIG_FILE
      Name of the configuration file for hyland viewer.
      See Also:
    • HYLAND_RENDERING_CONVERSION_SERVICE_URL

      public static final String HYLAND_RENDERING_CONVERSION_SERVICE_URL
      Use the ecm service to communicate with the hyland rendering and conversion service.
      See Also:
    • DEFAULT_HYLAND_RENDERING_CONVERSION_SERVICE_URL

      public static final String DEFAULT_HYLAND_RENDERING_CONVERSION_SERVICE_URL
      See Also:
  • Constructor Details

    • HylandViewerImpl

      public HylandViewerImpl()
  • Method Details

    • displayDocument

      public void displayDocument(String documentUrl, String annotationUrl, DocumentArchiveMetaInfo.ElementArchiveMetaInfo pageMetaInfo, DocumentId documentId)
      Description copied from interface: ViewerComponent
      Displays a document. The content of the document and of the annotations can be retrieved by using the URLs passed to the viewer. Alternatively, the document can by identified by the ID. The filename is passed only to inform the viewer about the document.
      Specified by:
      displayDocument in interface ViewerComponent
      Parameters:
      documentUrl - the document url
      annotationUrl - the annotation url
      pageMetaInfo - meta information about the page to be displayed
      documentId - Id of the document
    • displayTemporaryDocument

      public void displayTemporaryDocument(String documentUrl, TemporaryDocumentId id)
      Description copied from interface: ViewerComponent
      Displays a temporary (not yet archived) document. The content of the temporary document can be retrieved by using the URL and id passed to the viewer.
      Specified by:
      displayTemporaryDocument in interface ViewerComponent
      Parameters:
      documentUrl - The URL to the download servlet.
      id - The id of the temporary document.
    • init

      public void init(String viewerId)
      Description copied from interface: ViewerComponent
      Called from parent component to initialize the viewer-component.
      Specified by:
      init in interface ViewerComponent
      Parameters:
      viewerId - the id of the viewer, passed only as additional information
    • refreshDocument

      public void refreshDocument()
      Description copied from interface: ViewerComponent
      Refreshes the viewer using the last opened document.
      Specified by:
      refreshDocument in interface ViewerComponent
    • resetView

      public void resetView()
      Description copied from interface: ViewerComponent
      Resets the view so that the viewer applet will not re-open the last opened document. The opened document will be closed.
      Specified by:
      resetView in interface ViewerComponent
    • resetView

      public void resetView(boolean showInitImage)
      Description copied from interface: ViewerComponent
      Resets the view so that the viewer applet will not re-open the last opened document. The opened document will be closed.
      Specified by:
      resetView in interface ViewerComponent
      Parameters:
      showInitImage - if true, the viewer will show an initial image
    • disable

      public void disable()
      Description copied from interface: ViewerComponent
      Disables the viewer.
      Specified by:
      disable in interface ViewerComponent
    • enable

      public void enable()
      Description copied from interface: ViewerComponent
      Enables the viewer.
      Specified by:
      enable in interface ViewerComponent
    • hasOpenChanges

      public boolean hasOpenChanges()
      Description copied from interface: ViewerComponent
      Returns, if the viewer has open changes.
      Specified by:
      hasOpenChanges in interface ViewerComponent
      Returns:
      Has open changes
    • setParentViewComponent

      public void setParentViewComponent(DocumentView documentView)
      Description copied from interface: ViewerComponent
      Used to pass a reference to the parent component to this ViewerComponent. Optional.
      Specified by:
      setParentViewComponent in interface ViewerComponent
      Parameters:
      documentView - the new parent view component
    • tabSelected

      public void tabSelected()
      Description copied from interface: ViewerComponent
      Method used to notify the ViewerComponent that the tab it is contained in was selected. Not used if the component is not contained in a tab.
      Specified by:
      tabSelected in interface ViewerComponent
    • getConfigurationFile

      public String getConfigurationFile()
      Description copied from interface: ViewerComponent
      Returns the name of the configuration file needed for this implementation of ViewerComponent. If no file is needed, null should be returned. The name of the file must include the path relative to the configuration folders (/config/ and /custom-config/.
      Specified by:
      getConfigurationFile in interface ViewerComponent
      Returns:
      name of the configuration file or null if no configuration file is needed
    • canModifyDocument

      public boolean canModifyDocument()
      Description copied from interface: ViewerComponent
      Used by the webclient to determine if this type of viewer is able to edit documents.
      Specified by:
      canModifyDocument in interface ViewerComponent
      Returns:
      whether this viewer can edit documents
    • canShowRevisions

      public boolean canShowRevisions()
      Description copied from interface: ViewerComponent
      Used by web client to determine if this type of viewer can show the document revisions
      Specified by:
      canShowRevisions in interface ViewerComponent
      Returns:
      whether this viewer enables revision viewing
    • getExternalViewerWindowPath

      public String getExternalViewerWindowPath()
      Description copied from interface: ViewerComponent
      Returns the relative path to the JSP used as external window or null if this viewer does not offer an external window.
      Specified by:
      getExternalViewerWindowPath in interface ViewerComponent
      Returns:
      path to the JSP or null if not supported
    • isDefault

      public static boolean isDefault()
      Checks if this viewer is configured as default.
      Returns:
      is default