From 7baf2e4cd2ef8082b74937e26de75b01e630b5d4 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Thu, 17 Apr 2014 12:00:35 -0400
Subject: [PATCH] Expose JGit 3.x receive pack settings as Gitblit settings

---
 src/main/java/com/gitblit/manager/IGitblit.java |   45 ++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 38 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/gitblit/manager/IGitblit.java b/src/main/java/com/gitblit/manager/IGitblit.java
index c0167f0..f3202c0 100644
--- a/src/main/java/com/gitblit/manager/IGitblit.java
+++ b/src/main/java/com/gitblit/manager/IGitblit.java
@@ -26,9 +26,12 @@
 import com.gitblit.models.RepositoryUrl;
 import com.gitblit.models.TeamModel;
 import com.gitblit.models.UserModel;
+import com.gitblit.tickets.ITicketService;
+import com.gitblit.transport.ssh.IPublicKeyManager;
 
 public interface IGitblit extends IManager,
 									IRuntimeManager,
+									IPluginManager,
 									INotificationManager,
 									IUserManager,
 									IAuthenticationManager,
@@ -47,25 +50,39 @@
 	List<RepositoryUrl> getRepositoryUrls(HttpServletRequest request, UserModel user, RepositoryModel repository);
 
 	/**
-	 * Adds/updates a complete user object keyed by username. This method allows
-	 * for renaming a user.
+	 * Creates a complete user object.
 	 *
-	 * @see IUserService.updateUserModel(String, UserModel)
-	 * @param username
 	 * @param user
 	 * @param isCreate
 	 * @throws GitBlitException
 	 */
-	void updateUserModel(String username, UserModel user, boolean isCreate) throws GitBlitException;
+	void addUser(UserModel user) throws GitBlitException;
+
+	/**
+	 * Updates a complete user object keyed by username. This method allows
+	 * for renaming a user.
+	 *
+	 * @param username
+	 * @param user
+	 * @throws GitBlitException
+	 */
+	void reviseUser(String username, UserModel user) throws GitBlitException;
+
+	/**
+	 * Creates a TeamModel object.
+	 *
+	 * @param team
+	 * @param isCreate
+	 */
+	void addTeam(TeamModel team) throws GitBlitException;
 
 	/**
 	 * Updates the TeamModel object for the specified name.
 	 *
 	 * @param teamname
 	 * @param team
-	 * @param isCreate
 	 */
-	void updateTeamModel(String teamname, TeamModel team, boolean isCreate) throws GitBlitException;
+	void reviseTeam(String teamname, TeamModel team) throws GitBlitException;
 
 	/**
 	 * Creates a personal fork of the specified repository. The clone is view
@@ -87,4 +104,18 @@
 	 */
 	Collection<GitClientApplication> getClientApplications();
 
+	/**
+	 * Returns the ticket service.
+	 *
+	 * @return a ticket service
+	 */
+	ITicketService getTicketService();
+
+	/**
+	 * Returns the SSH public key manager.
+	 *
+	 * @return the SSH public key manager
+	 */
+	IPublicKeyManager getPublicKeyManager();
+
 }
\ No newline at end of file

--
Gitblit v1.9.1