Class NodeTypeFilter
- java.lang.Object
-
- org.alfresco.repo.web.scripts.archive.NodeTypeFilter
-
- All Implemented Interfaces:
ArchivedNodesFilter
public class NodeTypeFilter extends Object implements ArchivedNodesFilter
This class is used to filter nodes based on node type.- Since:
- 3.5
- Author:
- Neil McErlean
-
-
Constructor Summary
Constructors Constructor Description NodeTypeFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(org.alfresco.service.cmr.repository.NodeRef nodeRef)This method checks whether or not the specifiedNodeRefshould be included, as defined by the concrete filter implementation.voidsetExcludedTypes(List<String> excludedTypesStg)Sets the List of node types to exclude.voidsetNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)This method sets the NamespaceService object.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)This method sets the NodeService object.
-
-
-
Method Detail
-
setNamespaceService
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
This method sets the NamespaceService object.- Parameters:
namespaceService- the namespaceService.
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
This method sets the NodeService object.- Parameters:
nodeService- the node service.
-
setExcludedTypes
public void setExcludedTypes(List<String> excludedTypesStg)
Sets the List of node types to exclude. These node types should be in the short form e.g. cm:myType.- Parameters:
excludedTypesStg- a List of node types which are to be excluded.
-
accept
public boolean accept(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Description copied from interface:ArchivedNodesFilterThis method checks whether or not the specifiedNodeRefshould be included, as defined by the concrete filter implementation.- Specified by:
acceptin interfaceArchivedNodesFilter- Parameters:
nodeRef- the NodeRef to be checked for filtering.- Returns:
trueif theNodeRefis acceptable, elsefalse.
-
-