org.alfresco.repo.web.scripts.archive
Class NodeTypeFilter

java.lang.Object
  extended by org.alfresco.repo.web.scripts.archive.NodeTypeFilter
All Implemented Interfaces:
ArchivedNodesFilter

public class NodeTypeFilter
extends java.lang.Object
implements ArchivedNodesFilter

This class is used to filter nodes based on node type.

Since:
3.5

Constructor Summary
NodeTypeFilter()
           
 
Method Summary
 boolean accept(org.alfresco.service.cmr.repository.NodeRef nodeRef)
          This method checks whether or not the specified NodeRef should be included, as defined by the concrete filter implementation.
 void setExcludedTypes(java.util.List 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(org.alfresco.service.cmr.repository.NodeService nodeService)
          This method sets the NodeService object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeTypeFilter

public NodeTypeFilter()
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(java.util.List 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: ArchivedNodesFilter
This method checks whether or not the specified NodeRef should be included, as defined by the concrete filter implementation.

Specified by:
accept in interface ArchivedNodesFilter
Parameters:
nodeRef - the NodeRef to be checked for filtering.
Returns:
true if the NodeRef is acceptable, else false.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.