summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/manager/GitblitManager.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-04-01 00:10:43 -0400
committerJames Moger <james.moger@gitblit.com>2014-04-10 19:00:52 -0400
commite5d0bacbf746e09a9194822b231cb27090f58973 (patch)
treee6d7d2f96384aa89a4f965ad1f47fb130ec907a4 /src/main/java/com/gitblit/manager/GitblitManager.java
parentec3b719dab4ae3c51d8bd52ab2b4176f82c5006f (diff)
downloadgitblit-e5d0bacbf746e09a9194822b231cb27090f58973.tar.gz
gitblit-e5d0bacbf746e09a9194822b231cb27090f58973.zip
Implement simple JSON-based plugin registry and install command
Diffstat (limited to 'src/main/java/com/gitblit/manager/GitblitManager.java')
-rw-r--r--src/main/java/com/gitblit/manager/GitblitManager.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/manager/GitblitManager.java b/src/main/java/com/gitblit/manager/GitblitManager.java
index 6b1cc8a5..5a7d15ae 100644
--- a/src/main/java/com/gitblit/manager/GitblitManager.java
+++ b/src/main/java/com/gitblit/manager/GitblitManager.java
@@ -61,6 +61,8 @@ import com.gitblit.models.ForkModel;
import com.gitblit.models.GitClientApplication;
import com.gitblit.models.Mailing;
import com.gitblit.models.Metric;
+import com.gitblit.models.PluginRegistry.PluginRegistration;
+import com.gitblit.models.PluginRegistry.PluginRelease;
import com.gitblit.models.ProjectModel;
import com.gitblit.models.RegistrantAccessPermission;
import com.gitblit.models.RepositoryModel;
@@ -1180,6 +1182,10 @@ public class GitblitManager implements IGitblit {
return repositoryManager.isIdle(repository);
}
+ /*
+ * PLUGIN MANAGER
+ */
+
@Override
public <T> List<T> getExtensions(Class<T> clazz) {
return pluginManager.getExtensions(clazz);
@@ -1196,6 +1202,36 @@ public class GitblitManager implements IGitblit {
}
@Override
+ public boolean refreshRegistry() {
+ return pluginManager.refreshRegistry();
+ }
+
+ @Override
+ public boolean installPlugin(String url) {
+ return pluginManager.installPlugin(url);
+ }
+
+ @Override
+ public boolean installPlugin(PluginRelease pv) {
+ return pluginManager.installPlugin(pv);
+ }
+
+ @Override
+ public List<PluginRegistration> getRegisteredPlugins() {
+ return pluginManager.getRegisteredPlugins();
+ }
+
+ @Override
+ public PluginRegistration lookupPlugin(String idOrName) {
+ return pluginManager.lookupPlugin(idOrName);
+ }
+
+ @Override
+ public PluginRelease lookupRelease(String idOrName, String version) {
+ return pluginManager.lookupRelease(idOrName, version);
+ }
+
+ @Override
public List<PluginWrapper> getPlugins() {
return pluginManager.getPlugins();
}