org.exoplatform.ecm.webui.component.browsecontent
Class UIDocumentDetail

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.portal.webui.portal.UIPortalComponent
              extended by org.exoplatform.portal.webui.container.UIContainer
                  extended by org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
                      extended by org.exoplatform.ecm.webui.component.browsecontent.UIDocumentDetail
All Implemented Interfaces:
NodePresentation, org.exoplatform.webui.core.UIPopupComponent

public class UIDocumentDetail
extends UIBaseNodePresentation
implements org.exoplatform.webui.core.UIPopupComponent

Created by The eXo Platform SARL Author : Tuan Pham phamtuanchip@gmail.com Jan 15, 2007


Nested Class Summary
static class UIDocumentDetail.ChangeLanguageActionListener
           
static class UIDocumentDetail.ChangeNodeActionListener
           
static class UIDocumentDetail.DownloadActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
protected  javax.jcr.Node node_
           
 
Fields inherited from class org.exoplatform.portal.webui.container.UIContainer
description, icon, 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
UIDocumentDetail()
           
 
Method Summary
 void activate()
           
 void deActivate()
           
 java.lang.String encodeHTML(java.lang.String text)
           
 java.util.List<javax.jcr.Node> getAttachments()
           
 java.lang.String getAttachmentURL(javax.jcr.Node attNode, org.exoplatform.web.application.Parameter[] params)
          Deprecated. 
 org.exoplatform.webui.core.UIComponent getCommentComponent()
           
 java.util.List<javax.jcr.Node> getComments()
           
 java.lang.Object getComponentInstanceOfType(java.lang.String className)
           
 java.lang.String getDownloadLink(javax.jcr.Node node)
           
 java.lang.String getIcons(javax.jcr.Node node, java.lang.String type)
           
 java.lang.String getImage(javax.jcr.Node node)
           
 java.lang.String getInlineEditingField(javax.jcr.Node orgNode, java.lang.String propertyName)
           
 java.lang.String getInlineEditingField(javax.jcr.Node orgNode, java.lang.String propertyName, java.lang.String defaultValue, java.lang.String inputType, java.lang.String idGenerator, java.lang.String cssClass, boolean isGenericProperty, java.lang.String... arguments)
           
 java.lang.String getLanguage()
           
 java.util.List<javax.jcr.Node> getListNodes(javax.jcr.Node node)
           
 javax.jcr.Node getNode()
           
 javax.jcr.Node getNodeByUUID(java.lang.String uuid)
           
 java.lang.String getNodeType()
           
 javax.jcr.Node getOriginalNode()
           
 java.lang.String getPortalName()
           
 javax.portlet.PortletPreferences getPortletPreferences()
           
 java.util.List<javax.jcr.Node> getRelations()
           
 org.exoplatform.webui.core.UIComponent getRemoveAttach()
           
 org.exoplatform.webui.core.UIComponent getRemoveComment()
           
 java.lang.String getRepository()
           
 java.lang.String getRssLink()
           
 java.util.List<java.lang.String> getSupportedLocalise()
           
 java.lang.String getTemplate()
           
 java.lang.String getTemplatePath()
           
 org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, java.lang.String template)
           
 java.lang.String getTemplateSkin(java.lang.String nodeTypeName, java.lang.String skinName)
           
 org.exoplatform.webui.core.UIComponent getUIComponent(java.lang.String mimeType)
           
 java.lang.String getViewableLink(javax.jcr.Node attNode, org.exoplatform.web.application.Parameter[] params)
           
 java.lang.String getViewTemplate(java.lang.String nodeTypeName, java.lang.String templateName)
           
 java.lang.String getWebDAVServerPrefix()
           
 java.lang.String getWorkspaceName()
           
 boolean hasPropertyContent(javax.jcr.Node node, java.lang.String property)
           
 boolean isEnableComment()
           
 boolean isEnableVote()
           
 boolean isNodeTypeSupported()
           
 boolean isNodeTypeSupported(java.lang.String nodeTypeName)
           
 boolean isRssLink()
           
 boolean isShowPlanView(javax.jcr.Node node)
           
