org.exoplatform.wcm.webui.clv
Class UICLVPresentation

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.wcm.webui.clv.UICLVPresentation

public class UICLVPresentation
extends org.exoplatform.portal.webui.container.UIContainer


Nested Class Summary
static class UICLVPresentation.EditContentActionListener
          The listener interface for receiving editContentAction events.
static class UICLVPresentation.RefreshActionListener
          The listener interface for receiving refreshAction events.
 
Nested classes/interfaces inherited from class org.exoplatform.portal.webui.container.UIContainer
org.exoplatform.portal.webui.container.UIContainer.SelectTabActionListener
 
Field Summary
 
Fields inherited from class org.exoplatform.portal.webui.container.UIContainer
creator, description, icon, modifier
 
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
config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UICLVPresentation()
          Instantiates a new uI content list presentation.
 
Method Summary
 java.lang.String getAuthor(javax.jcr.Node node)
          Gets the author.
 java.util.List<java.lang.String> getCategories(javax.jcr.Node node)
          Gets the categories.
 java.lang.String getContentColumn()
          Gets the content column.
 java.lang.String getContentIcon(javax.jcr.Node node)
          Gets the content icon.
 java.lang.String getContentSize(javax.jcr.Node node)
          Gets the content size.
 java.lang.String getContentType(javax.jcr.Node node)
          Gets the content type.
 java.lang.String getCreatedDate(javax.jcr.Node node)
          Gets the created date.
 java.util.List getCurrentPageData()
          Gets the current page data.
 java.text.DateFormat getDatetimeFommatter()
          Gets the datetime fommatter.
 java.lang.String getHeader()
          Gets the header.
 java.lang.String getIllustrativeImage(javax.jcr.Node node)
          Gets the illustrative image.
 java.lang.String getModifiedDate(javax.jcr.Node node)
          Gets the modified date.
 int getNumberOfComments(javax.jcr.Node node)
          Gets the number of comments.
 java.util.List<javax.jcr.Node> getRelatedContents(javax.jcr.Node node)
          Gets the related contents.
 java.lang.String getSummary(javax.jcr.Node node)
          Gets the summary.
 java.util.List<java.lang.String> getTags(javax.jcr.Node node)
          Gets the tags.
 java.lang.String getTemplate()
           
 org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, java.lang.String template)
           
 java.lang.String getTitle(javax.jcr.Node node)
          Gets the title.
 org.exoplatform.webui.core.UIPageIterator getUIPageIterator()
          Gets the uI page iterator.
 java.lang.String getURL(javax.jcr.Node node)
          Gets the uRL.
 float getVotingRate(javax.jcr.Node node)
          Gets the voting rate.
 java.lang.String getWebdavURL(javax.jcr.Node node)
          Gets the WebDAV uRL.
 void init(java.lang.String templatePath, org.exoplatform.resolver.ResourceResolver resourceResolver, org.exoplatform.commons.utils.PageList dataPageList)
          Inits the.
 boolean isShowField(java.lang.String field)
          Checks if is show field.
 boolean isShowHeader()
          Checks if is show header.
 boolean isShowLink()
          Checks if is show link.
 boolean isShowReadmore()
          Checks if is show readmore.
 void setContentColumn(java.lang.String column)
          Sets the content column.
 void setDateTimeFormat(java.lang.String format)
          Sets the date time format.
 void setHeader(java.lang.String header)
          Sets the header.
 void setShowHeader(boolean showHeader)
          Sets the show header.
 void setShowLink(boolean showLink)
          Sets the show link.
 void setShowReadmore(boolean showReadmore)
          Sets the show readmore.
 boolean showPaginator()
          Show paginator.
 boolean showRefreshButton()
          Show refresh button.
 
Methods inherited from class org.exoplatform.portal.webui.container.UIContainer
getCreator, getDescription, getIcon, getModifier, setCreator, setDescription, setIcon, setModifier
 
Methods inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent
getFactoryId, getHeight, getMode, getName, getTitle, getWidth, isEditMode, isModifiable, isShowEditControl, setFactoryId, setHeight, setMode, setModifiable, setName, setShowEditControl, 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, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes, visit
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getParent, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, processRender, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibbling, url, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UICLVPresentation

public UICLVPresentation()
Instantiates a new uI content list presentation.

Method Detail

init

public void init(java.lang.String templatePath,
                 org.exoplatform.resolver.ResourceResolver resourceResolver,
                 org.exoplatform.commons.utils.PageList dataPageList)
          throws java.lang.Exception
Inits the.

Parameters:
templatePath - the template path
resourceResolver - the resource resolver
dataPageList - the data page list
Throws:
java.lang.Exception - the exception

showRefreshButton

public boolean showRefreshButton()
Show refresh button.

Returns:
true, if successful

isShowField

public boolean isShowField(java.lang.String field)
Checks if is show field.

Parameters:
field - the field
Returns:
true, if is show field

showPaginator

public boolean showPaginator()
                      throws java.lang.Exception
Show paginator.

