Class UIDocViewer

java.lang.Object
org.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.portal.webui.portal.UIPortalComponent
org.exoplatform.portal.webui.container.UIContainer
org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
org.exoplatform.social.plugin.doc.UIDocViewer
All Implemented Interfaces:
org.exoplatform.ecm.webui.presentation.NodePresentation

public class UIDocViewer extends org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
UIDocViewer

Since:
Aug 10, 2010
Author:
Zuanoc
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation

    org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation.OpenDocInDesktopActionListener

    Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer

    org.exoplatform.webui.core.UIContainer.SelectTabActionListener
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected javax.jcr.Node
     
     
     

    Fields inherited from class org.exoplatform.portal.webui.container.UIContainer

    cssClass, description, icon, profiles, TABLE_COLUMN_CONTAINER

    Fields inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent

    factoryId, height, name, template, width

    Fields inherited from class org.exoplatform.webui.core.UIComponent

    AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent, USE_WEBUI_RESOURCES

    Fields inherited from interface org.exoplatform.ecm.webui.presentation.NodePresentation

    MEDIA_STATE_DISPLAY, MEDIA_STATE_NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.exoplatform.webui.core.UIComponent
     
    javax.jcr.Node
     
     
    javax.jcr.Node
    Gets the original node.
    org.exoplatform.webui.core.UIPopupContainer
     
    org.exoplatform.webui.core.UIComponent
     
    org.exoplatform.webui.core.UIComponent
     
     
     
     
    org.exoplatform.resolver.ResourceResolver
    getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, String template)
     
    org.exoplatform.webui.core.UIComponent
     
    boolean
     
    void
    setNode(javax.jcr.Node node)
    Sets the node.
    void
    setOriginalNode(javax.jcr.Node originalNode)
    Sets the original node.

    Methods inherited from class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation

    encodeHTML, getActionOpenDocInDesktop, getAttachments, getCategories, getComments, getComponentInstanceOfType, getDownloadLink, getIcons, getImage, getImageURIInProperty, getInlineEditingField, getInlineEditingField, getLanguage, getMediaState, getNodeByUUID, getPortalName, getPortletPreferenceValue, getPortletPreferenceValues, getRelations, getRelativeTimeLabel, getRepository, getRssLink, getSortedComments, getSupportedLocalise, getTags, getTemplateSkin, getViewableLink, getViewTemplate, getVotingRate, getWebDAVServerPrefix, getWorkspaceName, isDisplayAlternativeText, isEnableComment, isEnableVote, isFastPublishLink, isRssLink, playAudioDescription, setEnableComment, setEnableVote, setLanguage, switchBackAudioDescription, switchMediaState

    Methods inherited from class org.exoplatform.portal.webui.container.UIContainer

    getCssClass, getDescription, getIcon, getPermissionClasses, getProfiles, getStorageId, setCssClass, setDescription, setIcon, setProfiles, setStorageId

    Methods inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent

    getAccessPermissions, getFactoryId, getHeight, getName, getTitle, getWidth, hasAccessPermission, hasPermission, setAccessPermissions, setFactoryId, setHeight, setName, setTemplate, setTitle, setWidth

    Methods inherited from class org.exoplatform.webui.core.UIContainer

    addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes

    Methods inherited from class org.exoplatform.webui.core.UIComponent

    broadcast, buildModelObject, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getParent, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, processRender, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, url

    Methods inherited from class java.lang.Object

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

    • originalNode

      protected javax.jcr.Node originalNode
    • docPath

      public String docPath
    • repository

      public String repository
    • workspace

      public String workspace
  • Constructor Details

    • UIDocViewer

      public UIDocViewer()
  • Method Details

    • setOriginalNode

      public void setOriginalNode(javax.jcr.Node originalNode)
      Sets the original node.
      Parameters:
      originalNode -
    • getOriginalNode

      public javax.jcr.Node getOriginalNode() throws Exception
      Gets the original node.
      Specified by:
      getOriginalNode in interface org.exoplatform.ecm.webui.presentation.NodePresentation
      Specified by:
      getOriginalNode in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
      Returns:
      Throws:
      Exception
    • setNode

      public void setNode(javax.jcr.Node node)
      Sets the node.
      Parameters:
      node -
    • getNode

      public javax.jcr.Node getNode() throws Exception
      Specified by:
      getNode in interface org.exoplatform.ecm.webui.presentation.NodePresentation
      Specified by:
      getNode in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
      Throws:
      Exception
    • getTemplate

      public String getTemplate()
      Overrides:
      getTemplate in class org.exoplatform.portal.webui.portal.UIPortalComponent
    • getTemplatePath

      public String getTemplatePath() throws Exception
      Specified by:
      getTemplatePath in interface org.exoplatform.ecm.webui.presentation.NodePresentation
      Specified by:
      getTemplatePath in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
      Throws:
      Exception
    • getTemplateResourceResolver

      public org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, String template)
      Overrides:
      getTemplateResourceResolver in class org.exoplatform.webui.core.UIComponent
    • getNodeType

      public String getNodeType()
    • isNodeTypeSupported

      public boolean isNodeTypeSupported()
    • getCommentComponent

      public org.exoplatform.webui.core.UIComponent getCommentComponent()
    • getRemoveAttach

      public org.exoplatform.webui.core.UIComponent getRemoveAttach()
    • getRemoveComment

      public org.exoplatform.webui.core.UIComponent getRemoveComment()
    • getUIComponent

      public org.exoplatform.webui.core.UIComponent getUIComponent(String mimeType) throws Exception
      Throws:
      Exception
    • getRepositoryName

      public String getRepositoryName()
      Overrides:
      getRepositoryName in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
    • getPopupContainer

      public org.exoplatform.webui.core.UIPopupContainer getPopupContainer() throws Exception
      Specified by:
      getPopupContainer in interface org.exoplatform.ecm.webui.presentation.NodePresentation
      Overrides:
      getPopupContainer in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
      Throws:
      Exception