protected  boolean isValidNode()
           
 void newJCRTemplateResourceResolver()
           
 void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
           
 void setEnableComment(boolean value)
           
 void setEnableVote(boolean value)
           
 void setLanguage(java.lang.String language)
           
 void setNode(javax.jcr.Node docNode)
           
 void setOriginalNode(javax.jcr.Node node)
           
 
Methods inherited from class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
getCategories, getImageURIInProperty, getMediaState, getPortletPreferenceValue, getPortletPreferenceValues, getRepositoryName, getTags, getVotingRate, isDisplayAlternativeText, playAudioDescription, switchBackAudioDescription, switchMediaState
 
Methods inherited from class org.exoplatform.portal.webui.container.UIContainer
getDescription, getIcon, getStorageId, setDescription, setIcon, setStorageId
 
Methods inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent
getAccessPermissions, getFactoryId, getHeight, getName, getTitle, getWidth, 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, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getParent, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, 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 Detail

node_

protected javax.jcr.Node node_
Constructor Detail

UIDocumentDetail

public UIDocumentDetail()
Method Detail

processRender

public void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
                   throws java.lang.Exception
Overrides:
processRender in class org.exoplatform.webui.core.UIComponent
Throws:
java.lang.Exception

isValidNode

protected boolean isValidNode()
                       throws java.lang.Exception
Throws:
java.lang.Exception

getCommentComponent

public org.exoplatform.webui.core.UIComponent getCommentComponent()
Specified by:
getCommentComponent in interface NodePresentation

getRemoveAttach

public org.exoplatform.webui.core.UIComponent getRemoveAttach()
                                                       throws java.lang.Exception
Specified by:
getRemoveAttach in interface NodePresentation
Throws:
java.lang.Exception

getRemoveComment

public org.exoplatform.webui.core.UIComponent getRemoveComment()
                                                        throws java.lang.Exception
Specified by:
getRemoveComment in interface NodePresentation
Throws:
java.lang.Exception

getTemplatePath

public java.lang.String getTemplatePath()
Specified by:
getTemplatePath in interface NodePresentation
Specified by:
getTemplatePath in class UIBaseNodePresentation

getIcons

public java.lang.String getIcons(javax.jcr.Node node,
                                 java.lang.String type)
                          throws java.lang.Exception
Specified by:
getIcons in interface NodePresentation
Overrides:
getIcons in class UIBaseNodePresentation
Throws:
java.lang.Exception

getTemplate

public java.lang.String getTemplate()
Overrides:
getTemplate in class org.exoplatform.portal.webui.portal.UIPortalComponent

getTemplateResourceResolver

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

newJCRTemplateResourceResolver

public void newJCRTemplateResourceResolver()

getComponentInstanceOfType

public java.lang.Object getComponentInstanceOfType(java.lang.String className)
Specified by:
getComponentInstanceOfType in interface NodePresentation
Overrides:
getComponentInstanceOfType in class UIBaseNodePresentation

getNode

public javax.jcr.Node getNode()
                       throws java.lang.Exception
Specified by:
getNode in interface NodePresentation
Specified by:
getNode in class UIBaseNodePresentation
Throws:
java.lang.Exception

setOriginalNode

public void setOriginalNode(javax.jcr.Node node)

getOriginalNode

public javax.jcr.Node getOriginalNode()
                               throws java.lang.Exception
Specified by:
getOriginalNode in interface NodePresentation
Specified by:
getOriginalNode in class UIBaseNodePresentation
Throws:
java.lang.Exception

getPortletPreferences

public javax.portlet.PortletPreferences getPortletPreferences()

setLanguage

public void setLanguage(java.lang.String language)
Specified by:
setLanguage in interface NodePresentation
Overrides:
setLanguage in class UIBaseNodePresentation

getLanguage

public java.lang.String getLanguage()
Specified by:
getLanguage in interface NodePresentation
Overrides:
getLanguage in class UIBaseNodePresentation

