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 QNameFilter
typesToFilter
- - original listprotected void preprocessExcludedTypes(java.util.List excludeTypeNames)
excludeTypeNames
- public boolean isExcluded(QName typeQName)
isExcluded
in interface QNameFilter
typeQName
- public void initFilter()
initFilter
in interface QNameFilter
public void setExcludedTypes(java.util.List excludedTypes)
public static java.util.List listOfHardCodedExcludedTypes()
public void setExcluded(QName typeQName, boolean excluded)
QNameFilter
setExcluded
in interface QNameFilter
typeQName
- the type to excludeCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.