|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.platform.filemanager.service.extension.AbstractPlugin
public abstract class AbstractPlugin
Plugin abstract class.
Default plugin behavior.
Plugin,
Serialized Form| Field Summary | |
|---|---|
protected FileManagerService |
fileManagerService
|
protected List<String> |
filters
|
protected String |
name
|
protected List<Pattern> |
patterns
|
| Constructor Summary | |
|---|---|
AbstractPlugin()
|
|
| Method Summary | |
|---|---|
DocumentModel |
create(CoreSession documentManager,
File file,
String path,
boolean overwrite,
String mimeType,
TypeManager typService)
|
FileManagerService |
getFileManagerService()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.nuxeo.ecm.platform.filemanager.service.extension.Plugin |
|---|
create |
| Field Detail |
|---|
protected String name
protected List<String> filters
protected List<Pattern> patterns
protected FileManagerService fileManagerService
| Constructor Detail |
|---|
public AbstractPlugin()
| Method Detail |
|---|
public List<String> getFilters()
PluginThe filters are all the mime/type this plugin can deal with.
getFilters in interface Pluginpublic void setFilters(List<String> filters)
PluginThe filters are all the mime/types this plugin can deal with.
setFilters in interface Pluginfilters - a list of strings representing each filterpublic boolean matches(String mimeType)
Plugin
matches in interface PluginmimeType - the mimetype to testpublic String getName()
Plugin
getName in interface Pluginpublic void setName(String name)
Plugin
setName in interface Pluginname - a string holding the name
public DocumentModel create(CoreSession documentManager,
File file,
String path,
boolean overwrite,
String mimeType,
TypeManager typService)
public FileManagerService getFileManagerService()
public void setFileManagerService(FileManagerService fileManagerService)
Plugin
setFileManagerService in interface PluginfileManagerService - instance where the Plugin is registered as a
contribution
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||