org.infoglue.cms.treeservice.ss
Class ContentNodeSupplier

java.lang.Object
  |
  +--com.frovi.ss.Tree.BaseNodeSupplier
        |
        +--org.infoglue.cms.treeservice.ss.ContentNodeSupplier
All Implemented Interfaces:
INodeSupplier

public class ContentNodeSupplier
extends BaseNodeSupplier

ContentNodeSupplier.java Created on 2002-sep-30

Author:
Stefan Sik, ss@frovi.com, Frank Febbraro (frank@phase2technology.com) Refactoring and Sorting

Constructor Summary
ContentNodeSupplier(java.lang.Integer repositoryId, java.lang.String userName)
           
 
Method Summary
 java.lang.String[] getAllowedContentTypeNames()
           
 java.util.Collection getChildContainerNodes(java.lang.Integer parentNode)
          ContainerNodes (folderNodes) Create a list of nodes that is children to the node with the supplied id "parentNode".
 java.util.Collection getChildLeafNodes(java.lang.Integer parentNode)
          LeafNodes (documentNodes) Create a list of nodes that is children to the node with the supplied id "parentNode".
 boolean hasChildren()
          return true if you will answer the question above
 void setAllowedContentTypeNames(java.lang.String[] allowedContentTypeNames)
           
 void setShowLeafs(boolean showLeafs)
          Sets the showLeafs.
 
Methods inherited from class com.frovi.ss.Tree.BaseNodeSupplier
getRootNode, hasChildren
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentNodeSupplier

public ContentNodeSupplier(java.lang.Integer repositoryId,
                           java.lang.String userName)
                    throws SystemException
Method Detail

hasChildren

public boolean hasChildren()
Description copied from interface: INodeSupplier
return true if you will answer the question above

Specified by:
hasChildren in interface INodeSupplier
Overrides:
hasChildren in class BaseNodeSupplier
See Also:
BaseNodeSupplier.hasChildren()

getChildContainerNodes

public java.util.Collection getChildContainerNodes(java.lang.Integer parentNode)
Description copied from interface: INodeSupplier
ContainerNodes (folderNodes) Create a list of nodes that is children to the node with the supplied id "parentNode". Set the attributes on each node, and if possible also determine if each node itself has children.

See Also:
INodeSupplier.getChildContainerNodes(Integer)

getChildLeafNodes

public java.util.Collection getChildLeafNodes(java.lang.Integer parentNode)
Description copied from interface: INodeSupplier
LeafNodes (documentNodes) Create a list of nodes that is children to the node with the supplied id "parentNode". Set the attributes on each node, in this case node.setChildren(boolean) has no effect

See Also:
INodeSupplier.getChildLeafNodes(Integer)

setShowLeafs

public void setShowLeafs(boolean showLeafs)
Sets the showLeafs.

Parameters:
showLeafs - The showLeafs to set

getAllowedContentTypeNames

public java.lang.String[] getAllowedContentTypeNames()

setAllowedContentTypeNames

public void setAllowedContentTypeNames(java.lang.String[] allowedContentTypeNames)