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 java.lang.Object implements org.aopalliance.intercept.MethodInterceptorInterceptor 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 callerscontentPropertyRestrictions.whitelist, which can be either packages or fully qualified class names.- Author:
- Alex Mukha, David Edwards
-
-
Constructor Summary
Constructors Constructor Description ContentPropertyRestrictionInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectinvoke(org.aopalliance.intercept.MethodInvocation invocation)voidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)voidsetGlobalContentPropertyRestrictions(boolean globalContentPropertyRestrictions)voidsetGlobalContentPropertyRestrictionWhiteList(java.lang.String whitelist)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
-
-
Method Detail
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
-
setGlobalContentPropertyRestrictions
public void setGlobalContentPropertyRestrictions(boolean globalContentPropertyRestrictions)
-
setGlobalContentPropertyRestrictionWhiteList
public void setGlobalContentPropertyRestrictionWhiteList(java.lang.String whitelist)
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws java.lang.Throwable- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
java.lang.Throwable
-
-