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

The Class UICLVPresentation.


Nested Class Summary
static class UICLVPresentation.DeleteContentActionListener
           
static class UICLVPresentation.FastPublishActionListener
           
static class UICLVPresentation.RefreshActionListener
          The listener interface for receiving refreshAction events.
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static java.lang.String defaultScvParam
           
 
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
 
Constructor Summary
UICLVPresentation()
          Instantiates a new uICLV presentation.
 
Method Summary
 java.lang.String addQuickEditDiv(java.lang.String cssClass, javax.jcr.Node viewNode)
          This method will put the mandatory html code to manage QuickEdit mode
 java.lang.String getAuthor(javax.jcr.Node node)
          Gets the author.
 java.util.List<CategoryBean> getCategories()
           
 java.util.List<CategoryBean> getCategories(boolean withChildren)
           
 java.util.List<CategoryBean> getCategories(java.lang.String primaryType)
           
 java.util.List<CategoryBean> getCategories(java.lang.String fullPath, java.lang.String primaryType, int depth)
           
 java.util.List<CategoryBean> getCategories(java.lang.String fullPath, java.lang.String primaryType, int depth, boolean withChildren)
           
 java.lang.String getCategoryURL(javax.jcr.Node node)
          Gets the uRL.
 java.lang.String getContentIcon(javax.jcr.Node node)
          Gets the content icon.
 java.lang.String getCreatedDate(javax.jcr.Node node)
          Gets the created date.
 java.util.List getCurrentPageData()
           
 java.lang.String getEditLink(javax.jcr.Node node, boolean isEditable, boolean isNew)
           
 java.lang.String getHeader()
           
 java.lang.String getIllustrativeImage(javax.jcr.Node node)
          Gets the illustrative image.
static 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 getModifiedDate(javax.jcr.Node node)
          Gets the modified date.
 java.lang.String getRssLink()
          Gets the rss link.
 java.lang.String getSummary(javax.jcr.Node node)
          Gets the summary.
 java.lang.String getSummaryField(javax.jcr.Node node)
           
 java.lang.String getTagHtmlStyle(long tagCount)
           
 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()
           
 java.lang.String getURL(javax.jcr.Node node)
          Gets the uRL.
 java.lang.String getWebdavURL(javax.jcr.Node node)
          Gets the webdav url.
 void init(org.exoplatform.resolver.ResourceResolver resourceResolver, org.exoplatform.commons.utils.PageList dataPageList)
          Inits the.
 boolean isShowEdit(javax.jcr.Node node)
           
 boolean isShowField(java.lang.String field)
          Checks if is show field.
 boolean isShowRssLink()
           
 void setDateTimeFormat(java.lang.String format)
           
 boolean showPaginator()
          Show paginator.
 
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, isShowEditControl, setAccessPermissions, setFactoryId, setHeight, 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, 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
 

Field Detail

defaultScvParam

public static final java.lang.String defaultScvParam
See Also:
Constant Field Values
Constructor Detail

UICLVPresentation

public UICLVPresentation()
Instantiates a new uICLV presentation.

Method Detail

init

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

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

getCategories

public java.util.List<CategoryBean> getCategories()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

getCategories

public java.util.List<CategoryBean> getCategories(java.lang.String primaryType)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

getCategories

public java.util.List<CategoryBean> getCategories(boolean withChildren)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

getCategories

public java.util.List<CategoryBean> getCategories(java.lang.String fullPath,
                                                  java.lang.String primaryType,
                                                  int depth)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

getCategories

public java.util.List<CategoryBean> getCategories(java.lang.String fullPath,
                                                  java.lang.String primaryType,
                                                  int depth,
                                                  boolean withChildren)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

getTagHtmlStyle

public java.lang.String getTagHtmlStyle(long tagCount)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getCategoryURL

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

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

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

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

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

getInlineEditingField

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

getSummaryField

public java.lang.String getSummaryField(javax.jcr.Node node)
                                 throws java.lang.Exception
Throws:
java.lang.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

getContentIcon

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

Parameters:
node - the node
Returns:
the content icon

getHeader

public java.lang.String getHeader()

getUIPageIterator

public org.exoplatform.webui.core.UIPageIterator getUIPageIterator()

getCurrentPageData

public java.util.List getCurrentPageData()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

setDateTimeFormat

public void setDateTimeFormat(java.lang.String format)

getEditLink

public java.lang.String getEditLink(javax.jcr.Node node,
                                    boolean isEditable,
                                    boolean isNew)

isShowEdit

public boolean isShowEdit(javax.jcr.Node node)

getIllustrativeImage

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

Parameters:
node - the node
Returns:
the illustrative image

isShowRssLink

public boolean isShowRssLink()

getRssLink

public java.lang.String getRssLink()
Gets the rss link.

Returns:
the rss link

addQuickEditDiv

public java.lang.String addQuickEditDiv(java.lang.String cssClass,
                                        javax.jcr.Node viewNode)
                                 throws java.lang.Exception
This method will put the mandatory html code to manage QuickEdit mode

Parameters:
cssClass -
viewNode -
Returns:
Throws:
java.lang.Exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.