public class QNameFilterImpl extends Object implements QNameFilter
WILDCARD
Constructor and Description |
---|
QNameFilterImpl() |
Modifier and Type | Method and Description |
---|---|
Collection<QName> |
filterQName(Collection<QName> typesToFilter)
Filters out any QName defined in the "excludedModels" property
|
void |
initFilter() |
boolean |
isExcluded(QName typeQName)
Indicates that this QName should be excluded.
|
static List<String> |
listOfHardCodedExcludedTypes()
I don't like hard code values, but have been persuaded its less pain
than having to keep a config file in sync with both sides of SOLR.
|
protected void |
preprocessExcludedTypes(List<String> excludeTypeNames)
Processes the user-defined list of types into valid QNames and models, it validates them
against the dictionary and also supports wildcards
|
void |
setExcluded(QName typeQName,
boolean excluded)
Exclude the type
|
void |
setExcludedTypes(List<String> excludedTypes) |
public Collection<QName> filterQName(Collection<QName> typesToFilter)
filterQName
in interface QNameFilter
typesToFilter
- - original listprotected void preprocessExcludedTypes(List<String> excludeTypeNames)
public boolean isExcluded(QName typeQName)
isExcluded
in interface QNameFilter
typeQName
- QNamepublic void initFilter()
initFilter
in interface QNameFilter
public static List<String> listOfHardCodedExcludedTypes()
public void setExcluded(QName typeQName, boolean excluded)
QNameFilter
setExcluded
in interface QNameFilter
typeQName
- the type to excludeCopyright © 2005–2020 Alfresco Software. All rights reserved.