|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.policy.BehaviourFilterImpl
public class BehaviourFilterImpl
Implementation of Behaviour Filter. All methods operate on transactionally-bound resources. Behaviour will therefore never span transactions; the filter state has the same lifespan as the transaction in which it was created.
Multitenancy and disabling by NodeRef:
| Constructor Summary | |
|---|---|
BehaviourFilterImpl()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BehaviourFilterImpl()
| Method Detail |
|---|
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 disable
public 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)
BehaviourFilter
disableBehaviour 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 enable
public 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 for
public 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 for
public 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 for
public boolean isActivated()
BehaviourFilterThe change applies ONLY to the current transaction.
isActivated in interface BehaviourFilter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||