getDownloadLink

public java.lang.String getDownloadLink(javax.jcr.Node node)
                                 throws java.lang.Exception
Specified by:
getDownloadLink in interface NodePresentation
Overrides:
getDownloadLink in class UIBaseNodePresentation
Throws:
java.lang.Exception

getImage

public java.lang.String getImage(javax.jcr.Node node)
                          throws java.lang.Exception
Specified by:
getImage in interface NodePresentation
Overrides:
getImage in class UIBaseNodePresentation
Throws:
java.lang.Exception

getWebDAVServerPrefix

public java.lang.String getWebDAVServerPrefix()
                                       throws java.lang.Exception
Specified by:
getWebDAVServerPrefix in interface NodePresentation
Overrides:
getWebDAVServerPrefix in class UIBaseNodePresentation
Throws:
java.lang.Exception

setNode

public void setNode(javax.jcr.Node docNode)
Specified by:
setNode in interface NodePresentation

getAttachments

public java.util.List<javax.jcr.Node> getAttachments()
                                              throws java.lang.Exception
Specified by:
getAttachments in interface NodePresentation
Overrides:
getAttachments in class UIBaseNodePresentation
Throws:
java.lang.Exception

getAttachmentURL

@Deprecated
public java.lang.String getAttachmentURL(javax.jcr.Node attNode,
                                                    org.exoplatform.web.application.Parameter[] params)
                                  throws java.lang.Exception
Deprecated. 

use getViewableLink(Node attNode, Parameter[] params) instead

Specified by:
getAttachmentURL in interface NodePresentation
Overrides:
getAttachmentURL in class UIBaseNodePresentation
Parameters:
attNode -
params -
Returns:
Throws:
java.lang.Exception

getViewableLink

public java.lang.String getViewableLink(javax.jcr.Node attNode,
                                        org.exoplatform.web.application.Parameter[] params)
                                 throws java.lang.Exception
Specified by:
getViewableLink in interface NodePresentation
Overrides:
getViewableLink in class UIBaseNodePresentation
Throws:
java.lang.Exception

getRelations

public java.util.List<javax.jcr.Node> getRelations()
                                            throws java.lang.Exception
Specified by:
getRelations in interface NodePresentation
Overrides:
getRelations in class UIBaseNodePresentation
Throws:
java.lang.Exception

isNodeTypeSupported

public boolean isNodeTypeSupported()
Specified by:
isNodeTypeSupported in interface NodePresentation

isNodeTypeSupported

public boolean isNodeTypeSupported(java.lang.String nodeTypeName)

getNodeByUUID

public javax.jcr.Node getNodeByUUID(java.lang.String uuid)
                             throws java.lang.Exception
Overrides:
getNodeByUUID in class UIBaseNodePresentation
Throws:
java.lang.Exception

hasPropertyContent

public boolean hasPropertyContent(javax.jcr.Node node,
                                  java.lang.String property)

getNodeType

public java.lang.String getNodeType()
                             throws java.lang.Exception
Specified by:
getNodeType in interface NodePresentation
Throws:
java.lang.Exception

getRssLink

public java.lang.String getRssLink()
Specified by:
getRssLink in interface NodePresentation
Overrides:
getRssLink in class UIBaseNodePresentation

isRssLink

public boolean isRssLink()
Specified by:
isRssLink in interface NodePresentation
Overrides:
isRssLink in class UIBaseNodePresentation

getComments

public java.util.List<javax.jcr.Node> getComments()
                                           throws java.lang.Exception
Specified by:
getComments in interface NodePresentation
Overrides:
getComments in class UIBaseNodePresentation
Throws:
java.lang.Exception

getSupportedLocalise

public java.util.List<java.lang.String> getSupportedLocalise()
                                                      throws java.lang.Exception
Specified by:
getSupportedLocalise in interface NodePresentation
Overrides:
getSupportedLocalise in class UIBaseNodePresentation
Throws:
java.lang.Exception

