public class ContentClassFilter extends AbstractNodeFilter
serviceRegistry
Constructor and Description |
---|
ContentClassFilter() |
ContentClassFilter(org.alfresco.service.namespace.QName... contentClasses) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(org.alfresco.service.cmr.repository.NodeRef thisNode)
Examines the supplied node and indicates whether it has been accepted by the filter.
|
void |
init() |
void |
setContentClasses(Collection<org.alfresco.service.namespace.QName> contentClasses)
Set the classes of content (types and aspects) to filter by.
|
void |
setContentClasses(org.alfresco.service.namespace.QName... contentClasses)
Set the classes of content (types and aspects) to filter by.
|
void |
setDirectOnly(boolean directOnly)
Specify whether the filter should only test against the content classes that have been supplied, or if it should
also test against all subclasses of those classes.
|
void |
setExclude(boolean exclude)
Specify whether the filter should exclude the specified classes of content.
|
setServiceRegistry
public ContentClassFilter()
public ContentClassFilter(org.alfresco.service.namespace.QName... contentClasses)
public boolean accept(org.alfresco.service.cmr.repository.NodeRef thisNode)
NodeFilter
thisNode
- NodeRefpublic void init()
init
in class AbstractNodeFilter
public void setContentClasses(Collection<org.alfresco.service.namespace.QName> contentClasses)
contentClasses
- the contentClasses to setpublic void setContentClasses(org.alfresco.service.namespace.QName... contentClasses)
contentClasses
- the contentClasses to setpublic void setExclude(boolean exclude)
exclude
- If true then this filter will not accept content that is of any of the filtered classes of content. If
false then this filter will only accept content that has one or more of the filtered classes of
content. Defaults to false.public void setDirectOnly(boolean directOnly)
directOnly
- If true then the filter only filters specifically the specified content classes. Defaults to false.Copyright © 2005–2017 Alfresco Software. All rights reserved.