org.exoplatform.contentvalidation.webui
Class UIDocumentContent

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.contentvalidation.webui.UIDocumentContent
All Implemented Interfaces:
NodePresentation

public class UIDocumentContent
extends org.exoplatform.webui.core.UIContainer
implements NodePresentation

Created by The eXo Platform SARL Author : Ly Dinh Quang quang.ly@exoplatform.com xxx5669@gmail.com Jan 16, 2009


Nested Class Summary
static class UIDocumentContent.ChangeLanguageActionListener
           
static class UIDocumentContent.ChangeNodeActionListener
           
static class UIDocumentContent.DownloadActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static java.lang.String DEFAULT_LANGUAGE
           
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIDocumentContent()
           
 
Method Summary
 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. 
 java.lang.String getCapacityOfFile(javax.jcr.Node file)
           
 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 appended)
           
 java.lang.String getImage(javax.jcr.Node node)
           
 java.lang.String getImage(javax.jcr.Node node, java.lang.String nodeTypeName)
           
 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()
           
 javax.jcr.Node getNode()
           
 javax.jcr.Node getNodeByPath(java.lang.String nodePath, java.lang.String workspace)
           
 javax.jcr.Node getNodeByUUID(java.lang.String uuid)
           
 java.lang.String getNodeType()
           
 javax.jcr.Node getOriginalNode()
           
 java.lang.String getPortalName()
           
 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 isEnableComment()
           
 boolean isEnableVote()
           
 boolean isNodeTypeSupported()
           
 boolean isRssLink()
           
 void setEnableComment(boolean value)
           
 void setEnableVote(boolean value)
           
 void setLanguage(java.lang.String language)
           
 void setNode(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, processRender, 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

DEFAULT_LANGUAGE

public static final java.lang.String DEFAULT_LANGUAGE
Constructor Detail

UIDocumentContent

public UIDocumentContent()
                  throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setNode

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

getNode

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

getOriginalNode

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

getNodeType

public java.lang.String getNodeType()
                             throws java.lang.Exception
Specified by:
getNodeType 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

isNodeTypeSupported

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

getImage

public java.lang.String getImage(javax.jcr.Node node,
                                 java.lang.String nodeTypeName)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getNodeByPath

public javax.jcr.Node getNodeByPath(java.lang.String nodePath,
                                    java.lang.String workspace)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getCapacityOfFile

public java.lang.String getCapacityOfFile(javax.jcr.Node file)
                                   throws java.lang.Exception
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

getNodeByUUID

public javax.jcr.Node getNodeByUUID(java.lang.String uuid)
                             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

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

getAttachments

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

getSupportedLocalise

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

getTemplatePath

public java.lang.String getTemplatePath()
                                 throws java.lang.Exception
Specified by:
getTemplatePath 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

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

getComments

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

getIcons

public java.lang.String getIcons(javax.jcr.Node node,
                                 java.lang.String appended)
                          throws java.lang.Exception
Specified by:
getIcons 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

getLanguage

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

setLanguage

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

getComponentInstanceOfType

public java.lang.Object getComponentInstanceOfType(java.lang.String className)
Specified by:
getComponentInstanceOfType 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

getPortalName

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

getWorkspaceName

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

getRepository

public java.lang.String getRepository()
                               throws java.lang.Exception
Specified by:
getRepository 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

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

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
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
Throws:
java.lang.Exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.