org.apache.jackrabbit.webdav.simple
Class DefaultItemFilter

java.lang.Object
  extended by org.apache.jackrabbit.webdav.simple.DefaultItemFilter
All Implemented Interfaces:
ItemFilter

public class DefaultItemFilter
extends Object
implements ItemFilter

DefaultItemFilter...


Constructor Summary
DefaultItemFilter()
           
 
Method Summary
 boolean isFilteredItem(Item item)
          Returns true if the given item matches either one of the namespace or of the the nodetype filters specified.
 boolean isFilteredItem(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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultItemFilter

public DefaultItemFilter()
Method Detail

setFilteredURIs

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

Specified by:
setFilteredURIs in interface ItemFilter
See Also:
ItemFilter.setFilteredURIs(String[])

setFilteredPrefixes

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

Specified by:
setFilteredPrefixes in interface ItemFilter
See Also:
ItemFilter.setFilteredPrefixes(String[])

setFilteredNodetypes

public void setFilteredNodetypes(String[] nodetypeNames)
Description copied from interface: ItemFilter
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.

Specified by:
setFilteredNodetypes in interface ItemFilter
See Also:
ItemFilter.setFilteredNodetypes(String[])

isFilteredItem

public boolean isFilteredItem(Item item)
Returns true if the given item matches either one of the namespace or of the the nodetype filters specified.

Specified by:
isFilteredItem in interface ItemFilter
Parameters:
item - to be tested
Returns:
true if the given item should be filtered.
See Also:
ItemFilter.isFilteredItem(Item)

isFilteredItem

public boolean isFilteredItem(String displayName,
                              Session session)
Description copied from interface: ItemFilter
Returns true if the resouce with the given name should be filtered.

Specified by:
isFilteredItem in interface ItemFilter
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.
See Also:
ItemFilter.isFilteredItem(String, Session)


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