mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-07-01 00:34:19 +08:00
3.0.0-RC-SNAPSHOT
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
<parent>
|
||||
<artifactId>hsweb-system-workflow-dao</artifactId>
|
||||
<groupId>org.hswebframework.web</groupId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<version>3.0.0-RC-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<parent>
|
||||
<artifactId>hsweb-system-workflow-dao</artifactId>
|
||||
<groupId>org.hswebframework.web</groupId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<version>3.0.0-RC-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<parent>
|
||||
<artifactId>hsweb-system-workflow</artifactId>
|
||||
<groupId>org.hswebframework.web</groupId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<version>3.0.0-RC-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<parent>
|
||||
<artifactId>hsweb-system-workflow</artifactId>
|
||||
<groupId>org.hswebframework.web</groupId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<version>3.0.0-RC-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>hsweb-system-workflow</artifactId>
|
||||
<groupId>org.hswebframework.web</groupId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<version>3.0.0-RC-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package org.hswebframework.web.workflow.flowable;
|
||||
|
||||
import org.activiti.engine.impl.interceptor.SessionFactory;
|
||||
import org.activiti.spring.boot.ProcessEngineConfigurationConfigurer;
|
||||
import org.hswebframework.web.service.authorization.UserService;
|
||||
import org.hswebframework.web.authorization.service.UserService;
|
||||
import org.hswebframework.web.workflow.flowable.utils.CustomGroupEntityManager;
|
||||
import org.hswebframework.web.workflow.flowable.utils.CustomGroupEntityManagerFactory;
|
||||
import org.hswebframework.web.workflow.flowable.utils.CustomUserEntityManager;
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.hswebframework.web.workflow.flowable.utils;
|
||||
import org.activiti.engine.identity.Group;
|
||||
import org.activiti.engine.impl.persistence.entity.GroupEntity;
|
||||
import org.activiti.engine.impl.persistence.entity.UserEntity;
|
||||
import org.hswebframework.web.entity.authorization.RoleEntity;
|
||||
import org.hswebframework.web.authorization.entity.RoleEntity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -13,7 +13,7 @@ import java.util.List;
|
||||
* @Date 2017/8/3.
|
||||
*/
|
||||
public class ActivitiUserUtil {
|
||||
public static UserEntity toActivitiUser(org.hswebframework.web.entity.authorization.UserEntity bUser) {
|
||||
public static UserEntity toActivitiUser(org.hswebframework.web.authorization.entity.UserEntity bUser) {
|
||||
UserEntity userEntity = new UserEntity();
|
||||
userEntity.setId(bUser.getId());
|
||||
userEntity.setFirstName(bUser.getUsername());
|
||||
|
||||
@@ -5,14 +5,11 @@ import org.activiti.engine.impl.GroupQueryImpl;
|
||||
import org.activiti.engine.impl.Page;
|
||||
import org.activiti.engine.impl.persistence.entity.GroupEntity;
|
||||
import org.activiti.engine.impl.persistence.entity.GroupEntityManager;
|
||||
import org.hswebframework.web.entity.authorization.RoleEntity;
|
||||
import org.hswebframework.web.service.authorization.UserService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.hswebframework.web.authorization.entity.RoleEntity;
|
||||
import org.hswebframework.web.authorization.service.UserService;
|
||||
import org.springframework.dao.EmptyResultDataAccessException;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class CustomGroupEntityManager extends GroupEntityManager {
|
||||
|
||||
@@ -6,13 +6,11 @@ import org.activiti.engine.impl.UserQueryImpl;
|
||||
import org.activiti.engine.impl.persistence.entity.IdentityInfoEntity;
|
||||
import org.activiti.engine.impl.persistence.entity.UserEntity;
|
||||
import org.activiti.engine.impl.persistence.entity.UserEntityManager;
|
||||
import org.hswebframework.web.entity.authorization.RoleEntity;
|
||||
import org.hswebframework.web.service.authorization.UserService;
|
||||
import org.hswebframework.web.authorization.entity.RoleEntity;
|
||||
import org.hswebframework.web.authorization.service.UserService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.dao.EmptyResultDataAccessException;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -31,7 +29,7 @@ public class CustomUserEntityManager extends UserEntityManager {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
org.hswebframework.web.entity.authorization.UserEntity user = userService.selectByPk(userId);
|
||||
org.hswebframework.web.authorization.entity.UserEntity user = userService.selectByPk(userId);
|
||||
return ActivitiUserUtil.toActivitiUser(user);
|
||||
} catch (EmptyResultDataAccessException e) {
|
||||
return null;
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<parent>
|
||||
<artifactId>hsweb-system-workflow-service</artifactId>
|
||||
<groupId>org.hswebframework.web</groupId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<version>3.0.0-RC-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<parent>
|
||||
<artifactId>hsweb-system-workflow-service</artifactId>
|
||||
<groupId>org.hswebframework.web</groupId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<version>3.0.0-RC-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<parent>
|
||||
<artifactId>hsweb-system-workflow</artifactId>
|
||||
<groupId>org.hswebframework.web</groupId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<version>3.0.0-RC-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>hsweb-system-workflow</artifactId>
|
||||
<groupId>org.hswebframework.web</groupId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<version>3.0.0-RC-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>hsweb-system</artifactId>
|
||||
<groupId>org.hswebframework.web</groupId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<version>3.0.0-RC-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user