org.xwiki.store.filesystem.internal
Interface AttachmentFileProvider

All Known Subinterfaces:
DeletedAttachmentFileProvider
All Known Implementing Classes:
DefaultAttachmentFileProvider, DefaultDeletedAttachmentFileProvider

public interface AttachmentFileProvider

A means of getting files for storing information about a given attachment.

Since:
3.0M2

Method Summary
 File getAttachmentContentFile()
           
 File getAttachmentVersionContentFile(String versionName)
          Get a uniquely named file for storing a perticular version of the attachment.
 File getAttachmentVersioningMetaFile()
          Get the meta file for the attachment.
 

Method Detail

getAttachmentContentFile

File getAttachmentContentFile()
Returns:
the File for storing the latest version of the attachment's content.

getAttachmentVersioningMetaFile

File getAttachmentVersioningMetaFile()
Get the meta file for the attachment. The meta file contains information about each version of the attachment such as who saved it.

Returns:
the File for storing meta data for each version of an attachment.

getAttachmentVersionContentFile

File getAttachmentVersionContentFile(String versionName)
Get a uniquely named file for storing a perticular version of the attachment.

Parameters:
versionName - the name of the version of the attachment eg: "1.1" or "1.2"
Returns:
the File for storing the content of a particular version of the attachment.