info.magnolia.module.files
Class ModuleFileExtractorTransformer

java.lang.Object
  extended by info.magnolia.module.files.ModuleFileExtractorTransformer
All Implemented Interfaces:
FileExtractor.Transformer

public class ModuleFileExtractorTransformer
extends Object
implements FileExtractor.Transformer

A FileExtractor.Transformer which accepts files with paths like /mgnl-files/.../moduleName/... and stores them in ${magnolia.app.rootdir}/.../moduleName/...

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Constructor Summary
ModuleFileExtractorTransformer(String moduleName)
           
 
Method Summary
 String accept(String resourcePath)
          A filter in the same vein as java.io.FileFilter and such, except this returns the (absolute) targetPath of a file to be extracted, or null if the file should not be extracted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleFileExtractorTransformer

public ModuleFileExtractorTransformer(String moduleName)
Method Detail

accept

public String accept(String resourcePath)
Description copied from interface: FileExtractor.Transformer
A filter in the same vein as java.io.FileFilter and such, except this returns the (absolute) targetPath of a file to be extracted, or null if the file should not be extracted.

Specified by:
accept in interface FileExtractor.Transformer


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.