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 boolean
isFilteredItem(String displayName, Session session)
Returns true if the resouce with the given name should be filtered.boolean
isFilteredItem(Item item)
Returns true if the given item matches either one of the namespace or of the the nodetype filters specified.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)
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 interfaceItemFilter
- 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 interfaceItemFilter
- 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 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:
isFilteredItem
in 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:ItemFilter
Returns true if the resouce with the given name should be filtered.- Specified by:
isFilteredItem
in 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)
-
-