public class BehaviourFilterImpl extends Object implements BehaviourFilter
Constructor and Description |
---|
BehaviourFilterImpl() |
Modifier and Type | Method and Description |
---|---|
void |
disableAllBehaviours()
Deprecated.
|
void |
disableBehaviour()
Disable behaviour for all types
|
void |
disableBehaviour(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Disable all behaviours for a given node
|
void |
disableBehaviour(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName className)
Disable behaviour for specific node and class
|
void |
disableBehaviour(org.alfresco.service.namespace.QName className)
Disable behaviour for a type or aspect for all nodes.
|
void |
disableBehaviour(org.alfresco.service.namespace.QName className,
boolean includeSubClasses)
Disable behaviour for a type or aspect for all nodes.
|
void |
enableAllBehaviours()
Deprecated.
|
void |
enableBehaviour()
Enable behaviours for all classes.
|
void |
enableBehaviour(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Enable behaviour for a specific node
|
void |
enableBehaviour(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName className)
Enable behaviour for specific node
|
void |
enableBehaviour(org.alfresco.service.namespace.QName className)
Enable behaviour for all nodes
This is also applied to the to the disabled behaviours with BehaviourFilter.disableBehaviour(QName, boolean) |
void |
enableBehaviours(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Deprecated.
|
boolean |
isActivated()
Determine if any behaviours have been disabled or altered.
|
boolean |
isEnabled()
Determine if behaviour is globally enabled.
|
boolean |
isEnabled(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Determine if behaviour is enabled for a specific node.
|
boolean |
isEnabled(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName className)
Determine if behaviour is enabled for specific node and class.
|
boolean |
isEnabled(org.alfresco.service.namespace.QName className)
Determine if behaviour is enabled for a class.
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService
- dictionary servicepublic void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
tenantService
- dictionary service@Deprecated public void enableBehaviours(org.alfresco.service.cmr.repository.NodeRef nodeRef)
enableBehaviours
in interface BehaviourFilter
@Deprecated public void disableAllBehaviours()
disableAllBehaviours
in interface BehaviourFilter
@Deprecated public void enableAllBehaviours()
enableAllBehaviours
in interface BehaviourFilter
public void disableBehaviour()
BehaviourFilter
The change applies ONLY to the current transaction.
disableBehaviour
in interface BehaviourFilter
public void disableBehaviour(org.alfresco.service.namespace.QName className)
BehaviourFilter
BehaviourFilter.disableBehaviour(QName, boolean)
with false
The change applies ONLY to the current transaction.
disableBehaviour
in interface BehaviourFilter
className
- the type/aspect behaviour to disablepublic void disableBehaviour(org.alfresco.service.namespace.QName className, boolean includeSubClasses)
BehaviourFilter
disableBehaviour
in interface BehaviourFilter
className
- the type/aspect behaviour to disableincludeSubClasses
- set to true
to disable the behaviours of subclassespublic void disableBehaviour(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName className)
BehaviourFilter
The change applies ONLY to the current transaction.
disableBehaviour
in interface BehaviourFilter
nodeRef
- the node to disable forclassName
- the type/aspect behaviour to disablepublic void disableBehaviour(org.alfresco.service.cmr.repository.NodeRef nodeRef)
BehaviourFilter
disableBehaviour
in interface BehaviourFilter
nodeRef
- the node to disable forpublic void enableBehaviour()
BehaviourFilter
The change applies ONLY to the current transaction.
enableBehaviour
in interface BehaviourFilter
public void enableBehaviour(org.alfresco.service.namespace.QName className)
BehaviourFilter
BehaviourFilter.disableBehaviour(QName, boolean)
The change applies ONLY to the current transaction.
enableBehaviour
in interface BehaviourFilter
className
- the type/aspect behaviour to enablepublic void enableBehaviour(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName className)
BehaviourFilter
The change applies ONLY to the current transaction.
enableBehaviour
in interface BehaviourFilter
nodeRef
- the node to enable forclassName
- the type/aspect behaviour to enable or null for all classespublic void enableBehaviour(org.alfresco.service.cmr.repository.NodeRef nodeRef)
BehaviourFilter
The change applies ONLY to the current transaction.
enableBehaviour
in interface BehaviourFilter
nodeRef
- the node to enable forpublic boolean isEnabled()
BehaviourFilter
The change applies ONLY to the current transaction.
isEnabled
in interface BehaviourFilter
public boolean isEnabled(org.alfresco.service.namespace.QName className)
BehaviourFilter
The change applies ONLY to the current transaction.
isEnabled
in interface BehaviourFilter
className
- the behaviour to test forpublic boolean isEnabled(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName className)
BehaviourFilter
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.
isEnabled
in interface BehaviourFilter
nodeRef
- the node to test forclassName
- the behaviour to test forpublic boolean isEnabled(org.alfresco.service.cmr.repository.NodeRef nodeRef)
BehaviourFilter
The change applies ONLY to the current transaction.
isEnabled
in interface BehaviourFilter
nodeRef
- the node to test forpublic boolean isActivated()
BehaviourFilter
The change applies ONLY to the current transaction.
isActivated
in interface BehaviourFilter
Copyright © 2005–2017 Alfresco Software. All rights reserved.