use of com.gitblit.manager.IRepositoryManager in project gitblit by gitblit.
the class FileTicketServiceTest method getService.
@Override
protected ITicketService getService(boolean deleteAll) throws Exception {
IStoredSettings settings = getSettings(deleteAll);
XssFilter xssFilter = new AllowXssFilter();
IRuntimeManager runtimeManager = new RuntimeManager(settings, xssFilter).start();
IPluginManager pluginManager = new PluginManager(runtimeManager).start();
INotificationManager notificationManager = new NotificationManager(settings).start();
IUserManager userManager = new UserManager(runtimeManager, pluginManager).start();
IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, pluginManager, userManager).start();
FileTicketService service = (FileTicketService) new FileTicketService(runtimeManager, pluginManager, notificationManager, userManager, repositoryManager).start();
if (deleteAll) {
service.deleteAll(getRepository());
}
return service;
}
use of com.gitblit.manager.IRepositoryManager in project gitblit by gitblit.
the class GitBlitSuite method showRemoteBranches.
private static void showRemoteBranches(String repositoryName) {
try {
IRepositoryManager repositoryManager = GitblitContext.getManager(IRepositoryManager.class);
RepositoryModel model = repositoryManager.getRepositoryModel(repositoryName);
model.showRemoteBranches = true;
repositoryManager.updateRepositoryModel(model.name, model, false);
} catch (GitBlitException g) {
g.printStackTrace();
}
}
use of com.gitblit.manager.IRepositoryManager in project gitblit by gitblit.
the class GitBlitSuite method automaticallyTagBranchTips.
private static void automaticallyTagBranchTips(String repositoryName) {
try {
IRepositoryManager repositoryManager = GitblitContext.getManager(IRepositoryManager.class);
RepositoryModel model = repositoryManager.getRepositoryModel(repositoryName);
model.useIncrementalPushTags = true;
repositoryManager.updateRepositoryModel(model.name, model, false);
} catch (GitBlitException g) {
g.printStackTrace();
}
}
Aggregations