Package org.alfresco.repo.node
Class ContentPropertyRestrictionInterceptor
java.lang.Object
org.alfresco.repo.node.ContentPropertyRestrictionInterceptor
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor
public class ContentPropertyRestrictionInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor
Interceptor that enforces restrictions on updates of properties of type content (cm:content and alike) on NodeService.
Can be configured by using global enabled flag -
contentPropertyRestrictions.enabled,
or comma separated white list of callers contentPropertyRestrictions.whitelist,
which can be either packages or fully qualified class names.- Author:
- Alex Mukha, David Edwards
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvoke(org.aopalliance.intercept.MethodInvocation invocation) voidsetDictionaryService(DictionaryService dictionaryService) voidsetGlobalContentPropertyRestrictions(boolean globalContentPropertyRestrictions) voidvoidsetNodeService(NodeService nodeService)
-
Constructor Details
-
ContentPropertyRestrictionInterceptor
public ContentPropertyRestrictionInterceptor()
-
-
Method Details
-
setDictionaryService
-
setGlobalContentPropertyRestrictions
public void setGlobalContentPropertyRestrictions(boolean globalContentPropertyRestrictions) -
setGlobalContentPropertyRestrictionWhiteList
-
setNodeService
-
invoke
- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
Throwable
-