| | |
| | | |
| | | 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. |
| | |
| | | |
| | | /** |
| | | * Refresh the plugin registry. |
| | | * |
| | | * @param verifyChecksum |
| | | */ |
| | | boolean refreshRegistry(); |
| | | boolean refreshRegistry(boolean verifyChecksum); |
| | | |
| | | /** |
| | | * Install the plugin from the specified url. |
| | |
| | | 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 |