public class QNameFilterImpl extends java.lang.Object implements QNameFilter
WILDCARD| Constructor and Description |
|---|
QNameFilterImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection |
filterQName(java.util.Collection typesToFilter)
Filters out any QName defined in the "excludedModels" property
|
void |
initFilter() |
boolean |
isExcluded(QName typeQName)
Indicates that this QName should be excluded.
|
static java.util.List |
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(java.util.List excludeTypeNames)
Processes the user-defined list of types into valid QNames & models, it validates them
against the dictionary and also supports wildcards
|
void |
setExcluded(QName typeQName,
boolean excluded)
Exclude the type
|
void |
setExcludedTypes(java.util.List excludedTypes) |
public java.util.Collection filterQName(java.util.Collection typesToFilter)
filterQName in interface QNameFiltertypesToFilter - - original listprotected void preprocessExcludedTypes(java.util.List excludeTypeNames)
excludeTypeNames - public boolean isExcluded(QName typeQName)
isExcluded in interface QNameFiltertypeQName - public void initFilter()
initFilter in interface QNameFilterpublic void setExcludedTypes(java.util.List excludedTypes)
public static java.util.List listOfHardCodedExcludedTypes()
public void setExcluded(QName typeQName, boolean excluded)
QNameFiltersetExcluded in interface QNameFiltertypeQName - the type to excludeCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.