Package com.logicaldoc.util.plugin
Class LogicalDOCPlugin
- java.lang.Object
-
- org.java.plugin.Plugin
-
- com.logicaldoc.util.plugin.LogicalDOCPlugin
-
- Direct Known Subclasses:
CmisPlugin,CorePlugin,DropboxPlugin,WebDAVPlugin,WebserviceDocPlugin,WebservicePlugin
public abstract class LogicalDOCPlugin extends org.java.plugin.PluginThis is the base class for LogicalDOC plugins. The methods of this class are automatically invoked by the manager during plug-in life cycle management (activation and deactivation). In addition, this class makes available methods to manage the plug-in's properties stored in file plugin.properties, and allows access to the plug-in framework (see org.java.plugin.PluginManager manager), {see org.java.plugin.registry.PluginRegistry registry) which it was loaded.- Since:
- 3.0
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description LogicalDOCPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertiesgetData()FilegetDataDirectory()Returns the data directory for this plugin, that is {conf.plugindir}/{pluginName}.StringgetPluginPath()Retrieves the path where the plugins jar archives are storedStringgetProperty(String name)FileresolveDataPath(String relativePath)Resolves a relative path inside the plugin data folder
-
-
-
Method Detail
-
getPluginPath
public String getPluginPath()
Retrieves the path where the plugins jar archives are stored- Returns:
- the path where the plugins jar archives are stored
-
resolveDataPath
public File resolveDataPath(String relativePath)
Resolves a relative path inside the plugin data folder- Parameters:
relativePath- The relative path- Returns:
- The file
-
getDataDirectory
public File getDataDirectory()
Returns the data directory for this plugin, that is {conf.plugindir}/{pluginName}. It will be created in not existing.- Returns:
- the folder for the data of the plugin
-
getData
public Properties getData()
-
-