From 261ddf0fcf9a55fbb5b4e7c6c2cdb4c2f8c860fe Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Thu, 10 Apr 2014 18:58:09 -0400 Subject: [PATCH] Revise dispatchers and move command classes --- src/main/java/com/gitblit/manager/IGitblit.java | 44 +++++++++++++++++++++++++++++++++++++------- 1 files changed, 37 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..f4221cf 100644 --- a/src/main/java/com/gitblit/manager/IGitblit.java +++ b/src/main/java/com/gitblit/manager/IGitblit.java @@ -26,6 +26,8 @@ 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, @@ -47,25 +49,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 +103,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