summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/utils/RpcUtils.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-03-06 13:38:12 -0500
committerJames Moger <james.moger@gitblit.com>2014-03-06 13:38:12 -0500
commit88693e491b0d929b6b3f5783d11126fce87b1370 (patch)
tree6cf89f7fa51cd838883599d5b474064098ab1841 /src/main/java/com/gitblit/utils/RpcUtils.java
parent9883341c1fbb35abcb7a1d09f93f6a9e805ea551 (diff)
downloadgitblit-88693e491b0d929b6b3f5783d11126fce87b1370.tar.gz
gitblit-88693e491b0d929b6b3f5783d11126fce87b1370.zip
Add and document REINDEX_TICKETS rpc request type
Diffstat (limited to 'src/main/java/com/gitblit/utils/RpcUtils.java')
-rw-r--r--src/main/java/com/gitblit/utils/RpcUtils.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/utils/RpcUtils.java b/src/main/java/com/gitblit/utils/RpcUtils.java
index 24e07dcd..5e577fb6 100644
--- a/src/main/java/com/gitblit/utils/RpcUtils.java
+++ b/src/main/java/com/gitblit/utils/RpcUtils.java
@@ -252,6 +252,37 @@ public class RpcUtils {
}
/**
+ * Reindex all tickets on the Gitblit server.
+ *
+ * @param serverUrl
+ * @param account
+ * @param password
+ * @return true if the action succeeded
+ * @throws IOException
+ */
+ public static boolean reindexTickets(String serverUrl, String account,
+ char[] password) throws IOException {
+ return doAction(RpcRequest.REINDEX_TICKETS, null, null, serverUrl, account,
+ password);
+ }
+
+ /**
+ * Reindex tickets for the specified repository on the Gitblit server.
+ *
+ * @param serverUrl
+ * @param repositoryName
+ * @param account
+ * @param password
+ * @return true if the action succeeded
+ * @throws IOException
+ */
+ public static boolean reindexTickets(String serverUrl, String repositoryName,
+ String account, char[] password) throws IOException {
+ return doAction(RpcRequest.REINDEX_TICKETS, repositoryName, null, serverUrl,
+ account, password);
+ }
+
+ /**
* Create a user on the Gitblit server.
*
* @param user