Class ChildrenTableContentProvider

All Implemented Interfaces:
IPageFlowScopeAdapter, IAddressableTableContentProvider, IContentProvider, IFilterableTableContentProvider, IRefreshable, IRefreshableContentProvider, ISelectableTableContentProvider, ISortableTableContentProvider, ITableContentProvider, Serializable

public class ChildrenTableContentProvider extends BaseIteratorTableContentProvider implements IFilterableTableContentProvider
CAF table content provider for listing the children of a JCR Node.
Since:
8.0
See Also:
  • Constructor Details

    • ChildrenTableContentProvider

      public ChildrenTableContentProvider()
    • ChildrenTableContentProvider

      public ChildrenTableContentProvider(javax.jcr.Session jcrSession, String parentNodeId, String parentNodePath)
      Constructor
      Parameters:
      jcrSession - the active JCR session
      parentNodeId - the node id of the parent (should be null if parentNodePath is supplied)
      parentNodePath - the node path of the parent (should be null if parentNodeId is supplied)
  • Method Details

    • getParentNodePath

      public String getParentNodePath()
      Gets the parent node path
      Returns:
      the parentNodePath
    • setParentNodePath

      public void setParentNodePath(String parentNodePath)
      Sets the parent node path
      Parameters:
      parentNodePath - the parentNodePath to set
    • getParentNodeId

      public String getParentNodeId()
      Gets the parent node id
      Returns:
      the parentNodeId
    • setParentNodeId

      public void setParentNodeId(String parentNodeId)
      Sets the parent node id
      Parameters:
      parentNodeId - the parentNodeId to set
    • hasValidInputParameters

      protected boolean hasValidInputParameters()
      Checks if the input parameters are valid
      Specified by:
      hasValidInputParameters in class BaseIteratorTableContentProvider
    • invokeSearch

      protected javax.jcr.RangeIterator invokeSearch()
      Performs the work to lookup the children of the specified parent node If a filter value is supplied, the returned items will match the filter pattern.
      Specified by:
      invokeSearch in class BaseIteratorTableContentProvider
      Returns:
      node iterator
    • getFilter

      public String getFilter()
      Description copied from interface: IFilterableTableContentProvider
      Filter expression. Only rows matched by this filter should be exposed. Null or empty ("") signals expose the default set of rows.
      Specified by:
      getFilter in interface IFilterableTableContentProvider
    • isFilterable

      public boolean isFilterable()
      Description copied from interface: IFilterableTableContentProvider
      True if this provider truely is filterable.
      Specified by:
      isFilterable in interface IFilterableTableContentProvider
    • setFilter

      public void setFilter(String filter)
      Description copied from interface: IFilterableTableContentProvider
      Filter expression. Only rows matched by this filter should be exposed. Null or empty ("") signals expose the default set of rows.
      Specified by:
      setFilter in interface IFilterableTableContentProvider