James Moger
2014-04-17 7baf2e4cd2ef8082b74937e26de75b01e630b5d4
src/main/java/com/gitblit/manager/IPluginManager.java
@@ -20,12 +20,20 @@
import ro.fortsoft.pf4j.PluginState;
import ro.fortsoft.pf4j.PluginWrapper;
import ro.fortsoft.pf4j.Version;
import com.gitblit.models.PluginRegistry.InstallState;
import com.gitblit.models.PluginRegistry.PluginRegistration;
import com.gitblit.models.PluginRegistry.PluginRelease;
public interface IPluginManager extends IManager {
   /**
    * Returns the system version.
    *
    * @return the system version
    */
   Version getSystemVersion();
   /**
    * Starts all plugins.
@@ -118,8 +126,10 @@
    /**
     * Refresh the plugin registry.
     *
     * @param verifyChecksum
     */
    boolean refreshRegistry();
    boolean refreshRegistry(boolean verifyChecksum);
    /**
     * Install the plugin from the specified url.
@@ -130,6 +140,17 @@
    boolean installPlugin(String url, boolean verifyChecksum) throws IOException;
    /**
     * Upgrade the install plugin from the specified url.
     *
     * @param pluginId
     * @param url
     * @param verifyChecksum
     * @return true if the upgrade has been successful
     * @throws IOException
     */
    boolean upgradePlugin(String pluginId, String url, boolean verifyChecksum) throws IOException;
    /**
     * The list of all registered plugins.
     *
     * @return a list of registered plugins