org.apache.jackrabbit.webdav.simple
Interface ResourceFilter

All Known Implementing Classes:
DefaultResourceFilter

public interface ResourceFilter

ResourceFilter


Method Summary
 boolean isFilteredItem(Item item)
          Returns true if the given item should be filtered.
 boolean isFilteredResource(String displayName, 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

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

Parameters:
uris -

setFilteredPrefixes

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

Parameters:
prefixes -

setFilteredNodetypes

public 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

public 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.

isFilteredResource

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

Parameters:
displayName - 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 © 2005 . All Rights Reserved.