Class NodeRefPropertyMethodInterceptor

java.lang.Object
org.alfresco.repo.node.NodeRefPropertyMethodInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class NodeRefPropertyMethodInterceptor extends 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 Details

    • NodeRefPropertyMethodInterceptor

      public NodeRefPropertyMethodInterceptor()
  • Method Details

    • isFilterOnGet

      public boolean isFilterOnGet()
    • setFilterOnGet

      public void setFilterOnGet(boolean filterOnGet)
    • isFilterOnSet

      public boolean isFilterOnSet()
    • setFilterOnSet

      public void setFilterOnSet(boolean filterOnSet)
    • setDictionaryService

      public void setDictionaryService(DictionaryService dictionaryService)
    • setNodeService

      public void setNodeService(NodeService nodeService)
    • init

      public void init()
    • invoke

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