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.UIBaseNodePresentationUIDocViewer- Since:
- Aug 10, 2010
- Author:
- Zuanoc
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUIDocViewer.DownloadActionListener
-
Field Summary
Fields Modifier and Type Field Description StringdocPathprotected javax.jcr.NodeoriginalNodeStringrepositoryStringworkspace-
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_
-
-
Constructor Summary
Constructors Constructor Description UIDocViewer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.exoplatform.webui.core.UIComponentgetCommentComponent()javax.jcr.NodegetNode()StringgetNodeType()javax.jcr.NodegetOriginalNode()Gets the original node.org.exoplatform.webui.core.UIPopupContainergetPopupContainer()org.exoplatform.webui.core.UIComponentgetRemoveAttach()org.exoplatform.webui.core.UIComponentgetRemoveComment()StringgetRepositoryName()StringgetTemplate()StringgetTemplatePath()org.exoplatform.resolver.ResourceResolvergetTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, String template)org.exoplatform.webui.core.UIComponentgetUIComponent(String mimeType)booleanisNodeTypeSupported()voidsetNode(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, 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
-
-
-
-
Method Detail
-
setOriginalNode
public void setOriginalNode(javax.jcr.Node originalNode)
Sets the original node.- Parameters:
originalNode-
-
getOriginalNode
public javax.jcr.Node getOriginalNode() throws ExceptionGets 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
public javax.jcr.Node getNode() throws Exception- Specified by:
getNodein interfaceorg.exoplatform.ecm.webui.presentation.NodePresentation- Specified by:
getNodein classorg.exoplatform.ecm.webui.presentation.UIBaseNodePresentation- Throws:
Exception
-
getTemplate
public String getTemplate()
- Overrides:
getTemplatein classorg.exoplatform.portal.webui.portal.UIPortalComponent
-
getTemplatePath
public String getTemplatePath() throws Exception
- 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
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:
getRepositoryNamein classorg.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
-
getPopupContainer
public org.exoplatform.webui.core.UIPopupContainer getPopupContainer() throws Exception- Specified by:
getPopupContainerin interfaceorg.exoplatform.ecm.webui.presentation.NodePresentation- Overrides:
getPopupContainerin classorg.exoplatform.ecm.webui.presentation.UIBaseNodePresentation- Throws:
Exception
-
-