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 ClassesNested classes/interfaces inherited from class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation.OpenDocInDesktopActionListenerNested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.jcr.NodeFields inherited from class org.exoplatform.portal.webui.container.UIContainer
cssClass, description, icon, profiles, TABLE_COLUMN_CONTAINERFields inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent
factoryId, height, name, template, widthFields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent, USE_WEBUI_RESOURCESFields inherited from interface org.exoplatform.ecm.webui.presentation.NodePresentation
MEDIA_STATE_DISPLAY, MEDIA_STATE_NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.exoplatform.webui.core.UIComponentjavax.jcr.NodegetNode()javax.jcr.NodeGets the original node.org.exoplatform.webui.core.UIPopupContainerorg.exoplatform.webui.core.UIComponentorg.exoplatform.webui.core.UIComponentorg.exoplatform.resolver.ResourceResolvergetTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, String template) org.exoplatform.webui.core.UIComponentgetUIComponent(String mimeType) booleanvoidsetNode(javax.jcr.Node node) Sets the node.voidsetOriginalNode(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, switchMediaStateMethods inherited from class org.exoplatform.portal.webui.container.UIContainer
getCssClass, getDescription, getIcon, getPermissionClasses, getProfiles, getStorageId, processRender, setCssClass, setDescription, setIcon, setProfiles, setStorageIdMethods inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent
getAccessPermissions, getFactoryId, getHeight, getName, getTitle, getWidth, hasAccessPermission, hasPermission, processAction, processDecode, setAccessPermissions, setFactoryId, setHeight, setName, setTemplate, setTitle, setWidthMethods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypesMethods 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, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, url
-
Field Details
-
originalNode
protected javax.jcr.Node originalNode -
docPath
-
repository
-
workspace
-
-
Constructor Details
-
UIDocViewer
public UIDocViewer()
-
-
Method Details
-
setOriginalNode
public void setOriginalNode(javax.jcr.Node originalNode) Sets the original node.- Parameters:
originalNode-
-
getOriginalNode
Gets the original node.- Specified by:
getOriginalNodein interfaceorg.exoplatform.ecm.webui.presentation.NodePresentation- Specified by:
getOriginalNodein classorg.exoplatform.ecm.webui.presentation.UIBaseNodePresentation- Returns:
- Throws:
Exception
-
setNode
public void setNode(javax.jcr.Node node) Sets the node.- Parameters:
node-
-
getNode
- Specified by:
getNodein interfaceorg.exoplatform.ecm.webui.presentation.NodePresentation- Specified by:
getNodein classorg.exoplatform.ecm.webui.presentation.UIBaseNodePresentation- Throws:
Exception
-
getTemplate
- Overrides:
getTemplatein classorg.exoplatform.portal.webui.portal.UIPortalComponent
-
getTemplatePath
- Specified by:
getTemplatePathin interfaceorg.exoplatform.ecm.webui.presentation.NodePresentation- Specified by:
getTemplatePathin classorg.exoplatform.ecm.webui.presentation.UIBaseNodePresentation- Throws:
Exception
-
getTemplateResourceResolver
public org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, String template) - Overrides:
getTemplateResourceResolverin classorg.exoplatform.webui.core.UIComponent
-
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
- Throws:
Exception
-
getRepositoryName
- Overrides:
getRepositoryNamein classorg.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
-
getPopupContainer
- Specified by:
getPopupContainerin interfaceorg.exoplatform.ecm.webui.presentation.NodePresentation- Overrides:
getPopupContainerin classorg.exoplatform.ecm.webui.presentation.UIBaseNodePresentation- Throws:
Exception
-