|
|
@ -24,23 +24,23 @@ public class AdminSvnUserAct extends BaseAction { |
|
|
|
private SvnUserService svnUserService; |
|
|
|
private SvnUserService svnUserService; |
|
|
|
|
|
|
|
|
|
|
|
@At |
|
|
|
@At |
|
|
|
@Ok("fm:template.admin.project_group.list") |
|
|
|
@Ok("fm:template.admin.svn_user.list") |
|
|
|
@RequiresPermissions({ "project.group:view" }) |
|
|
|
@RequiresPermissions({ "svn.user:view" }) |
|
|
|
@PermissionTag(name = "SVN浏览账号", tag = "SVN账号管理") |
|
|
|
@PermissionTag(name = "SVN浏览账号", tag = "SVN账号管理") |
|
|
|
public Pagination list(@Param(value = "pageNumber", df = "1") int page) { |
|
|
|
public Pagination list(@Param(value = "pageNumber", df = "1") int page) { |
|
|
|
return svnUserService.getObjListByPager(page, 20, null); |
|
|
|
return svnUserService.getObjListByPager(page, 20, null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@At |
|
|
|
@At |
|
|
|
@Ok("fm:template.admin.project_user.add") |
|
|
|
@Ok("fm:template.admin.svn_user.add") |
|
|
|
@RequiresPermissions({ "project.group:add" }) |
|
|
|
@RequiresPermissions({ "svn.user:add" }) |
|
|
|
@PermissionTag(name = "SVN添加账号", tag = "SVN账号管理", enable = true) |
|
|
|
@PermissionTag(name = "SVN添加账号", tag = "SVN账号管理", enable = true) |
|
|
|
public void add() { |
|
|
|
public void add() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@At |
|
|
|
@At |
|
|
|
@Ok("json") |
|
|
|
@Ok("json") |
|
|
|
@RequiresPermissions("project.group:add") |
|
|
|
@RequiresPermissions("svn.user:add") |
|
|
|
@PermissionTag(name = "SVN添加账号", tag = "SVN账号管理", enable = false) |
|
|
|
@PermissionTag(name = "SVN添加账号", tag = "SVN账号管理", enable = false) |
|
|
|
public Message o_save(@Param("::user.") Usr user, HttpServletRequest req) { |
|
|
|
public Message o_save(@Param("::user.") Usr user, HttpServletRequest req) { |
|
|
|
boolean isOk = svnUserService.nameOk(user.getUsr()); |
|
|
|
boolean isOk = svnUserService.nameOk(user.getUsr()); |
|
|
|