org.exoplatform.wcm.ext.component.activity
Class ContentPresentation

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.wcm.ext.component.activity.ContentPresentation
All Implemented Interfaces:
org.exoplatform.ecm.webui.presentation.NodePresentation

public class ContentPresentation
extends org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation

Created by The eXo Platform SAS

Author:
hai_lethanh Mar 23, 2011 This class used to render the media contents

Nested Class Summary
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
 
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
ContentPresentation()
           
 
Method Summary
 org.exoplatform.webui.core.UIComponent getCommentComponent()
           
 java.lang.String getDownloadLink(javax.jcr.Node node)
           
 javax.jcr.Node getNode()
           
 java.lang.String getNodeType()
           
 javax.jcr.Node getOriginalNode()
           
 org.exoplatform.webui.core.UIComponent getRemoveAttach()
           
 org.exoplatform.webui.core.UIComponent getRemoveComment()
           
 java.lang.String getRepositoryName()
           
 java.lang.String getTemplate()
           
 java.lang.String getTemplatePath()
           
 org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, java.lang.String template)
           
 org.exoplatform.webui.core.UIComponent getUIComponent(java.lang.String mimeType)
           
 boolean isNodeTypeSupported()
           
 void setNode(javax.jcr.Node node)
           
 
Methods inherited from class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
encodeHTML, getAttachments, getAttachmentURL, getCategories, getComments, getComponentInstanceOfType, getIcons, getImage, getImageURIInProperty, getInlineEditingField, getInlineEditingField, getLanguage, getMediaState, getNodeByUUID, getPortalName, getPortletPreferenceValue, getPortletPreferenceValues, getRelations, getRepository, getRssLink, getSupportedLocalise, getTags, getTemplateSkin, getViewableLink, getViewTemplate, getVotingRate, getWebDAVServerPrefix, getWorkspaceName, isDisplayAlternativeText, isEnableComment, isEnableVote, isRssLink, playAudioDescription, setEnableComment, setEnableVote, setLanguage, 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, 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
 

Constructor Detail

ContentPresentation

public ContentPresentation()
Method Detail

setNode

public void setNode(javax.jcr.Node node)

getNode

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

getOriginalNode

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

getDownloadLink

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

getTemplatePath

public java.lang.String getTemplatePath()
                                 throws java.lang.Exception
Specified by:
getTemplatePath in interface org.exoplatform.ecm.webui.presentation.NodePresentation
Specified by:
getTemplatePath in class org.exoplatform.ecm.webui.presentation.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

getNodeType

public java.lang.String getNodeType()
                             throws java.lang.Exception
Throws:
java.lang.Exception

isNodeTypeSupported

public boolean isNodeTypeSupported()

getUIComponent

public org.exoplatform.webui.core.UIComponent getUIComponent(java.lang.String mimeType)
                                                      throws java.lang.Exception
Throws:
java.lang.Exception

getCommentComponent

public org.exoplatform.webui.core.UIComponent getCommentComponent()
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

getRemoveAttach

public org.exoplatform.webui.core.UIComponent getRemoveAttach()
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

getRemoveComment

public org.exoplatform.webui.core.UIComponent getRemoveComment()
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

getRepositoryName

public java.lang.String getRepositoryName()
                                   throws java.lang.Exception
Overrides:
getRepositoryName in class org.exoplatform.ecm.webui.presentation.UIBaseNodePresentation
Throws:
java.lang.Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.