getViewTemplate

public java.lang.String getViewTemplate(java.lang.String nodeTypeName,
                                        java.lang.String templateName)
                                 throws java.lang.Exception
Specified by:
getViewTemplate in interface NodePresentation
Overrides:
getViewTemplate in class UIBaseNodePresentation
Throws:
java.lang.Exception

activate

public void activate()
              throws java.lang.Exception
Specified by:
activate in interface org.exoplatform.webui.core.UIPopupComponent
Throws:
java.lang.Exception

deActivate

public void deActivate()
                throws java.lang.Exception
Specified by:
deActivate in interface org.exoplatform.webui.core.UIPopupComponent
Throws:
java.lang.Exception

getPortalName

public java.lang.String getPortalName()
Specified by:
getPortalName in interface NodePresentation
Overrides:
getPortalName in class UIBaseNodePresentation

getRepository

public java.lang.String getRepository()
                               throws java.lang.Exception
Specified by:
getRepository in interface NodePresentation
Overrides:
getRepository in class UIBaseNodePresentation
Throws:
java.lang.Exception

getWorkspaceName

public java.lang.String getWorkspaceName()
                                  throws java.lang.Exception
Specified by:
getWorkspaceName in interface NodePresentation
Overrides:
getWorkspaceName in class UIBaseNodePresentation
Throws:
java.lang.Exception

encodeHTML

public java.lang.String encodeHTML(java.lang.String text)
                            throws java.lang.Exception
Specified by:
encodeHTML in interface NodePresentation
Overrides:
encodeHTML in class UIBaseNodePresentation
Throws:
java.lang.Exception

isShowPlanView

public boolean isShowPlanView(javax.jcr.Node node)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getListNodes

public java.util.List<javax.jcr.Node> getListNodes(javax.jcr.Node node)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

getTemplateSkin

public java.lang.String getTemplateSkin(java.lang.String nodeTypeName,
                                        java.lang.String skinName)
                                 throws java.lang.Exception
Specified by:
getTemplateSkin in interface NodePresentation
Overrides:
getTemplateSkin in class UIBaseNodePresentation
Throws:
java.lang.Exception

getUIComponent

public org.exoplatform.webui.core.UIComponent getUIComponent(java.lang.String mimeType)
                                                      throws java.lang.Exception
Specified by:
getUIComponent in interface NodePresentation
Throws:
java.lang.Exception

isEnableComment

public boolean isEnableComment()
Specified by:
isEnableComment in interface NodePresentation
Overrides:
isEnableComment in class UIBaseNodePresentation

isEnableVote

public boolean isEnableVote()
Specified by:
isEnableVote in interface NodePresentation
Overrides:
isEnableVote in class UIBaseNodePresentation

setEnableComment

public void setEnableComment(boolean value)
Specified by:
setEnableComment in interface NodePresentation
Overrides:
setEnableComment in class UIBaseNodePresentation

setEnableVote

public void setEnableVote(boolean value)
Specified by:
setEnableVote in interface NodePresentation
Overrides:
setEnableVote in class UIBaseNodePresentation

getInlineEditingField

public java.lang.String getInlineEditingField(javax.jcr.Node orgNode,
                                              java.lang.String propertyName,
                                              java.lang.String defaultValue,
                                              java.lang.String inputType,
                                              java.lang.String idGenerator,
                                              java.lang.String cssClass,
                                              boolean isGenericProperty,
                                              java.lang.String... arguments)
                                       throws java.lang.Exception
Specified by:
getInlineEditingField in interface NodePresentation
Overrides:
getInlineEditingField in class UIBaseNodePresentation
Throws:
java.lang.Exception

getInlineEditingField

public java.lang.String getInlineEditingField(javax.jcr.Node orgNode,
                                              java.lang.String propertyName)
                                       throws java.lang.Exception
Specified by:
getInlineEditingField in interface NodePresentation
Overrides:
getInlineEditingField in class UIBaseNodePresentation
Throws:
java.lang.Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.