public class BehaviourFilterImpl extends java.lang.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 |
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
|
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 BehaviourFilterpublic void disableBehaviour()
BehaviourFilterThe change applies ONLY to the current transaction.
disableBehaviour in interface BehaviourFilterpublic void disableBehaviour(org.alfresco.service.namespace.QName className)
BehaviourFilterThe change applies ONLY to the current transaction.
disableBehaviour in interface BehaviourFilterclassName - the type/aspect behaviour to disablepublic void disableBehaviour(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName className)
BehaviourFilterThe change applies ONLY to the current transaction.
disableBehaviour in interface BehaviourFilternodeRef - the node to disable forclassName - the type/aspect behaviour to disablepublic void disableBehaviour(org.alfresco.service.cmr.repository.NodeRef nodeRef)
BehaviourFilterdisableBehaviour in interface BehaviourFilternodeRef - the node to disable forpublic void enableBehaviour()
BehaviourFilterThe change applies ONLY to the current transaction.
enableBehaviour in interface BehaviourFilterpublic void enableBehaviour(org.alfresco.service.namespace.QName className)
BehaviourFilterThe change applies ONLY to the current transaction.
enableBehaviour in interface BehaviourFilterclassName - the type/aspect behaviour to enablepublic void enableBehaviour(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName className)
BehaviourFilterThe change applies ONLY to the current transaction.
enableBehaviour in interface BehaviourFilternodeRef - 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)
BehaviourFilterThe change applies ONLY to the current transaction.
enableBehaviour in interface BehaviourFilternodeRef - the node to enable forpublic boolean isEnabled()
BehaviourFilterThe change applies ONLY to the current transaction.
isEnabled in interface BehaviourFilterpublic boolean isEnabled(org.alfresco.service.namespace.QName className)
BehaviourFilterThe change applies ONLY to the current transaction.
isEnabled in interface BehaviourFilterclassName - the behaviour to test forpublic boolean isEnabled(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName className)
BehaviourFilterNote: 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 BehaviourFilternodeRef - the node to test forclassName - the behaviour to test forpublic boolean isEnabled(org.alfresco.service.cmr.repository.NodeRef nodeRef)
BehaviourFilterThe change applies ONLY to the current transaction.
isEnabled in interface BehaviourFilternodeRef - the node to test forpublic boolean isActivated()
BehaviourFilterThe change applies ONLY to the current transaction.
isActivated in interface BehaviourFilterCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.