Class DefaultItemFilter
- java.lang.Object
-
- org.apache.jackrabbit.webdav.simple.DefaultItemFilter
-
- All Implemented Interfaces:
ItemFilter
public class DefaultItemFilter extends Object implements ItemFilter
DefaultItemFilter...
-
-
Constructor Summary
Constructors Constructor Description DefaultItemFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisFilteredItem(String displayName, Session session)Returns true if the resouce with the given name should be filtered.booleanisFilteredItem(Item item)Returns true if the given item matches either one of the namespace or of the the nodetype filters specified.voidsetFilteredNodetypes(String[] nodetypeNames)Set the nodetype names that should be used if a given item should be filtered.voidsetFilteredPrefixes(String[] prefixes)Define the namespace prefixes that should be filtered if present in the prefix of an items name.voidsetFilteredURIs(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)
Description copied from interface:ItemFilterDefine the URIs that should be filtered out if present in the prefix of an items name.- Specified by:
setFilteredURIsin interfaceItemFilter- See Also:
ItemFilter.setFilteredURIs(String[])
-
setFilteredPrefixes
public void setFilteredPrefixes(String[] prefixes)
Description copied from interface:ItemFilterDefine the namespace prefixes that should be filtered if present in the prefix of an items name.- Specified by:
setFilteredPrefixesin interfaceItemFilter- See Also:
ItemFilter.setFilteredPrefixes(String[])
-
setFilteredNodetypes
public void setFilteredNodetypes(String[] nodetypeNames)
Description copied from interface:ItemFilterSet 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:
setFilteredNodetypesin interfaceItemFilter- 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:
isFilteredItemin interfaceItemFilter- 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:ItemFilterReturns true if the resouce with the given name should be filtered.- Specified by:
isFilteredItemin interfaceItemFilter- Parameters:
displayName- to be tested for a filtered namespace prefixsession- used for looking up namespace mappings- Returns:
- true if the given resource should be filtered.
- See Also:
ItemFilter.isFilteredItem(String, Session)
-
-