validation
stringlengths
16
3.54k
validationType
stringclasses
2 values
function
stringlengths
49
6.38k
author
stringclasses
5 values
context
stringclasses
5 values
if (interfaceRuleDto == null) { return Result.error<method*start>org.jeecgframework.jwt.util.Result.error<method*end>("您没有该接口的权限!"); }
conventional
@ApiOperation<method*start>io.swagger.annotations.ApiOperation<method*end>(value<method*start>org.springframework.context.annotation.Scope.value<method*end> = "根据ID获取黑名单信息", notes<method*start>io.swagger.annotations.ApiOperation.notes<method*end> = "根据ID获取黑名单信息", httpMethod<method*start>io.swagger.annotations.ApiOperat...
万爽
ID user = getRequestUser(request); Assert.isTrue(Application.getSecurityManager().allow(user, ZeroEntry.AllowCustomDataList), "没有权限");
conventional
@RequestMapping(value = "list-fields", method = RequestMethod.POST) @Override public void sets(@PathVariable String entity, HttpServletRequest request, HttpServletResponse response) throws IOException { JSON config = ServletUtils.getRequestJson(request); ID cfgid = getIdParameter(request, "id"); if (cfgid !...
万爽
if (authenticationTrustResolver.isAnonymous(authentication)) { throw new InsufficientAuthenticationException("未登录"); }
conventional
@Override public void decide(Authentication authentication, Object object, Collection<ConfigAttribute> configAttributes) throws AccessDeniedException, InsufficientAuthenticationException { // 无需验证放行 if (configAttributes == null || configAttributes.size() == 0) return; log.info("开始验证"); // if(!au...
万爽
if (needLogin) { XxlApiUser loginUser = loginService.ifLogin(request); if (loginUser == null) { // request.getRequestDispatcher("/toLogin").forward(request, response); response.sendRedirect(request.getContextPath() + "/toLogin"); return false; } if...
conventional
@Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { if (!(handler instanceof HandlerMethod)) { return super.preHandle(request, response, handler); } // if need login boolean needLogin = true; boolean needAdminuser = ...
万爽
if (AndroidUtils.checkPermission(mContext, Manifest.permission.INTERNET) && AndroidUtils.checkPermission(mContext, Manifest.permission.ACCESS_NETWORK_STATE)) { if (NetUtils.isConnected(mContext) && !TextUtils.isEmpty(mServerHost) && !TextUtils.isEmpty(mPramKey)) { String objStr = new Gson().toJson(info); ...
conventional
private void sendExceptionInfo(final Throwable ex) { ExceptionInfo info = new ExceptionInfo(); info.time = CalendarUtils.getNowDataTime(); info.versionCode = AndroidUtils.getVersionCode(mContext); info.versionName = AndroidUtils.getVersionName(mContext); info.systemVersionCode = Build.VERSION.SDK_IN...
万爽
@RequiresPermissions("oss:file:saveConfig")
annotation
@Log("保存云存储配置信息") @ApiOperation<method*start>io.swagger.annotations.ApiOperation<method*end>(value = "保存云存储配置信息", notes<method*start>io.swagger.annotations.ApiOperation.notes<method*end> = "权限编码(oss:file:config)") @PostMapping<method*start>org.springframework.web.bind.annotation.PostMapping<method*end>("/saveConfig") @...
万爽
@RequiresPermissions("user")
annotation
@RequestMapping(value = "treeselect") public String treeselect(HttpServletRequest request, Model model) { // 树结构数据URL model.addAttribute("url", request.getParameter("url")); // 排除的编号ID model.addAttribute("extId", request.getParameter("extId")); // 是否可复选 model.addAttribute("checked", request.getP...
万爽
// 非发件人无权查看信件 if (!message.getMsgSendUser().equals(user)) { WebErrors errors = WebErrors.create(request); errors.addErrorCode("error.noPermissionsView"); return FrontUtils.showError(request, response, model, errors); }
conventional
@RequestMapping(value = "/member/message_edit.jspx") public String message_edit(Integer id, HttpServletRequest request, HttpServletResponse response, ModelMap model) { CmsSite site = CmsUtils.getSite(request); CmsUser user = CmsUtils.getUser(request); FrontUtils.frontData(request, model, site); MemberCo...
万爽
if (!status) { return Hret.error<method*start>com.asofdate.utils.Hret.error<method*end>(422, "您没有权限在这个域中创建用户", null); }
conventional
@RequestMapping<method*start>org.springframework.web.bind.annotation.RequestMapping<method*end>(method<method*start>org.springframework.web.bind.annotation.RequestMapping.method<method*end> = RequestMethod.POST<method*start>org.springframework.web.bind.annotation.RequestMethod.POST<method*end>) public String<method*sta...
万爽
// 判断权限 processConfigurationService.getProcessConfiguration(definition.getId()).assertCanStartProcess(authentication.getUser().getId(), definition);
conventional
@PostMapping("/start/key/{defineKey}") @ApiOperation("提交表单数据并根据流程定义key启动流程") @Authorize(merge = false) public ResponseMessage<String> startProcessByKey(@PathVariable String defineKey, @RequestBody Map<String, Object> data, Authentication authentication) { ProcessDefinition definition = repositoryService.createProce...
万爽
@RequiresPermissions("permission:update")
annotation
@ApiOperation(value = "更新权限", httpMethod = "POST", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "update", method = RequestMethod.POST) public Result update(@RequestParam long id, @RequestParam long groupId, @RequestParam String name, @RequestParam String code, @RequestPa...
万爽
@PreAuthorize("hasAnyAuthority('ROLE_ADMIN','ROLE_USER','ROLE_VISTOR')")
annotation
@DeleteMapping("/{id}") @Transactional public ResponseEntity<Response<com.whichard.spring.boot.blog.vo.Response>> delete(@PathVariable("id") Long blogId, @RequestParam(value = "voteId", required = true) Long voteId) { User principal = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); ...
万爽
if (entity.isNew()) { Validation.isTrue(StringUtils.isNotBlank(rawPassword), "创建用户必须设置初始密码"); }
conventional
@RequestMapping(value = "/edit", method = RequestMethod.POST) @ResponseBody public OperationResult editSave(User entity, Model model, @RequestParam(value = "rawPassword", required = false) String rawPassword) { // object references an unsaved transient instance - save the transient instance before flushing if ...
万爽
@RequiresPermissions("ueboot:role:delete")
annotation
@PostMapping(value = "/delete") public Response<String> delete(Long[] id) { if (id == null || id.length == 0 || id.length != 1) { throw new BusinessException("请选择需要删除的角色!"); } Long roleId = id[0]; // 统计是否授权有用户 Long statisticNum = roleService.statisticUserByRoleId(roleId); if (statisticNu...
万爽
if (!adminUser.getRole().equals("a")) { // msg = "您的权限不足"; return "/admin/login"; }
conventional
@RequestMapping("/adminLogin") public String adminLogin(String name, String password, String captcha, HttpSession session) { // 验证码的验证似乎应该在前台比较好 // String verifyCode = "uwv6"; // if(!captcha.toLowerCase().equals(verifyCode)) { // //msg = "验证码不对"; // return "admin/login"; // } User adminUser ...
万爽
if (accessRequired != null && accessRequired.validate()) { User user = (User) httpServletRequest.getSession().getAttribute(Const.CURRENT_USER); if (user == null) { throw new UnauthorizedException("未登录"); } return true; } if (user.getRole() ...
conventional
@Override public boolean preHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object handler) throws Exception { if (handler.getClass().isAssignableFrom(HandlerMethod.class)) { AccessRequired accessRequired = ((HandlerMethod) handler).getMethodAnnotation(AccessRequired.c...
万爽
// 2 判断是否是私教会员 if (ToolUtil<method*start>com.stylefeng.guns.core.util.ToolUtil<method*end>.isEmpty(card) || card.getLeftCounts() <= 0) { throw new BizException<method*start>com.stylefeng.guns.rest.common.exception.BizException<method*end>(500, "用户无消次权限"); }
conventional
@Override public CardSpendLog<method*start>com.stylefeng.guns.modular.system.model.CardSpendLog<method*end> agentCostOnce(int cardId, Integer<method*start>java.lang.Integer<method*end> coachId, int costs, String<method*start>java.lang.String<method*end> receptionRemark) { CardOncecard<method*start>com.stylefeng.gun...
万爽
if (!user.equals<method*start>cn.devezhao.persist4j.engine.ID.equals<method*end>(createdBy[0])) { throw new DataSpecificationException("无权删除他人目录"); } }
conventional
@Override public int delete(ID<method*start>cn.devezhao.persist4j.engine.ID<method*end> recordId) { Object<method*start>java.lang.Object<method*end> inFolder = Application.createQueryNoFilter<method*start>com.rebuild.server.Application.createQueryNoFilter<method*end>("select inFolder from Attachment where inFolder ...
万爽
if (!status) { response.setStatus<method*start>javax.servlet.http.HttpServletResponse.setStatus<method*end>(403); return Hret.error<method*start>com.asofdate.utils.Hret.error<method*end>(403, "你没有权限编辑域 [ " + domainEntity.getDomain_desc<method*start>com.asofdate.hauth.entity.DomainEntity.getDomain_de...
conventional
@RequestMapping<method*start>org.springframework.web.bind.annotation.RequestMapping<method*end>(method<method*start>org.springframework.web.bind.annotation.RequestMapping.method<method*end> = RequestMethod.PUT<method*start>org.springframework.web.bind.annotation.RequestMethod.PUT<method*end>) @ResponseBody<method*start...
万爽
if (StringTool.isBlank(xxlApiProject.getName())) { return new ReturnT(ReturnT.FAIL_CODE, "请输入项目名称"); } if (StringTool.isBlank(xxlApiProject.getBaseUrlProduct())) { return new ReturnT(ReturnT.FAIL_CODE, "请输入根地址(线上)"); } if (!hasBizPermission(request, xxlApiProject.getBizId())) { r...
conventional
@RequestMapping("/update") @ResponseBody public ReturnT<String> update(HttpServletRequest request, XxlApiProject xxlApiProject) { // exist XxlApiProject existProkect = xxlApiProjectDao.load(xxlApiProject.getId()); if (existProkect == null) { return new ReturnT(ReturnT.FAIL_CODE, "更新失败,项目ID非法"); ...
万爽
if (user == null) { throw new UsernameNotFoundException("Cannot find user by username: " + userName); }
conventional
@Override public UserDetails loadUserByUsername(String userName) throws UsernameNotFoundException { // 先判断登陆用户是否存在 SysUser user = userRepository.findByUserName(userName); if (user != null && (user.isAdmin())) { chain.doFilter(req, resp); } else { // 重定向到 无权限执行操作的页面 ...
万爽
if (client != null && client.getUser() != null) { Client ret = new Client(); ret.setIp(client.getIp()); ret.setLogindatetime(client.getLogindatetime()); TSUser t = new TSUser(); t.setUserName(client.getUser().getUserName()); t.setRealName(client.getUser().getRealName(...
conventional
public void addClinet(String sessionId, Client client) { // 当前session会话,保存登录用户信息 ContextHolderUtils.getSession().setAttribute(sessionId, client); }
万爽
@RequiresPermissions("oss:file:upload")
annotation
@ApiOperation(value = "文件上传", notes = "权限编码(oss:file:upload)") @PostMapping("/upload") public JsonResponse upload(@RequestParam(value = "file", required = false) MultipartFile file) throws Exception { if (file.isEmpty()) { throw new RRException("上传文件不能为空"); } // 上传文件 String suffix = file.getOrig...
万爽
// 校验操作用户当前的操作是否具有此操作权限 boolean isSuccess = limitService.verify(user, operation, resources, dataDom); if (isSuccess) { filterChain.doFilter(request, response); } else { output(response, LimitsResult.failure().noPermission()); return; }
conventional
public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException { // 获取当前操作用户信息 User user = ParamUtils.getUser(request); // 解析出当前操作 Operation operation = ParamUtils.getOperation(request); // 解析出当前操作的资源 List<Resource> resources ...
万爽
// 验证所属俱乐部 if (itemInDb == null || !itemInDb.getClubId().equals(clubId)) { return ResponseEntity.ok(new ReturnTip(501, "访问受限")); }
conventional
@SuppressWarnings("unchecked") @RequestMapping(value = "/detail") @ResponseBody public Object detail() { HttpServletRequest request = this.getHttpServletRequest(); Integer id = Convert.toInt(request.getParameter("id")); Integer clubId = Convert.toInt(request.getParameter("clubId")); if (ToolUtil.isEmpty...
万爽
if (objUser == null) { return ResultUtil.getComplexErrorResult("没有权限"); }
conventional
@ApiOperation("重置密码") @PostMapping("/users/reset_password") public ComplexResult resetPassword(@RequestBody UserForgetPasswordInfo userForgetPasswordInfo, HttpSession session) { // log记录参数 logger.debug("method resetPassword get userForgetPasswordInfo:" + userForgetPasswordInfo); javax.validation.Valida...
万爽
@AuthInterceptor(InterceptorLevel.USER)
annotation
@ApiOperation(value = "更新文件属性") @ApiImplicitParams({ @ApiImplicitParam(name = "name", value = "文件名", required = true), @ApiImplicitParam(name = "category", value = "分类名称", required = true), @ApiImplicitParam(name = "tag", value = "文件标签", required = true), @ApiImplicitParam(name = "description", value = "文件描述", required...
万爽
if (sysUser == null) { log.info("someone visit {}, but not login, need to check the url setting. parameter:{}", servletPath, JsonMapper.obj2String(requestMap)); noAuth(request, response); return; }
conventional
@Override public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) resp; String servletPath = request.getServletPath(); Map requestM...
万爽
if (!NumberUtils.isNumber(user_role)) { return data = DataVo.failure("权限参数错误"); } if (!NumberUtils.isNumber(user_question_verify)) { return data = DataVo.failure("问答审核参数错误"); } if (!NumberUtils.isNumber(user_answer_verify)) { return data = DataVo.failu...
conventional
@PostMapping(value = "/userconfig_updagte") public DataVo updagteUserConfig(@RequestParam(value = "user_reg") String user_reg, @RequestParam(value = "user_reg_verify") String user_reg_verify, @RequestParam(value = "user_activation_role") String user_activation_role, @RequestParam(value = "user_role") String user_role, ...
万爽
if (!filter) { if (StringUtils.isNotBlank(request.getParameter("msg"))) { response.sendRedirect("/login.html?msg=" + request.getParameter("msg")); } else { response.sendRedirect("/login.html"); } }
conventional
@Override public boolean preHandle(final HttpServletRequest request, final HttpServletResponse response, Object handler) throws Exception { boolean filter = false; User user = (User) request.getSession(true).getAttribute(Constants.USER_SESSION_NAME); if (handler instanceof HandlerMethod) { HandlerMe...
万爽
// 2、检查用户权限 // 文章作者才可以删除 List<Comment> commentList = commentService.findByBatchIds(ids); for (Comment comment : commentList) { if (!Objects.equals(comment.getUserId(), loginUserId) && !Objects.equals(comment.getAcceptUserId(), loginUserId)) { return new JsonResult(ResultCodeEnum.FAIL.getCode(), localeMessag...
conventional
@DeleteMapping(value = "/batchDelete") @ResponseBody @SystemLog(description = "批量删除评论", type = LogTypeEnum.OPERATION) public JsonResult batchDelete(@RequestParam("ids") List<Long> ids) { Long loginUserId = getLoginUserId(); // 1、防止恶意操作 if (ids == null || ids.size() == 0 || ids.size() >= 100) { retur...
万爽
if (Db.queryInt("select count(*) from `72crm_crm_customer` where find_in_set(?,ro_user_id) and customer_id = ?", BaseUtil.getUserId(), customerId) > 0) { renderJson(R.error("没有权限")); return false; }
conventional
@Permissions("crm:customer:transfer") public void transfer(@Para("") CrmCustomer crmCustomer) { String[] customerIdsArr = crmCustomer.getCustomerIds().split(","); Db.tx(() -> { for (String customerId : customerIdsArr) { crmCustomer.setCustomerId(Integer.valueOf(customerId)); re...
万爽
if (ToolUtil<method*start>com.stylefeng.guns.core.util.ToolUtil<method*end>.isEmpty(card) || card.getLeftCounts() <= 0) { throw new BizException<method*start>com.stylefeng.guns.rest.common.exception.BizException<method*end>(500, "用户无私教预约权限"); }
conventional
@SuppressWarnings("unchecked") @Override public CardSpendLog<method*start>com.stylefeng.guns.modular.system.model.CardSpendLog<method*end> finishPtrain(Integer<method*start>java.lang.Integer<method*end> clubId, Integer<method*start>java.lang.Integer<method*end> coachId, Integer<method*start>java.lang.Integer<method*end...
万爽
InterfaceRuleDto<method*start>org.jeecgframework.web.system.pojo.base.InterfaceRuleDto<method*end> interfaceRuleDto = InterfaceUtil.getInterfaceRuleDto<method*start>org.jeecgframework.web.system.util.InterfaceUtil.getInterfaceRuleDto<method*end>(request, InterfaceEnum.jeecgdemo_edit<method*start>org.jeecgframework.web....
conventional
@ResponseBody @ApiOperation<method*start>io.swagger.annotations.ApiOperation<method*end>(value<method*start>io.swagger.annotations.Api.value<method*end> = "更新jeecgDemo", notes<method*start>io.swagger.annotations.ApiOperation.notes<method*end> = "更新jeecgDemo") public ResponseMessage<method*start>org.jeecgframework.jwt.u...
万爽
@RequiresPermissions("oss:pdf:upload")
annotation
@ApiOperation(value = "文件上传", notes = "权限编码(oss:pdf:upload)") @PostMapping("/upload") public JsonResponse<com.king.common.utils.JsonResponse> upload(@RequestParam(value = "file", required = false) MultipartFile file) throws Exception { if (file.isEmpty()) { return JsonResponse.error("上传文件不能为空"); } else ...
万爽
UserInfo userInfo = (UserInfo) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); Message message = new Message(); if (!userInfo.getAuthorities().toString().contains("ROLE_ADMIN")) { message.setResult("权限错误!"); message.setMessageInfo("只有管理员才可以添加管理员!"); return message;...
conventional
@RequestMapping(value = { "/admin/add-admin" }, method = RequestMethod.POST) @ResponseBody public Message addUser(@RequestBody User user) { UserInfo userInfo = (UserInfo) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); Message message = new Message(); user.setCreateTime(new Date()); ...
万爽
if (user == null || !Application.getSecurityManager<method*start>com.rebuild.server.Application.getSecurityManager<method*end>().allowRead<method*start>com.rebuild.server.service.bizz.privileges.SecurityManager.allowRead<method*end>(user, entity.getEntityCode<method*start>cn.devezhao.persist4j.Entity.getEntityCode<meth...
conventional
public static ChartData<method*start>com.rebuild.server.business.charts.ChartData<method*end> create(JSONObject<method*start>com.alibaba.fastjson.JSONObject<method*end> config, ID<method*start>cn.devezhao.persist4j.engine.ID<method*end> user) throws ChartsException<method*start>com.rebuild.server.business.charts.Charts...
万爽
if (this.isSessionValid()) { listener.onComplete(new Bundle()); return; }
conventional
private void authorize(Activity android.app.Activity activity, String[] permissions, boolean isForceLogin, boolean isConfirmLogin, final BaiduDialogListener listener) { // 使用匿名的BaiduDialogListener对listener进行了包装,并进行一些存储token信息和当前登录用户的逻辑, // 外部传进来的listener信息不需要在进行存储相关的逻辑 this.authorize(activity, permissions,...
万爽
@RequiresAuthentication
annotation
@RequestMapping(value = "/private/menus", method = RequestMethod.GET) @ApiOperation(value = "获取登录用户的菜单资源") public Response<List<MenuVo>> menus() { Subject currentUser = SecurityUtils.getSubject(); String username = (String) currentUser.getPrincipal(); Collection<Resources> resources = this.resourcesService....
万爽
if (!hasBizPermission(request, apiDataType.getBizId<method*start>com.xxl.api.admin.core.model.XxlApiDataType.getBizId<method*end>())) { return new ReturnT<method*start>com.xxl.api.admin.core.model.ReturnT<method*end><String<method*start>java.lang.String<method*end>>(ReturnT.FAIL_CODE<method*start>com.xxl.api.ad...
conventional
@RequestMapping<method*start>org.springframework.web.bind.annotation.RequestMapping<method*end>("/deleteDataType") @ResponseBody<method*start>org.springframework.web.bind.annotation.ResponseBody<method*end> public ReturnT<method*start>com.xxl.api.admin.core.model.ReturnT<method*end><String<method*start>java.lang.String...
万爽
if (Global.isDemoMode<method*start>com.iwc.shop.common.config.Global.isDemoMode<method*end>()) { addMessage(redirectAttributes, "演示模式,不允许操作!"); return "redirect:" + adminPath<method*start>com.iwc.shop.common.web.BaseController.adminPath<method*end> + "/sys/user/list?repage"; }
conventional
@RequestMapping<method*start>org.springframework.web.bind.annotation.RequestMapping<method*end>(value<method*start>org.springframework.web.bind.annotation.RequestMapping.value<method*end> = "save") public String<method*start>java.lang.String<method*end> save(User<method*start>com.iwc.shop.modules.sys.entity.User<method...
万爽
@Validated(UserLoginValidGroup.class)
annotation
@PostMapping("/login") public ResponseBean login(@Validated(UserLoginValidGroup.class) @RequestBody UserDto userDto, HttpServletResponse httpServletResponse) { UserDto userDtoTemp = new UserDto(); userDtoTemp.setAccount(userDto.getAccount()); userDtoTemp = userService.selectOne(userDtoTemp); if (userDto...
万爽
// 检查【关闭】权限 checkShutdownAccess<method*start>java.util.concurrent.ThreadPoolExecutor.checkShutdownAccess<method*end>();
conventional
public List<method*start>java.util.List<method*end><Runnable<method*start>java.lang.Runnable<method*end>> shutdownNow() { List<method*start>java.util.List<method*end><Runnable<method*start>java.lang.Runnable<method*end>> tasks; mainLock.lock<method*start>java.util.concurrent.locks.ReentrantLock.lock<method*end>...
万爽
if (shipping == null) { return ServerResponse.createByErrorCodeMessage<method*start>com.kay.common.ServerResponse.createByErrorCodeMessage<method*end>(ResponseCode.ILLEGAL_ARGUMENT.getCode<method*start>com.kay.common.ResponseCode.getCode<method*end>(), ResponseCode.ILLEGAL_ARGUMENT.getDescription<method*sta...
annotation
@Override public ServerResponse<method*start>com.kay.common.ServerResponse<method*end> update(Integer<method*start>java.lang.Integer<method*end> userId, Shipping<method*start>com.kay.pojo.Shipping<method*end> shipping) { shipping.setUserId<method*start>com.kay.pojo.Shipping.setUserId<method*end>(userId); ...
万爽
// 防止横向越权,要校验用户的旧密码 int resCount = userMapper.checkPassword(MD5Util.MD5EncodeUtf8(passwordOld), user.getId()); if (resCount == 0) { return ServerResponse.createByError("旧密码错误"); }
conventional
@Override public ServerResponse<String> resetPassword(String passwordNew, String passwordOld, User user) { user.setPassword(MD5Util.MD5EncodeUtf8(passwordNew)); int updateCount = userMapper.updateByPrimaryKeySelective(user); if (updateCount > 0) { return ServerResponse.createBySuccessMessage("密码更新成...
万爽
if (!UserUtils.getUser<method*start>com.iwc.shop.modules.sys.utils.UserUtils.getUser<method*end>().isAdmin<method*start>com.iwc.shop.modules.sys.entity.User.isAdmin<method*end>()) { addMessage(redirectAttributes, "越权操作,只有超级管理员才能添加或修改数据!"); return "redirect:" + adminPath<method*start>com.iwc.shop.common....
conventional
@RequestMapping<method*start>org.springframework.web.bind.annotation.RequestMapping<method*end>(value<method*start>org.springframework.web.bind.annotation.RequestMapping.value<method*end> = "save") public String<method*start>java.lang.String<method*end> save(Menu<method*start>com.iwc.shop.modules.sys.entity.Menu<method...
万爽
if (handleEvent<method*start>org.hswebframework.web.authorization.basic.handler.DefaultAuthorizingHandler.handleEvent<method*end>(context, HandleType.RBAC<method*start>org.hswebframework.web.authorization.define.HandleType.RBAC<method*end>)) { return; }
conventional
@Override public void handRBAC(AuthorizingContext<method*start>org.hswebframework.web.authorization.define.AuthorizingContext<method*end> context) { // 进行rdac权限控制 handleRBAC<method*start>org.hswebframework.web.authorization.basic.handler.DefaultAuthorizingHandler.handleRBAC<method*end>(context.getAuthentication...
万爽
// 角色的类型,0:管理员(老板),1:管理员(员工) 2其他 if (!redisUser.getTenantId<method*start>com.momo.common.core.entity.RedisUser.getTenantId<method*end>().equals(superAdminsService.getTeantId<method*start>com.momo.service.service.SuperAdminsService.getTeantId<method*end>()) && roleDO.getSysRoleType<method*start>com.momo.mapper.datao...
conventional
@Override public String<method*start>java.lang.String<method*end> aclsToRole(BatchRoleUserReq<method*start>com.momo.mapper.req.authority.BatchRoleUserReq<method*end> batchRoleUserReq) { UserGroupDO<method*start>com.momo.mapper.dataobject.UserGroupDO<method*end> uuid = userGroupMapper.uuid<method*start>com.momo.mapp...
万爽