Class NodeTypeFilter
java.lang.Object
org.alfresco.repo.web.scripts.archive.NodeTypeFilter
- All Implemented Interfaces:
ArchivedNodesFilter
This class is used to filter nodes based on node type.
- Since:
- 3.5
- Author:
- Neil McErlean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method checks whether or not the specifiedNodeRef
should be included, as defined by the concrete filter implementation.void
setExcludedTypes
(List<String> excludedTypesStg) Sets the List of node types to exclude.void
setNamespaceService
(org.alfresco.service.namespace.NamespaceService namespaceService) This method sets the NamespaceService object.void
setNodeService
(NodeService nodeService) This method sets the NodeService object.
-
Constructor Details
-
NodeTypeFilter
public NodeTypeFilter()
-
-
Method Details
-
setNamespaceService
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) This method sets the NamespaceService object.- Parameters:
namespaceService
- the namespaceService.
-
setNodeService
This method sets the NodeService object.- Parameters:
nodeService
- the node service.
-
setExcludedTypes
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
Description copied from interface:ArchivedNodesFilter
This method checks whether or not the specifiedNodeRef
should be included, as defined by the concrete filter implementation.- Specified by:
accept
in interfaceArchivedNodesFilter
- Parameters:
nodeRef
- the NodeRef to be checked for filtering.- Returns:
true
if theNodeRef
is acceptable, elsefalse
.
-