org.alfresco.repo.model.filefolder
Class TempFileMarkerInterceptor
java.lang.Object
org.alfresco.repo.model.filefolder.TempFileMarkerInterceptor
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
public class TempFileMarkerInterceptor
- extends java.lang.Object
- implements org.aopalliance.intercept.MethodInterceptor
An interceptor for the FileFolderService
that marks files or folders with the sys:temporary aspect depending on the
name pattern provided
.
Method Summary |
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation)
Handles rename, move, copy |
void |
setFilterRegularExpressions(java.util.List regexps)
A list of regular expressions that represent patterns of temporary files. |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TempFileMarkerInterceptor
public TempFileMarkerInterceptor()
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
- Parameters:
nodeService
- the service to use to apply the sys:temporary aspect
setFilterRegularExpressions
public void setFilterRegularExpressions(java.util.List regexps)
- A list of regular expressions that represent patterns of temporary files.
- Parameters:
regexps
- list of regular expressions- See Also:
String.matches(java.lang.String)
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws java.lang.Throwable
- Handles rename, move, copy
- Specified by:
invoke
in interface org.aopalliance.intercept.MethodInterceptor
- Throws:
java.lang.Throwable
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.