public class DefaultItemFilter extends Object implements ItemFilter
DefaultItemFilter
...Constructor and Description |
---|
DefaultItemFilter() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void setFilteredURIs(String[] uris)
ItemFilter
setFilteredURIs
in interface ItemFilter
ItemFilter.setFilteredURIs(String[])
public void setFilteredPrefixes(String[] prefixes)
ItemFilter
setFilteredPrefixes
in interface ItemFilter
ItemFilter.setFilteredPrefixes(String[])
public void setFilteredNodetypes(String[] nodetypeNames)
ItemFilter
setFilteredNodetypes
in interface ItemFilter
ItemFilter.setFilteredNodetypes(String[])
public boolean isFilteredItem(Item item)
isFilteredItem
in interface ItemFilter
item
- to be testedItemFilter.isFilteredItem(Item)
public boolean isFilteredItem(String displayName, Session session)
ItemFilter
isFilteredItem
in interface ItemFilter
displayName
- to be tested for a filtered namespace prefixsession
- used for looking up namespace mappingsItemFilter.isFilteredItem(String, Session)
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.