summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/manager
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-11-25 09:12:47 -0500
committerJames Moger <james.moger@gitblit.com>2013-11-29 11:05:51 -0500
commit5ae529ea8a73edc8e2bb1e7f9576e51c9d870224 (patch)
tree683d1efa15f9c64da9de31ad3366dbb92d2858c9 /src/main/java/com/gitblit/manager
parent3a9e76b63f09a32e0b6812e18ffff00fab8e58e6 (diff)
downloadgitblit-5ae529ea8a73edc8e2bb1e7f9576e51c9d870224.tar.gz
gitblit-5ae529ea8a73edc8e2bb1e7f9576e51c9d870224.zip
Change IGitblit API to be more distinct from IUserService
Change-Id: I8fb38fb6a3dae74ad7a12b045b054373b9b02518
Diffstat (limited to 'src/main/java/com/gitblit/manager')
-rw-r--r--src/main/java/com/gitblit/manager/IGitblit.java26
1 files changed, 20 insertions, 6 deletions
diff --git a/src/main/java/com/gitblit/manager/IGitblit.java b/src/main/java/com/gitblit/manager/IGitblit.java
index c0167f0d..aa091226 100644
--- a/src/main/java/com/gitblit/manager/IGitblit.java
+++ b/src/main/java/com/gitblit/manager/IGitblit.java
@@ -47,25 +47,39 @@ public interface IGitblit extends IManager,
List<RepositoryUrl> getRepositoryUrls(HttpServletRequest request, UserModel user, RepositoryModel repository);
/**
- * Adds/updates a complete user object keyed by username. This method allows
+ * Creates a complete user object.
+ *
+ * @param user
+ * @param isCreate
+ * @throws GitBlitException
+ */
+ void addUser(UserModel user) throws GitBlitException;
+
+ /**
+ * Updates a complete user object keyed by username. This method allows
* for renaming a user.
*
- * @see IUserService.updateUserModel(String, UserModel)
* @param username
* @param user
- * @param isCreate
* @throws GitBlitException
*/
- void updateUserModel(String username, UserModel user, boolean isCreate) 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