org.apache.jackrabbit.webdav.simple
Interface ItemFilter

All Known Implementing Classes:
DefaultItemFilter

public interface ItemFilter

ItemFilter


Method Summary
 boolean isFilteredItem(Item item)
          Returns true if the given item should be filtered.
 boolean isFilteredItem(String name, Session session)
          Returns true if the resouce with the given name should be filtered.
 void setFilteredNodetypes(String[] nodetypeNames)
          Set the nodetype names that should be used if a given item should be filtered.
 void setFilteredPrefixes(String[] prefixes)
          Define the namespace prefixes that should be filtered if present in the prefix of an items name.
 void setFilteredURIs(String[] uris)
          Define the URIs that should be filtered out if present in the prefix of an items name.
 

Method Detail

setFilteredURIs

void setFilteredURIs(String[] uris)
Define the URIs that should be filtered out if present in the prefix of an items name.

Parameters:
uris -

setFilteredPrefixes

void setFilteredPrefixes(String[] prefixes)
Define the namespace prefixes that should be filtered if present in the prefix of an items name.

Parameters:
prefixes -

setFilteredNodetypes

void setFilteredNodetypes(String[] nodetypeNames)
Set the nodetype names that should be used if a given item should be filtered. Note that not the nodetype(s) defined for a given item is relevant but rather the nodetype that defined the definition of the item.

Parameters:
nodetypeNames -

isFilteredItem

boolean isFilteredItem(Item item)
Returns true if the given item should be filtered.

Parameters:
item - to be tested
Returns:
true if the given item should be filtered.

isFilteredItem

boolean isFilteredItem(String name,
                       Session session)
Returns true if the resouce with the given name should be filtered.

Parameters:
name - to be tested for a filtered namespace prefix
session - used for looking up namespace mappings
Returns:
true if the given resource should be filtered.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.