Class LogicalDOCPlugin

  • Direct Known Subclasses:
    CmisPlugin, CorePlugin, DropboxPlugin, WebDAVPlugin, WebserviceDocPlugin, WebservicePlugin

    public abstract class LogicalDOCPlugin
    extends org.java.plugin.Plugin
    This 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 Detail

      • LogicalDOCPlugin

        public LogicalDOCPlugin()
    • 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