|
|||||||||
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.
Constructor Summary | |
---|---|
BehaviourFilterImpl()
|
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. |
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 servicepublic boolean disableBehaviour(org.alfresco.service.namespace.QName className)
BehaviourFilter
The change applies ONLY to the current transaction.
disableBehaviour
in interface BehaviourFilter
className
- the type/aspect behaviour to disable
public boolean 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 disable
public void enableBehaviour(org.alfresco.service.namespace.QName className)
BehaviourFilter
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 enablepublic void enableBehaviours(org.alfresco.service.cmr.repository.NodeRef nodeRef)
BehaviourFilter
The change applies ONLY to the current transaction.
enableBehaviours
in interface BehaviourFilter
nodeRef
- the node to enable forpublic void disableAllBehaviours()
BehaviourFilter
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.
disableAllBehaviours
in interface BehaviourFilter
BehaviourFilter.enableAllBehaviours()
public void enableAllBehaviours()
BehaviourFilter
The change applies ONLY to the current transaction.
enableAllBehaviours
in interface BehaviourFilter
public 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 for
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 for
public boolean isActivated()
BehaviourFilter
The 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 |