@AlfrescoPublicApi public interface BehaviourFilter
behaviourFilter.disableBehaviour(abc);
try
{
behaviourFilter.disableBehaviour(abc);
try
{
// Do something that might have triggered 'abc' but will not
}
finally
{
behaviourFilter.enableBehaviour(abc);
}
// Do something that might have triggered 'abc' but will not despite the last enable call
}
finally
{
behaviourFilter.enableBehaviour(abc);
}
PolicyComponent| Modifier and Type | Method and Description |
|---|---|
void |
disableAllBehaviours()
Deprecated.
Since 4.0 use
enableBehaviour(NodeRef) |
void |
disableBehaviour()
Disable behaviour for all types
|
void |
disableBehaviour(NodeRef nodeRef)
Disable all behaviours for a given node
|
void |
disableBehaviour(NodeRef nodeRef,
QName className)
Disable behaviour for specific node and class
|
void |
disableBehaviour(QName className)
Disable behaviour for a type or aspect for all nodes.
|
void |
disableBehaviour(QName className,
boolean includeSubClasses)
Disable behaviour for a type or aspect for all nodes.
|
void |
enableAllBehaviours()
Deprecated.
Since 4.0 use
disableBehaviour() |
void |
enableBehaviour()
Enable behaviours for all classes.
|
void |
enableBehaviour(NodeRef nodeRef)
Enable behaviour for a specific node
|
void |
enableBehaviour(NodeRef nodeRef,
QName className)
Enable behaviour for specific node
|
void |
enableBehaviour(QName className)
Enable behaviour for all nodes
This is also applied to the to the disabled behaviours with disableBehaviour(QName, boolean) |
void |
enableBehaviours(NodeRef nodeRef)
Deprecated.
Since 4.0 use
enableBehaviour(NodeRef) |
boolean |
isActivated()
Determine if any behaviours have been disabled or altered.
|
boolean |
isEnabled()
Determine if behaviour is globally enabled.
|
boolean |
isEnabled(NodeRef nodeRef)
Determine if behaviour is enabled for a specific node.
|
boolean |
isEnabled(NodeRef nodeRef,
QName className)
Determine if behaviour is enabled for specific node and class.
|
boolean |
isEnabled(QName className)
Determine if behaviour is enabled for a class.
|
void enableBehaviours(NodeRef nodeRef)
enableBehaviour(NodeRef)void disableAllBehaviours()
enableBehaviour(NodeRef)void enableAllBehaviours()
disableBehaviour()void disableBehaviour()
The change applies ONLY to the current transaction.
void disableBehaviour(QName className)
disableBehaviour(QName, boolean) with false
The change applies ONLY to the current transaction.
className - the type/aspect behaviour to disablevoid disableBehaviour(QName className, boolean includeSubClasses)
className - the type/aspect behaviour to disableincludeSubClasses - set to true to disable the behaviours of subclassesvoid disableBehaviour(NodeRef nodeRef, QName className)
The change applies ONLY to the current transaction.
nodeRef - the node to disable forclassName - the type/aspect behaviour to disablevoid disableBehaviour(NodeRef nodeRef)
nodeRef - the node to disable forvoid enableBehaviour()
The change applies ONLY to the current transaction.
void enableBehaviour(QName className)
disableBehaviour(QName, boolean)
The change applies ONLY to the current transaction.
className - the type/aspect behaviour to enablevoid enableBehaviour(NodeRef nodeRef, QName className)
The change applies ONLY to the current transaction.
nodeRef - the node to enable forclassName - the type/aspect behaviour to enable or null for all classesvoid enableBehaviour(NodeRef nodeRef)
The change applies ONLY to the current transaction.
nodeRef - the node to enable forboolean isEnabled()
The change applies ONLY to the current transaction.
boolean isEnabled(QName className)
The change applies ONLY to the current transaction.
className - the behaviour to test forboolean isEnabled(NodeRef nodeRef, QName className)
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
The change applies ONLY to the current transaction.
nodeRef - the node to test forclassName - the behaviour to test forboolean isEnabled(NodeRef nodeRef)
The change applies ONLY to the current transaction.
nodeRef - the node to test forboolean isActivated()
The change applies ONLY to the current transaction.
Copyright © 2005–2020 Alfresco Software. All rights reserved.