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

      • ContentPropertyRestrictionInterceptor

        public ContentPropertyRestrictionInterceptor()
    • Method Detail

      • setDictionaryService

        public void setDictionaryService​(DictionaryService dictionaryService)
      • setGlobalContentPropertyRestrictions

        public void setGlobalContentPropertyRestrictions​(boolean globalContentPropertyRestrictions)
      • setGlobalContentPropertyRestrictionWhiteList

        public void setGlobalContentPropertyRestrictionWhiteList​(String whitelist)
      • setNodeService

        public void setNodeService​(NodeService nodeService)
      • invoke

        public Object invoke​(org.aopalliance.intercept.MethodInvocation invocation)
                      throws Throwable
        Specified by:
        invoke in interface org.aopalliance.intercept.MethodInterceptor
        Throws:
        Throwable