|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BehaviourFilter
Contract disabling and enabling policy behaviours.
Method Summary | |
---|---|
void |
disableAllBehaviours()
Disable all behaviours. |
boolean |
disableBehaviour(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName className)
Disable behaviour for specific node |
boolean |
disableBehaviour(org.alfresco.service.namespace.QName className)
Disable behaviour for a type or aspect for all nodes. |
void |
enableAllBehaviours()
Enable all behaviours i.e. |
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)
Enable all behaviours for specific node |
boolean |
isActivated()
Determine if any behaviours have been disabled? |
boolean |
isEnabled(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName className)
Determine if behaviour is enabled for specific node. |
boolean |
isEnabled(org.alfresco.service.namespace.QName className)
Determine if behaviour is enabled across all nodes. |
Method Detail |
---|
boolean disableBehaviour(org.alfresco.service.namespace.QName className)
The change applies ONLY to the current transaction.
className
- the type/aspect behaviour to disable
boolean disableBehaviour(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName className)
The change applies ONLY to the current transaction.
nodeRef
- the node to disable forclassName
- the type/aspect behaviour to disable
void enableBehaviour(org.alfresco.service.namespace.QName className)
The change applies ONLY to the current transaction.
className
- the type/aspect behaviour to enablevoid enableBehaviour(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName className)
The change applies ONLY to the current transaction.
nodeRef
- the node to enable forclassName
- the type/aspect behaviour to enablevoid enableBehaviours(org.alfresco.service.cmr.repository.NodeRef nodeRef)
The change applies ONLY to the current transaction.
nodeRef
- the node to enable forvoid disableAllBehaviours()
Calling this method may result in nodes existing in your repository that do not conform to your policies.
The change applies ONLY to the current transaction.
BehaviourFilter.enableAllBehaviours()
void enableAllBehaviours()
The change applies ONLY to the current transaction.
boolean isEnabled(org.alfresco.service.namespace.QName className)
The change applies ONLY to the current transaction.
className
- the behaviour to test for
boolean isEnabled(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.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 for
boolean isActivated()
The change applies ONLY to the current transaction.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |