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.ecm.webui.component.browsecontent.UIDocumentDetail
All Implemented Interfaces:
NodePresentation, org.exoplatform.webui.core.UIPopupComponent

public class UIDocumentDetail
extends org.exoplatform.webui.core.UIContainer
implements NodePresentation, 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.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
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)
           
 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 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 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.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, getName, 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

getIcons

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

getTemplate

public java.lang.String getTemplate()
Overrides:
getTemplate in class org.exoplatform.webui.core.UIComponent

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

getNode

public javax.jcr.Node getNode()
                       throws java.lang.Exception
Specified by:
getNode in interface NodePresentation
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
Throws:
java.lang.Exception

getPortletPreferences

public javax.portlet.PortletPreferences getPortletPreferences()

setLanguage

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

getLanguage

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

getDownloadLink

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

getImage

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

getWebDAVServerPrefix

public java.lang.String getWebDAVServerPrefix()
                                       throws java.lang.Exception
Specified by:
getWebDAVServerPrefix in interface NodePresentation
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
Throws:
java.lang.Exception

getAttachmentURL

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

getRelations

public java.util.List<javax.jcr.Node> getRelations()
                                            throws java.lang.Exception
Specified by:
getRelations in interface NodePresentation
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
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

isRssLink

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

getComments

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

getSupportedLocalise

public java.util.List<java.lang.String> getSupportedLocalise()
                                                      throws java.lang.Exception
Specified by:
getSupportedLocalise in interface NodePresentation
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
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

getRepository

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

getWorkspaceName

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

encodeHTML

public java.lang.String encodeHTML(java.lang.String text)
                            throws java.lang.Exception
Specified by:
encodeHTML in interface NodePresentation
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
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

isEnableVote

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

setEnableComment

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

setEnableVote

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


Copyright © 2011 eXo Platform SAS. All Rights Reserved.