public class TagScopePropertyMethodInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor
TagScopePropertyMethodInterceptor.setEnabled(Boolean) method. It is enabled by default. When enabled,
a call to getProperties
for a node that has a cm:tagScopeCache property will include the calculated cm:tagScopeSummary property. A call to
getProperty specifying cm:tagScopeSummary as the property name will return the calculated property value or null
if the node has no cm:tagScopeCache property value.| Constructor and Description |
|---|
TagScopePropertyMethodInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Boolean |
getEnabled() |
protected java.util.List |
getTagSummary(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Map allNodeProperties)
Given a NodeRef and, optionally, the property map of that node, this operation establishes whether
the node is a TagScope node, and returns the appropriate value of the cm:tagScopeSummary property.
|
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
void |
setCache(org.alfresco.repo.cache.SimpleCache cache) |
void |
setContentService(ContentService contentService) |
static java.lang.Boolean |
setEnabled(java.lang.Boolean enable)
Allows the functionality of this interceptor to be enabled and disabled on a thread-by-thread basis.
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
public void setContentService(ContentService contentService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setCache(org.alfresco.repo.cache.SimpleCache cache)
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws java.lang.Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorjava.lang.Throwableprotected java.util.List getTagSummary(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Map allNodeProperties)
nodeRef - allNodeProperties - Optional. If the caller has a current property map for the node being queried
then supplying it here saves a little time. This argument is allowed to be null.public static final java.lang.Boolean getEnabled()
public static final java.lang.Boolean setEnabled(java.lang.Boolean enable)
enable - Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.