|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Plugin
FileManagerServiceCommon plugin default interface.
Responsible for converting given sources to a given type of Document using default.
| Method Summary | |
|---|---|
DocumentModel |
create(CoreSession documentManager,
Blob content,
String path,
boolean overwrite,
String filename,
TypeManager typeService)
Creates the document. |
List<String> |
getFilters()
Gets filters. |
String |
getName()
Gets the plugin name. |
boolean |
matches(String mimeType)
Tests whether plugin is suitable for the given mimetype. |
void |
setFileManagerService(FileManagerService fileManagerService)
Embed a reference to the holding FileManagerService instance to be able to reuse generic file creation utility methods in specific plugin implementations |
void |
setFilters(List<String> filters)
Sets filters. |
void |
setName(String name)
Sets plugin name. |
| Method Detail |
|---|
String getName()
List<String> getFilters()
The filters are all the mime/type this plugin can deal with.
void setName(String name)
name - a string holding the namevoid setFilters(List<String> filters)
The filters are all the mime/types this plugin can deal with.
filters - a list of strings representing each filtervoid setFileManagerService(FileManagerService fileManagerService)
fileManagerService - instance where the Plugin is registered as a
contributionboolean matches(String mimeType)
mimeType - the mimetype to test
DocumentModel create(CoreSession documentManager,
Blob content,
String path,
boolean overwrite,
String filename,
TypeManager typeService)
throws ClientException,
IOException
documentManager - the manager used to create the Documentcontent - the content of the Filepath - the path were to create the documentoverwrite - a boolean deciding whether to create or update if we
find a document with the same fileNamefilename - the filename of the File
ClientException
IOException
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||