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 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
 String addQuickEditDiv(String cssClass, javax.jcr.Node viewNode)
          This method will put the mandatory html code to manage QuickEdit mode
 String getAuthor(javax.jcr.Node node)
          Gets the author.
 String getBackLink(String currentPath)
           
 List<CategoryBean> getCategories()
           
 List<CategoryBean> getCategories(boolean withChildren)
           
 List<CategoryBean> getCategories(String primaryType)
           
 List<CategoryBean> getCategories(String fullPath, String primaryType, int depth)
           
 List<CategoryBean> getCategories(String fullPath, String primaryType, int depth, boolean withChildren)
           
 String getCategoryURL(javax.jcr.Node node)
          Gets the uRL.
 String getContentIcon(javax.jcr.Node node)
          Gets the content icon.
 String getCreatedDate(javax.jcr.Node node)
          Gets the created date.
 List getCurrentPageData()
           
 String getEditLink(javax.jcr.Node node, boolean isEditable, boolean isNew)
           
 String getHeader()
           
 String getIllustrativeImage(javax.jcr.Node node)
          Gets the illustrative image.
static String getInlineEditingField(javax.jcr.Node orgNode, String propertyName, String defaultValue, String inputType, String idGenerator, String cssClass, boolean isGenericProperty, String... arguments)
           
 String getModifiedDate(javax.jcr.Node node)
          Gets the modified date.
 String getRssLink()
          Gets the rss link.
 String getSummary(javax.jcr.Node node)
          Gets the summary.
 String getSummaryField(javax.jcr.Node node)
           
 String getTagHtmlStyle(long tagCount)
           
 String getTemplate()
           
 org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, String template)
           
 String getTitle(javax.jcr.Node node)
          Gets the title.
 org.exoplatform.webui.core.UIPageIterator getUIPageIterator()
           
 String getURL(javax.jcr.Node node)
          Gets the uRL.
 String getWebdavURL(javax.jcr.Node node)
          Gets the webdav url.
 void init(org.exoplatform.resolver.ResourceResolver resourceResolver, org.exoplatform.commons.utils.PageList dataPageList)
          Init portlet information.
 boolean isShowEdit(javax.jcr.Node node)
           
 boolean isShowField(String field)
          Checks if is show field.
 boolean isShowRssLink()
           
 void setDateTimeFormat(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, 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
 

Field Detail

defaultScvParam

public static final 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 Exception
Init portlet information.

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

getCategories

public List<CategoryBean> getCategories()
                                 throws Exception
Throws:
Exception

getCategories

public List<CategoryBean> getCategories(String primaryType)
                                 throws Exception
Throws:
Exception

getCategories

public List<CategoryBean> getCategories(boolean withChildren)
                                 throws Exception
Throws:
Exception

getCategories

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

getCategories

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

getTagHtmlStyle

public String getTagHtmlStyle(long tagCount)
                       throws Exception
Throws:
Exception

getCategoryURL

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

Parameters:
node - the node
Returns:
the uRL
Throws:
Exception - the exception

isShowField

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

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

showPaginator

public boolean showPaginator()
                      throws Exception
Show paginator.

Returns:
true, if successful
Throws:
Exception - the exception

getTemplate

public 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,
                                                                             String template)
Overrides:
getTemplateResourceResolver in class org.exoplatform.webui.core.UIComponent

getTitle

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

Parameters:
node - the node
Returns:
the title
Throws:
Exception - the exception

getSummary

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

Parameters:
node - the node
Returns:
the summary
Throws:
Exception - the exception

getInlineEditingField

public static String getInlineEditingField(javax.jcr.Node orgNode,
                                           String propertyName,
                                           String defaultValue,
                                           String inputType,
                                           String idGenerator,
                                           String cssClass,
                                           boolean isGenericProperty,
                                           String... arguments)
                                    throws Exception
Throws:
Exception

getSummaryField

public String getSummaryField(javax.jcr.Node node)
                       throws Exception
Throws:
Exception

getURL

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

Parameters:
node - the node
Returns:
the uRL
Throws:
Exception - the exception

getWebdavURL

public String getWebdavURL(javax.jcr.Node node)
                    throws Exception
Gets the webdav url.

Parameters:
node - the node
Returns:
the webdav url
Throws:
Exception - the exception

getAuthor

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

Parameters:
node - the node
Returns:
the author
Throws:
Exception - the exception

getCreatedDate

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

Parameters:
node - the node
Returns:
the created date
Throws:
Exception - the exception

getModifiedDate

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

Parameters:
node - the node
Returns:
the modified date
Throws:
Exception - the exception

getContentIcon

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

Parameters:
node - the node
Returns:
the content icon

getHeader

public String getHeader()

getUIPageIterator

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

getCurrentPageData

public List getCurrentPageData()
                        throws Exception
Throws:
Exception

setDateTimeFormat

public void setDateTimeFormat(String format)

getEditLink

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

isShowEdit

public boolean isShowEdit(javax.jcr.Node node)

getIllustrativeImage

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

Parameters:
node - the node
Returns:
the illustrative image

isShowRssLink

public boolean isShowRssLink()

getRssLink

public String getRssLink()
Gets the rss link.

Returns:
the rss link

addQuickEditDiv

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

Parameters:
cssClass -
viewNode -
Returns:
Throws:
Exception

getBackLink

public String getBackLink(String currentPath)


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.