Class NodeRefPropertyMethodInterceptor

  • All Implemented Interfaces:
    org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

    public class NodeRefPropertyMethodInterceptor
    extends java.lang.Object
    implements org.aopalliance.intercept.MethodInterceptor
    A method interceptor to clean up node ref properties as they are passed in and out of the node service. For getProperty and getProperies calls invalid node refs are removed from the returned set (they appear to have be cleaned up). For setProperty and setProperties calls invalid node refs are removed and thus not set. It only considers properties of type d:noderef.
    Author:
    andyh
    • Constructor Detail

      • NodeRefPropertyMethodInterceptor

        public NodeRefPropertyMethodInterceptor()
    • Method Detail

      • isFilterOnGet

        public boolean isFilterOnGet()
      • setFilterOnGet

        public void setFilterOnGet​(boolean filterOnGet)
      • isFilterOnSet

        public boolean isFilterOnSet()
      • setFilterOnSet

        public void setFilterOnSet​(boolean filterOnSet)
      • setDictionaryService

        public void setDictionaryService​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
      • init

        public void init()
      • 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