instruction
stringlengths
77
90.1k
package com.strongdata.workflow.modules.flowable.common.cmd;import java.io.Serializable;import org.apache.commons.lang3.StringUtils;import org.flowable.common.engine.api.FlowableIllegalArgumentException;import org.flowable.common.engine.api.FlowableObjectNotFoundException;import org.flowable.common.engine.impl.intercep...
package com.strongdata.workflow.modules.flowable.common.cmd;import org.apache.commons.io.IOUtils;import org.apache.commons.lang3.StringUtils;import org.flowable.bpmn.converter.BpmnXMLConverter;import org.flowable.bpmn.model.BpmnModel;import org.flowable.common.engine.api.FlowableException;import org.flowable.common.eng...
package com.strongdata.workflow.modules.flowable.common;/** * @author 庄金明 * @date 2020年3月23日 */public enum CommentTypeEnum { /** * 过程意见类型 */ TJ("提交"), CXTJ("重新提交"), RL("认领"), QXRL("取消认领"), SP("审批"), WC("完成"), TH("退回"), CH("撤回"), ZC("暂存"), ZB("转办"), WP( "委派"), ZZ("终止"), CC("抄送"), YY("已阅"); /*...
package com.strongdata.workflow.modules.flowable.common.delegate;import cn.hutool.core.map.MapUtil;import cn.hutool.json.JSONUtil;import com.strongdata.workflow.modules.flowable.service.BusinessCallbackService;import com.strongdata.workflow.modules.flowable.util.SecurityOauth2Utils;import com.strongdata.workflow.module...
/* * Copyright (c) 2019- 2019 threefish(https://gitee.com/threefish https://github.com/threefish) All Rights Reserved. * 本项目完全开源,商用完全免费。但请勿侵犯作者合法权益,如申请软著等。 * 最后修改时间:2019/10/07 18:26:07 * 源 码 地 址:https://gitee.com/threefish/NutzFw */package com.strongdata.workflow.modules.flowable.common.enums;import lombok.AllArgsConst...
package com.strongdata.workflow.modules.flowable.common.enums;import lombok.Getter;@Getterpublic enum ButtonTypeEnum { AGREE("agree", "同意","operationType","agree"), REFUSE("refuse", "拒绝","operationType","refuse"), REJECT("reject", "驳回","operationType","reject"), REJECT_TO_START("rejectToStart", "驳回到起点","ope...
package com.strongdata.workflow.modules.flowable.common.exception;import org.flowable.common.engine.api.FlowableException;/** * @author 庄金明 * @date 2020年3月24日 */public class FlowableNoPermissionException extends FlowableException { private static final long serialVersionUID = 1L; public FlowableNoPermissionExcept...
package com.strongdata.workflow.modules.flowable.common;import java.io.Serializable;import java.util.Collections;import java.util.List;import java.util.Locale;import java.util.Optional;/** * @author 庄金明 * @date 2020年3月23日 */@SuppressWarnings({"rawtypes"})public class FlowablePage implements Serializable { private st...
package com.strongdata.workflow.modules.flowable.common.listener;import cn.hutool.core.map.MapUtil;import cn.hutool.json.JSONArray;import cn.hutool.json.JSONObject;import cn.hutool.json.JSONUtil;import com.strongdata.workflow.modules.flowable.service.BusinessCallbackService;import com.strongdata.workflow.modules.flowab...
package com.strongdata.workflow.modules.flowable.common.listener;import cn.hutool.core.map.MapUtil;import cn.hutool.json.JSONArray;import cn.hutool.json.JSONObject;import cn.hutool.json.JSONUtil;import com.strongdata.workflow.modules.flowable.service.BusinessCallbackService;import com.strongdata.workflow.modules.flowab...
package com.strongdata.workflow.modules.flowable.common.listener;import com.strongdata.workflow.common.core.util.SpringContextUtils;import org.flowable.common.engine.api.delegate.event.FlowableEvent;import org.flowable.common.engine.api.delegate.event.FlowableEventListener;import org.flowable.common.engine.impl.event.F...
package com.strongdata.workflow.modules.flowable.common.listener;import cn.hutool.json.JSONArray;import cn.hutool.json.JSONObject;import cn.hutool.json.JSONUtil;import com.strongdata.workflow.modules.flowable.constant.FlowableConstant;import lombok.extern.slf4j.Slf4j;import org.apache.commons.lang3.StringUtils;import o...
package com.strongdata.workflow.modules.flowable.common.model;import lombok.Data;import org.flowable.bpmn.model.MultiInstanceLoopCharacteristics;import java.util.ArrayList;import java.util.List;@Datapublic class WorkflowUserTask { private String id; private String name; private String documentation; private...
package com.strongdata.workflow.modules.flowable.common;import java.util.ArrayList;import java.util.HashMap;import java.util.HashSet;import java.util.List;import java.util.Map;import java.util.Set;import com.fasterxml.jackson.databind.ObjectMapper;import com.strongdata.workflow.modules.flowable.constant.FlowableConstan...
package com.strongdata.workflow.modules.flowable.controller;import java.util.Arrays;import javax.validation.Valid;import com.strongdata.workflow.modules.flowable.entity.FlowableForm;import com.strongdata.workflow.modules.flowable.service.FlowableFormService;import org.springframework.beans.factory.annotation.Autowired;...
package com.strongdata.workflow.modules.flowable.controller;import com.baomidou.mybatisplus.core.metadata.IPage;import com.baomidou.mybatisplus.extension.plugins.pagination.Page;import com.strongdata.workflow.common.core.Result;import com.strongdata.workflow.modules.flowable.entity.FlowableListener;import com.strongdat...
package com.strongdata.workflow.modules.flowable.controller;import com.baomidou.mybatisplus.core.metadata.IPage;import com.baomidou.mybatisplus.extension.plugins.pagination.Page;import com.strongdata.workflow.common.core.Result;import com.strongdata.workflow.modules.flowable.entity.FlowableListener;import com.strongdat...
package com.strongdata.workflow.modules.flowable.controller;import com.fasterxml.jackson.databind.ObjectMapper;import com.strongdata.workflow.common.core.Result;import com.strongdata.workflow.common.core.util.ObjectUtils;import com.strongdata.workflow.common.log.annotation.Log;import com.strongdata.workflow.modules.flo...
package com.strongdata.workflow.modules.flowable.controller;import java.io.InputStream;import java.util.HashMap;import java.util.List;import java.util.Map;import javax.servlet.http.HttpServletRequest;import com.strongdata.workflow.common.core.util.CommonUtil;import com.strongdata.workflow.modules.flowable.constant.Flow...
package com.strongdata.workflow.modules.flowable.controller;import java.util.List;import com.strongdata.workflow.modules.flowable.service.ProcessDefinitionService;import io.swagger.annotations.Api;import org.flowable.engine.repository.ProcessDefinition;import org.flowable.identitylink.api.IdentityLink;import org.spring...
package com.strongdata.workflow.modules.flowable.controller;import java.util.List;import io.swagger.annotations.Api;import org.flowable.job.api.Job;import org.springframework.security.access.prepost.PreAuthorize;import org.springframework.transaction.annotation.Transactional;import org.springframework.web.bind.annotati...
package com.strongdata.workflow.modules.flowable.controller;import com.strongdata.workflow.common.core.Result;import com.strongdata.workflow.common.core.constant.SecurityConstants;import com.strongdata.workflow.common.core.util.CommonUtil;import com.strongdata.workflow.common.core.util.ObjectUtils;import com.strongdata...
package com.strongdata.workflow.modules.flowable.controller;import java.io.InputStream;import java.util.ArrayList;import java.util.Arrays;import java.util.List;import com.strongdata.workflow.modules.flowable.config.CustomProcessDiagramGenerator;import com.strongdata.workflow.modules.flowable.constant.FlowableConstant;i...
package com.strongdata.workflow.modules.flowable.controller;import cn.hutool.core.map.MapUtil;import cn.hutool.json.JSONArray;import cn.hutool.json.JSONObject;import cn.hutool.json.JSONUtil;import com.strongdata.workflow.common.core.Result;import com.strongdata.workflow.common.core.redis.aspect.annotation.RedissonLock;...
package com.strongdata.workflow.modules.flowable.controller;import java.util.List;import com.strongdata.workflow.modules.flowable.service.FlowableTaskService;import io.swagger.annotations.Api;import io.swagger.annotations.ApiOperation;import org.flowable.identitylink.api.history.HistoricIdentityLink;import org.flowable...
package com.strongdata.workflow.modules.flowable.controller;import com.strongdata.workflow.common.core.Result;import io.swagger.annotations.Api;import org.apache.commons.lang3.StringUtils;import org.flowable.engine.IdentityService;import org.flowable.idm.api.Group;import org.flowable.idm.api.GroupQuery;import org.flowa...
package com.strongdata.workflow.modules.flowable.service.impl;import cn.hutool.json.JSONObject;import com.strongdata.workflow.modules.flowable.service.BusinessCallbackService;import org.apache.commons.lang3.StringUtils;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.http.HttpEnt...
package com.strongdata.workflow.modules.flowable.service.impl;import com.strongdata.workflow.modules.flowable.entity.FlowableForm;import com.strongdata.workflow.modules.flowable.mapper.FlowableFormMapper;import com.strongdata.workflow.modules.flowable.service.FlowableFormService;import org.springframework.stereotype.Se...
package com.strongdata.workflow.modules.flowable.service.impl;import com.baomidou.mybatisplus.core.metadata.IPage;import com.strongdata.workflow.common.core.base.BaseServiceImpl;import com.strongdata.workflow.modules.flowable.entity.FlowableForm;import com.strongdata.workflow.modules.flowable.entity.FlowableListener;im...
package com.strongdata.workflow.modules.flowable.service.impl;import cn.hutool.core.collection.CollUtil;import cn.hutool.core.util.StrUtil;import cn.hutool.json.JSONUtil;import com.strongdata.workflow.common.core.util.CommonUtil;import com.strongdata.workflow.common.core.util.ObjectUtils;import com.strongdata.workflow....
package com.strongdata.workflow.modules.flowable.service.impl;import com.strongdata.workflow.common.core.constant.Constants;import com.strongdata.workflow.common.core.constant.SecurityConstants;import com.strongdata.workflow.common.core.security.SecurityUser;import com.strongdata.workflow.common.core.util.SecurityUtils...
package com.strongdata.workflow.modules.flowable.service.impl;import com.strongdata.workflow.common.core.util.ObjectUtils;import com.strongdata.workflow.modules.flowable.common.cmd.DeployModelCmd;import com.strongdata.workflow.modules.flowable.common.cmd.GetProcessDefinitionInfoCmd;import com.strongdata.workflow.module...
package com.strongdata.workflow.modules.flowable.service.impl;import com.strongdata.workflow.common.core.security.SecurityUser;import com.strongdata.workflow.common.core.util.CommonUtil;import com.strongdata.workflow.common.core.util.ObjectUtils;import com.strongdata.workflow.common.core.util.SecurityUtils;import com.s...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.controller;import com.baomidou.mybatisplus.core.toolkit.Wrappers;import com.strongdata.rill.core.base.util.R;import com.strongdata.rill.core.security.annota...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.controller;import cn.hutool.core.lang.tree.Tree;import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;import com.strongdata.rill.core.base.util...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.controller;import com.baomidou.mybatisplus.core.metadata.IPage;import com.baomidou.mybatisplus.core.toolkit.Wrappers;import com.baomidou.mybatisplus.extensi...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.controller;import cn.hutool.core.io.IoUtil;import com.baomidou.mybatisplus.core.metadata.IPage;import com.baomidou.mybatisplus.core.toolkit.Wrappers;import ...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.controller;import com.baomidou.mybatisplus.core.metadata.IPage;import com.baomidou.mybatisplus.extension.plugins.pagination.Page;import com.strongdata.rill....
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.controller;import cn.hutool.core.lang.tree.Tree;import com.strongdata.rill.core.base.util.R;import com.strongdata.rill.core.log.annotation.SysLog;import com...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.controller;import com.baomidou.mybatisplus.core.metadata.IPage;import com.baomidou.mybatisplus.core.toolkit.Wrappers;import com.baomidou.mybatisplus.extensi...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.controller;import com.baomidou.mybatisplus.core.metadata.IPage;import com.baomidou.mybatisplus.core.toolkit.Wrappers;import com.baomidou.mybatisplus.extensi...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.controller;import com.strongdata.rill.core.base.constant.SecurityConstants;import com.strongdata.rill.core.base.util.R;import com.strongdata.rill.iam.api.fe...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.controller;import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;import com.baomidou.mybatisplus.core.metadata.IPage;import com.baomidou.mybati...
package com.strongdata.rill.iam.controller;import com.alibaba.fastjson.JSON;import com.baomidou.mybatisplus.core.toolkit.Wrappers;import com.strongdata.rill.core.base.constant.enums.UserInfoStatusEnum;import com.strongdata.rill.core.base.util.R;import com.strongdata.rill.core.log.annotation.SysLog;import com.strongdata...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.service.impl;import cn.hutool.core.collection.CollUtil;import cn.hutool.core.util.RandomUtil;import com.baomidou.mybatisplus.core.toolkit.Wrappers;import co...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.service.impl;import cn.hutool.core.collection.CollUtil;import com.baomidou.mybatisplus.core.toolkit.Wrappers;import com.baomidou.mybatisplus.extension.servi...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.service.impl;import cn.hutool.core.collection.CollUtil;import cn.hutool.core.lang.tree.Tree;import cn.hutool.core.lang.tree.TreeNode;import cn.hutool.core.l...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.service.impl;import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;import com.strongdata.rill.core.base.constant.CacheConstants;import com.stro...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.service.impl;import com.baomidou.mybatisplus.core.toolkit.Wrappers;import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;import com.strongdata....
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.service.impl;import cn.hutool.core.io.FileUtil;import cn.hutool.core.io.IoUtil;import cn.hutool.core.util.IdUtil;import cn.hutool.core.util.StrUtil;import c...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.service.impl;import cn.hutool.core.util.ArrayUtil;import cn.hutool.core.util.StrUtil;import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrappe...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.service.impl;import cn.hutool.core.collection.CollUtil;import cn.hutool.core.lang.tree.Tree;import cn.hutool.core.lang.tree.TreeNode;import cn.hutool.core.l...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.service.impl;import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;import com.strongdata.rill.core.base.constant.CacheConstants;import com.stro...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.service.impl;import cn.hutool.core.util.StrUtil;import com.baomidou.mybatisplus.core.toolkit.Wrappers;import com.baomidou.mybatisplus.extension.service.impl...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.service.impl;import com.baomidou.mybatisplus.core.toolkit.Wrappers;import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;import com.strongdata....
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.service.impl;import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;import com.strongdata.rill.iam.api.entity.SysUserRole;import com.strongdata....
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.iam.service.impl;import cn.hutool.core.collection.CollUtil;import cn.hutool.core.util.ArrayUtil;import cn.hutool.core.util.StrUtil;import com.baomidou.mybatispl...
package com.strongdata.rill.iam.service.impl;import com.alibaba.fastjson.JSON;import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;import com.baomidou.mybatisplus.core.toolkit.Wrappers;import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;import com.strongdata.rill.core.base.constant.Common...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.annotation;import com.strongdata.rill.core.security.resource.config.RillResourceServerAutoConfiguration;import com.strongdata.rill.core.security.s...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.annotation;import java.lang.annotation.*;/** * 服务调用不鉴权注解 * * @author wildwind * @date 2022-03-14 */@Target({ ElementType.METHOD, ElementType.TYPE ...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.exception;import com.fasterxml.jackson.databind.annotation.JsonSerialize;import com.strongdata.rill.core.security.exception.translate.RillAuth2Exc...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.exception;import com.fasterxml.jackson.databind.annotation.JsonSerialize;import com.strongdata.rill.core.security.exception.translate.RillAuth2Exc...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.exception;import com.fasterxml.jackson.databind.annotation.JsonSerialize;import com.strongdata.rill.core.security.exception.translate.RillAuth2Exc...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.exception;import com.fasterxml.jackson.databind.annotation.JsonSerialize;import com.strongdata.rill.core.security.exception.translate.RillAuth2Exc...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.exception;import com.fasterxml.jackson.databind.annotation.JsonSerialize;import com.strongdata.rill.core.security.exception.translate.RillAuth2Exc...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.exception;import com.fasterxml.jackson.databind.annotation.JsonSerialize;import com.strongdata.rill.core.security.exception.translate.RillAuth2Exc...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.exception.translate;import com.fasterxml.jackson.core.JsonGenerator;import com.fasterxml.jackson.databind.SerializerProvider;import com.fasterxml....
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.exception.translate;import com.strongdata.rill.core.security.exception.*;import lombok.SneakyThrows;import lombok.extern.slf4j.Slf4j;import org.sp...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.exception;import com.fasterxml.jackson.databind.annotation.JsonSerialize;import com.strongdata.rill.core.security.exception.translate.RillAuth2Exc...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.feign;import feign.RequestInterceptor;import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;import org.springframework.clo...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.feign;import cn.hutool.core.collection.CollUtil;import com.strongdata.rill.core.base.constant.SecurityConstants;import feign.RequestTemplate;impor...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.handler;import org.springframework.context.ApplicationListener;import org.springframework.security.authentication.event.AbstractAuthenticationFail...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.handler;import cn.hutool.core.collection.CollUtil;import org.springframework.context.ApplicationListener;import org.springframework.security.authe...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.handler;import cn.hutool.core.collection.CollUtil;import org.springframework.context.ApplicationListener;import org.springframework.security.authe...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.handler;import cn.hutool.core.util.CharsetUtil;import cn.hutool.http.HttpUtil;import com.strongdata.rill.core.base.util.WebUtils;import lombok.Sne...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.handler;import cn.hutool.core.util.StrUtil;import org.springframework.http.HttpHeaders;import org.springframework.security.core.Authentication;imp...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.resource.config;import cn.hutool.core.util.ReUtil;import com.strongdata.rill.core.security.annotation.NoAuth;import lombok.Getter;import lombok.Se...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.resource.config;import com.fasterxml.jackson.databind.ObjectMapper;import com.strongdata.rill.core.security.resource.services.PermissionService;im...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.resource.endpoint;import cn.hutool.http.HttpStatus;import com.fasterxml.jackson.databind.ObjectMapper;import com.strongdata.rill.core.base.constan...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.resource;import com.strongdata.rill.core.security.resource.config.PermitUrlsProperties;import org.springframework.security.core.Authentication;imp...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.resource;import com.strongdata.rill.core.security.resource.config.PermitUrlsProperties;import com.strongdata.rill.core.security.resource.endpoint....
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.resource;import com.strongdata.rill.core.base.constant.SecurityConstants;import com.strongdata.rill.core.security.resource.RillResourceServerConfi...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.resource.services;import cn.hutool.core.util.ArrayUtil;import org.springframework.security.core.Authentication;import org.springframework.security...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.resource.services;import cn.hutool.extra.spring.SpringUtil;import com.strongdata.rill.core.security.exception.UnauthorizedException;import com.str...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security;import lombok.Getter;import org.springframework.security.core.GrantedAuthority;import org.springframework.security.core.userdetails.User;import ja...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security;import cn.hutool.core.util.ArrayUtil;import cn.hutool.core.util.StrUtil;import com.strongdata.rill.core.base.constant.CommonConstants;import com.s...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.server.grant.app;import cn.hutool.extra.spring.SpringUtil;import com.strongdata.rill.core.security.RillUserDetailsService;import lombok.Setter;imp...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.server.grant.app;import lombok.Getter;import org.springframework.security.authentication.AbstractAuthenticationToken;import org.springframework.se...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.server.grant.app;import cn.hutool.core.util.StrUtil;import org.springframework.security.authentication.AbstractAuthenticationToken;import org.spri...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.server.grant.app;import com.strongdata.rill.core.base.constant.CacheConstants;import com.strongdata.rill.core.base.constant.SecurityConstants;impo...
package com.strongdata.rill.core.security.server.grant.captcha;import cn.hutool.core.lang.Assert;import cn.hutool.core.util.StrUtil;import com.strongdata.rill.core.base.constant.CacheConstants;import org.springframework.data.redis.core.StringRedisTemplate;import org.springframework.security.authentication.*;import org....
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.server.grant.password;import cn.hutool.extra.spring.SpringUtil;import com.strongdata.rill.core.base.util.WebUtils;import com.strongdata.rill.core....
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.server.grant.password;import com.strongdata.rill.core.base.constant.CacheConstants;import com.strongdata.rill.core.base.constant.SecurityConstants...
package com.strongdata.rill.core.security.server.grant.wechatEnterprise;import cn.hutool.extra.spring.SpringUtil;import com.alibaba.fastjson.JSON;import com.strongdata.rill.core.security.RillUserDetailsService;import lombok.extern.slf4j.Slf4j;import org.springframework.core.Ordered;import org.springframework.security.a...
package com.strongdata.rill.core.security.server.grant.wechatEnterprise;import lombok.Getter;import org.springframework.security.authentication.AbstractAuthenticationToken;import org.springframework.security.core.authority.AuthorityUtils;import org.springframework.security.core.userdetails.UserDetails;public class Wech...
package com.strongdata.rill.core.security.server.grant.wechatEnterprise;import cn.hutool.core.util.StrUtil;import com.strongdata.rill.core.base.constant.SecurityConstants;import org.springframework.security.authentication.AbstractAuthenticationToken;import org.springframework.security.authentication.AuthenticationManag...
package com.strongdata.rill.core.security.server.grant.wechatEnterprise;import com.strongdata.rill.core.base.constant.CacheConstants;import com.strongdata.rill.core.base.constant.SecurityConstants;import com.strongdata.rill.core.base.util.R;import com.strongdata.rill.core.security.RillUser;import com.strongdata.rill.co...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.server;import org.springframework.boot.autoconfigure.AutoConfigureAfter;import org.springframework.boot.autoconfigure.condition.AllNestedCondition...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.server;import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;import org.springframework.context.MessageSource;import...
/* * * * * * * Copyright (c) 2022 strongdata Authors. All Rights Reserved. * * * * * * http://www.strongdata.com.cn * * * */package com.strongdata.rill.core.security.server;import cn.hutool.core.util.StrUtil;import com.strongdata.rill.core.base.constant.SecurityConstants;import com.strongdata.rill.core.security...