public class LockableAspectInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor
There is no need for this interceptor to worry about setProperty, removeProperty, setProperties, addProperties since if a service other than the lock service attempts to set cm:lockable properties when it is already locked, the beforeUpdateNode node service policy will disallow the update anyway.
| Constructor and Description |
|---|
LockableAspectInterceptor()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disableForThread()
Disables the interceptor for the current thread.
|
void |
enableForThread()
Enables the interceptor for the current thread.
|
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
void |
setAuthenticationService(AuthenticationService authenticationService) |
void |
setLockStore(LockStore lockStore) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
public LockableAspectInterceptor()
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws java.lang.Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorjava.lang.Throwablepublic void enableForThread()
disabled thread.public void disableForThread()
LockableAspectInterceptor.enableForThread().public void setLockStore(LockStore lockStore)
public void setAuthenticationService(AuthenticationService authenticationService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.