- Type Parameters:
E -
- All Implemented Interfaces:
- Mapper<E>
public class MolgenisFileDecorator<E extends MolgenisFile>
extends MapperDecorator<E>
Generic decorator for MOLGENIS files. These files are coupled to entities and stored in a user defined, verified
place. The 'FileType' denotes the final placement folder. So for example, the storage location has been set to
'/data/xgap', the deploy name is 'tomatodb', and an image is uploaded; it is stored as /data/xgap/tomatodb/myImg'.
Note that the extension is stripped off the filename. This is stored as part of the MolgenisFile object, and used to
serve out the file with the correct MIME type, obtained at runtime.
- Author:
- joerivandervelde