Package org.alfresco.repo.node
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 java.lang.Object implements org.aopalliance.intercept.MethodInterceptorA 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 Summary
Constructors Constructor Description NodeRefPropertyMethodInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()java.lang.Objectinvoke(org.aopalliance.intercept.MethodInvocation invocation)booleanisFilterOnGet()booleanisFilterOnSet()voidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)voidsetFilterOnGet(boolean filterOnGet)voidsetFilterOnSet(boolean filterOnSet)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
-
-
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:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
java.lang.Throwable
-
-