com.jalios.jcms.media
Class TreeCatMediaProxy

java.lang.Object
  extended by com.jalios.jcms.widget.TreeCatProxy
      extended by com.jalios.jcms.media.TreeCatMediaProxy

public class TreeCatMediaProxy
extends TreeCatProxy

This class is a TreeCatProxy implementation to controle link generated by MediaBrowser TreeCat.

Since:
jcms-5.5.0
Author:
Olivier Jaquemet, Jean-Philippe Encausse

Constructor Summary
TreeCatMediaProxy(MediaBrowserHandler handler)
           
 
Method Summary
protected static String[] dataCollectionToArrayList(Collection<? extends Data> dataColl, Data removeData, Data addData)
          Convert a collection of Data into an array of String, after adding or removing given Data.
protected static String[] getCidsKeyArray(int size)
           
 String getNodeLink(TreeCat treecat, String computedValue, String name, Category cat, int pubCount)
           
 
Methods inherited from class com.jalios.jcms.widget.TreeCatProxy
getBranch, getEdit, getHelp, getNodeIcon, getNodeName, getPortals, getPubCount, getReadablePub, getRights, getWidget, getWorkspaces, initRoot, resetRoots
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeCatMediaProxy

public TreeCatMediaProxy(MediaBrowserHandler handler)
Method Detail

getNodeLink

public String getNodeLink(TreeCat treecat,
                          String computedValue,
                          String name,
                          Category cat,
                          int pubCount)
Overrides:
getNodeLink in class TreeCatProxy
Parameters:
treecat - the TreeCat calling this method
computedValue - the value already computed by tha TreeCat
name - the node name
cat - the Category to display
pubCount - the pre computed publication count or 1
Returns:
String the updated value

getCidsKeyArray

protected static String[] getCidsKeyArray(int size)

dataCollectionToArrayList

protected static String[] dataCollectionToArrayList(Collection<? extends Data> dataColl,
                                                    Data removeData,
                                                    Data addData)
Convert a collection of Data into an array of String, after adding or removing given Data.

Parameters:
dataColl - the collection to convert
removeData - the data to remove prior to convertion
addData - the data to add prior to convertion
Returns:
an array of String containing Data's id


Copyright © 2001-2010 Jalios SA. All Rights Reserved.