Class FilenameFilteringInterceptor
- java.lang.Object
-
- org.alfresco.repo.model.filefolder.FilenameFilteringInterceptor
-
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor
public class FilenameFilteringInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor
An interceptor that intercepts FileFolderService methods, ensuring system, temporary and hidden files and paths are marked with the correct aspects.- Author:
- alex.mukha
-
-
Constructor Summary
Constructors Constructor Description FilenameFilteringInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileFilterMode.ClientgetClient()ContentServicegetContentService()FileFilterMode.ModegetMode()Objectinvoke(org.aopalliance.intercept.MethodInvocation invocation)voidsetContentService(ContentService contentService)voidsetEnabled(boolean enabled)voidsetHiddenAspect(HiddenAspect hiddenAspect)voidsetNodeService(NodeService nodeService)voidsetPermissionService(PermissionService permissionService)voidsetSystemPaths(PatternFilter systemPaths)A list of regular expressions that represent patterns of system paths.voidsetTemporaryFiles(PatternFilter temporaryFiles)A list of regular expressions that represent patterns of temporary files.
-
-
-
Method Detail
-
setTemporaryFiles
public void setTemporaryFiles(PatternFilter temporaryFiles)
A list of regular expressions that represent patterns of temporary files.
-
setHiddenAspect
public void setHiddenAspect(HiddenAspect hiddenAspect)
-
setEnabled
public void setEnabled(boolean enabled)
-
setSystemPaths
public void setSystemPaths(PatternFilter systemPaths)
A list of regular expressions that represent patterns of system paths.
-
getMode
public FileFilterMode.Mode getMode()
-
getClient
public FileFilterMode.Client getClient()
-
setNodeService
public void setNodeService(NodeService nodeService)
- Parameters:
nodeService- the service to use to apply the sys:temporary aspect
-
setPermissionService
public void setPermissionService(PermissionService permissionService)
-
setContentService
public void setContentService(ContentService contentService)
-
getContentService
public ContentService getContentService()
-
-