Class 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  UIDocViewer.DownloadActionListener  
      • 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
      String docPath  
      protected javax.jcr.Node originalNode  
      String repository  
      String workspace  
      • Fields inherited from class org.exoplatform.portal.webui.container.UIContainer

        cssClass, description, icon, moveAppsPermissions, moveContainersPermissions, profiles, TABLE_COLUMN_CONTAINER
      • Fields inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent

        COMPONENT_EDIT_MODE, COMPONENT_VIEW_MODE, factoryId, height_, mode_, name_, template_, width_
      • Fields inherited from class org.exoplatform.webui.core.UIComponent

        AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
      • Fields inherited from interface org.exoplatform.ecm.webui.presentation.NodePresentation

        MEDIA_STATE_DISPLAY, MEDIA_STATE_NONE
    • Constructor Summary

      Constructors 
      Constructor Description
      UIDocViewer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.exoplatform.webui.core.UIComponent getCommentComponent()  
      javax.jcr.Node getNode()  
      String getNodeType()  
      javax.jcr.Node getOriginalNode()
      Gets the original node.
      org.exoplatform.webui.core.UIPopupContainer getPopupContainer()  
      org.exoplatform.webui.core.UIComponent getRemoveAttach()  
      org.exoplatform.webui.core.UIComponent getRemoveComment()  
      String getRepositoryName()  
      String getTemplate()  
      String getTemplatePath()  
      org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver​(org.exoplatform.webui.application.WebuiRequestContext context, String template)  
      org.exoplatform.webui.core.UIComponent getUIComponent​(String mimeType)  
      boolean isNodeTypeSupported()  
      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, getMoveAppsPermissions, getMoveContainersPermissions, getPermissionClasses, getProfiles, getStorageId, hasMoveAppsPermission, hasMoveContainersPermission, setCssClass, setDescription, setIcon, setMoveAppsPermissions, setMoveContainersPermissions, setProfiles, setStorageId
      • Methods inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent

        getAccessPermissions, getFactoryId, getHeight, getName, getTitle, getWidth, hasAccessPermission, hasPermission, isModifiable, setAccessPermissions, setFactoryId, setHeight, setModifiable, 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
    • Field Detail

      • originalNode

        protected javax.jcr.Node originalNode
      • docPath

        public String docPath
      • repository

        public String repository
      • workspace

        public String workspace
    • Constructor Detail

      • UIDocViewer

        public UIDocViewer()
    • Method Detail

      • 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