Returns:
true, if successful
Throws:
java.lang.Exception - the exception

getTemplate

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

getDatetimeFommatter

public java.text.DateFormat getDatetimeFommatter()
Gets the datetime fommatter.

Returns:
the datetime fommatter

setDateTimeFormat

public void setDateTimeFormat(java.lang.String format)
Sets the date time format.

Parameters:
format - the new date time format

getContentColumn

public java.lang.String getContentColumn()
Gets the content column.

Returns:
the content column

setContentColumn

public void setContentColumn(java.lang.String column)
Sets the content column.

Parameters:
column - the new content column

getUIPageIterator

public org.exoplatform.webui.core.UIPageIterator getUIPageIterator()
Gets the uI page iterator.

Returns:
the uI page iterator

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

getCurrentPageData

public java.util.List getCurrentPageData()
                                  throws java.lang.Exception
Gets the current page data.

Returns:
the current page data
Throws:
java.lang.Exception - the exception

getTitle

public java.lang.String getTitle(javax.jcr.Node node)
                          throws java.lang.Exception
Gets the title.

Parameters:
node - the node
Returns:
the title
Throws:
java.lang.Exception - the exception

getSummary

public java.lang.String getSummary(javax.jcr.Node node)
                            throws java.lang.Exception
Gets the summary.

Parameters:
node - the node
Returns:
the summary
Throws:
java.lang.Exception - the exception

getURL

public java.lang.String getURL(javax.jcr.Node node)
                        throws java.lang.Exception
Gets the uRL.

Parameters:
node - the node
Returns:
the uRL
Throws:
java.lang.Exception - the exception

getWebdavURL

public java.lang.String getWebdavURL(javax.jcr.Node node)
                              throws java.lang.Exception
Gets the WebDAV uRL.

Parameters:
node - the node
Returns:
the WebDAV URL
Throws:
java.lang.Exception - the exception

getAuthor

public java.lang.String getAuthor(javax.jcr.Node node)
                           throws java.lang.Exception
Gets the author.

Parameters:
node - the node
Returns:
the author
Throws:
java.lang.Exception - the exception

getCreatedDate

public java.lang.String getCreatedDate(javax.jcr.Node node)
                                throws java.lang.Exception
Gets the created date.

Parameters:
node - the node
Returns:
the created date
Throws:
java.lang.Exception - the exception

getModifiedDate

public java.lang.String getModifiedDate(javax.jcr.Node node)
                                 throws java.lang.Exception
Gets the modified date.

Parameters:
node - the node
Returns:
the modified date
Throws:
java.lang.Exception - the exception

getContentType

public java.lang.String getContentType(javax.jcr.Node node)
Gets the content type.

Parameters:
node - the node
Returns:
the content type

getContentIcon

public java.lang.String getContentIcon(javax.jcr.Node node)
Gets the content icon.

Parameters:
node - the node
Returns:
the content icon

getContentSize

public java.lang.String getContentSize(javax.jcr.Node node)
Gets the content size.

Parameters:
node - the node
Returns:
the content size

getIllustrativeImage

public java.lang.String getIllustrativeImage(javax.jcr.Node node)
Gets the illustrative image.

Parameters:
node - the node
Returns:
the illustrative image
Throws:
java.lang.Exception - the exception

getCategories

public java.util.List<java.lang.String> getCategories(javax.jcr.Node node)
Gets the categories.

Parameters:
node - the node
Returns:
the categories

getTags

public java.util.List<java.lang.String> getTags(javax.jcr.Node node)
Gets the tags.

Parameters:
node - the node
Returns:
the tags

getVotingRate

public float getVotingRate(javax.jcr.Node node)
Gets the voting rate.

Parameters:
node - the node
Returns:
the voting rate

getNumberOfComments

public int getNumberOfComments(javax.jcr.Node node)
Gets the number of comments.

Parameters:
node - the node
Returns:
the number of comments

getRelatedContents

public java.util.List<javax.jcr.Node> getRelatedContents(javax.jcr.Node node)
Gets the related contents.

Parameters:
node - the node
Returns:
the related contents

isShowLink

public boolean isShowLink()
Checks if is show link.

Returns:
true, if is show link

setShowLink

public void setShowLink(boolean showLink)
Sets the show link.

Parameters:
showLink - the new show link

isShowHeader

public boolean isShowHeader()
Checks if is show header.

Returns:
true, if is show header

isShowReadmore

public boolean isShowReadmore()
Checks if is show readmore.

Returns:
true, if is show readmore

setShowHeader

public void setShowHeader(boolean showHeader)
Sets the show header.

Parameters:
showHeader - the new show header

setShowReadmore

public void setShowReadmore(boolean showReadmore)
Sets the show readmore.

Parameters:
showReadmore - the new show readmore

setHeader

public void setHeader(java.lang.String header)
Sets the header.

Parameters:
header - the new header

getHeader

public java.lang.String getHeader()
Gets the header.

Returns:
the header


Copyright © 2010 eXo Platform SAS. All Rights Reserved.