Class 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.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 Detail

      • ContentPropertyRestrictionInterceptor

        public ContentPropertyRestrictionInterceptor()
    • 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:
        invoke in interface org.aopalliance.intercept.MethodInterceptor
        Throws:
        java.lang.Throwable