|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileImporter
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. |
Integer |
getOrder()
Returns the plugin order for sorting. |
boolean |
isEnabled()
|
boolean |
matches(String mimeType)
Tests whether plugin is suitable for the given mimetype. |
void |
setEnabled(boolean enabled)
|
void |
setFileManagerService(FileManagerService fileManagerService)
Embeds 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. |
void |
setOrder(Integer order)
Sets the plugin order for sorting. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
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 testDocumentModel 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 of current 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
boolean isEnabled()
void setEnabled(boolean enabled)
Integer getOrder()
void setOrder(Integer order)
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |