org.alfresco.repo.policy
Class BehaviourFilterImpl

java.lang.Object
  extended by org.alfresco.repo.policy.BehaviourFilterImpl
All Implemented Interfaces:
BehaviourFilter

public class BehaviourFilterImpl
extends java.lang.Object
implements BehaviourFilter

Implementation of Behaviour Filter.


Constructor Summary
BehaviourFilterImpl()
           
 
Method Summary
 boolean disableBehaviour(NodeRef nodeRef, QName className)
          Disable behaviour for specific node
 boolean disableBehaviour(QName className)
          Disable behaviour for all nodes
 void enableAllBehaviours()
          Enable all behaviours
 void enableBehaviour(NodeRef nodeRef, QName className)
          Enable behaviour for specific node
 void enableBehaviour(QName className)
          Enable behaviour for all nodes
 void enableBehaviours(NodeRef nodeRef)
          Enable all behaviours for specific node
 boolean isActivated()
          Determine if any behaviours have been disabled?
 boolean isEnabled(NodeRef nodeRef, QName className)
          Determine if behaviour is enabled for specific node.
 boolean isEnabled(QName className)
          Determine if behaviour is enabled across all nodes.
 void setDictionaryService(DictionaryService dictionaryService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BehaviourFilterImpl

public BehaviourFilterImpl()
Method Detail

setDictionaryService

public void setDictionaryService(DictionaryService dictionaryService)
Parameters:
dictionaryService - dictionary service

disableBehaviour

public boolean disableBehaviour(QName className)
Description copied from interface: BehaviourFilter
Disable behaviour for all nodes

Specified by:
disableBehaviour in interface BehaviourFilter
Parameters:
className - the type/aspect behaviour to disable
Returns:
true => already disabled

disableBehaviour

public boolean disableBehaviour(NodeRef nodeRef,
                                QName className)
Description copied from interface: BehaviourFilter
Disable behaviour for specific node

Specified by:
disableBehaviour in interface BehaviourFilter
Parameters:
nodeRef - the node to disable for
className - the type/aspect behaviour to disable
Returns:
true => already disabled

enableBehaviour

public void enableBehaviour(QName className)
Description copied from interface: BehaviourFilter
Enable behaviour for all nodes

Specified by:
enableBehaviour in interface BehaviourFilter
Parameters:
className - the type/aspect behaviour to enable

enableBehaviour

public void enableBehaviour(NodeRef nodeRef,
                            QName className)
Description copied from interface: BehaviourFilter
Enable behaviour for specific node

Specified by:
enableBehaviour in interface BehaviourFilter
Parameters:
nodeRef - the node to enable for
className - the type/aspect behaviour to enable

enableBehaviours

public void enableBehaviours(NodeRef nodeRef)
Description copied from interface: BehaviourFilter
Enable all behaviours for specific node

Specified by:
enableBehaviours in interface BehaviourFilter
Parameters:
nodeRef - the node to enable for

enableAllBehaviours

public void enableAllBehaviours()
Description copied from interface: BehaviourFilter
Enable all behaviours

Specified by:
enableAllBehaviours in interface BehaviourFilter

isEnabled

public boolean isEnabled(NodeRef nodeRef,
                         QName className)
Description copied from interface: BehaviourFilter
Determine if behaviour is enabled for specific node. Note: A node behaviour is enabled only when: a) the behaviour is not disabled across all nodes b) the behaviour is not disabled specifically for the provided node

Specified by:
isEnabled in interface BehaviourFilter
Parameters:
nodeRef - the node to test for
className - the behaviour to test for
Returns:
true => behaviour is enabled

isEnabled

public boolean isEnabled(QName className)
Description copied from interface: BehaviourFilter
Determine if behaviour is enabled across all nodes.

Specified by:
isEnabled in interface BehaviourFilter
Parameters:
className - the behaviour to test for
Returns:
true => behaviour is enabled

isActivated

public boolean isActivated()
Description copied from interface: BehaviourFilter
Determine if any behaviours have been disabled?

Specified by:
isActivated in interface BehaviourFilter
Returns:
true => behaviours have been filtered


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