Commit 8e50bc1a authored by 雍欢's avatar 雍欢

shiro-redis 升级到2.8.24(支持配置redis连接password)

parent 722f82a8
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<parent> <parent>
<groupId>com.huigou</groupId> <groupId>com.huigou</groupId>
<artifactId>root</artifactId> <artifactId>root</artifactId>
<version>1.1.1</version> <version>1.1.2-SNAPSHOT</version>
</parent> </parent>
<artifactId>huigou-common</artifactId> <artifactId>huigou-common</artifactId>
<name>huigou-common</name> <name>huigou-common</name>
......
...@@ -186,6 +186,7 @@ public class OrgUnit implements Serializable { ...@@ -186,6 +186,7 @@ public class OrgUnit implements Serializable {
return this.getAttributeValue(PERSON_MEMBER_NAME_FIELD_NAME); return this.getAttributeValue(PERSON_MEMBER_NAME_FIELD_NAME);
} }
@Override
public String toString() { public String toString() {
return "(" + this.fullId + "," + this.fullName + ")@OrgUnit"; return "(" + this.fullId + "," + this.fullName + ")@OrgUnit";
} }
......
...@@ -64,8 +64,11 @@ public class PersonMember extends OrgNode implements Serializable { ...@@ -64,8 +64,11 @@ public class PersonMember extends OrgNode implements Serializable {
* @return * @return
*/ */
public OrgNode getPosition() { public OrgNode getPosition() {
for (Object parent = this; parent != null; parent = ((OrgNode) parent).getParent()) for (Object parent = this; parent != null; parent = ((OrgNode) parent).getParent()) {
if ("pos".equals(((OrgNode) parent).getType())) return (OrgNode) parent; if ("pos".equals(((OrgNode) parent).getType())) {
return (OrgNode) parent;
}
}
return null; return null;
} }
...@@ -75,8 +78,11 @@ public class PersonMember extends OrgNode implements Serializable { ...@@ -75,8 +78,11 @@ public class PersonMember extends OrgNode implements Serializable {
* @return * @return
*/ */
public OrgNode getDept() { public OrgNode getDept() {
for (Object parent = this; parent != null; parent = ((OrgNode) parent).getParent()) for (Object parent = this; parent != null; parent = ((OrgNode) parent).getParent()) {
if ("dpt".equals(((OrgNode) parent).getType())) return (OrgNode) parent; if ("dpt".equals(((OrgNode) parent).getType())) {
return (OrgNode) parent;
}
}
return null; return null;
} }
...@@ -86,8 +92,11 @@ public class PersonMember extends OrgNode implements Serializable { ...@@ -86,8 +92,11 @@ public class PersonMember extends OrgNode implements Serializable {
* @return * @return
*/ */
public OrgNode getOrgn() { public OrgNode getOrgn() {
for (Object parent = this; parent != null; parent = ((OrgNode) parent).getParent()) for (Object parent = this; parent != null; parent = ((OrgNode) parent).getParent()) {
if ("ogn".equals(((OrgNode) parent).getType())) return (OrgNode) parent; if ("ogn".equals(((OrgNode) parent).getType())) {
return (OrgNode) parent;
}
}
return null; return null;
} }
...@@ -107,6 +116,7 @@ public class PersonMember extends OrgNode implements Serializable { ...@@ -107,6 +116,7 @@ public class PersonMember extends OrgNode implements Serializable {
this.personId = personId; this.personId = personId;
} }
@Override
public String getOrgId() { public String getOrgId() {
return orgId; return orgId;
} }
...@@ -115,6 +125,7 @@ public class PersonMember extends OrgNode implements Serializable { ...@@ -115,6 +125,7 @@ public class PersonMember extends OrgNode implements Serializable {
this.orgId = orgId; this.orgId = orgId;
} }
@Override
public String getOrgCode() { public String getOrgCode() {
return orgCode; return orgCode;
} }
...@@ -123,6 +134,7 @@ public class PersonMember extends OrgNode implements Serializable { ...@@ -123,6 +134,7 @@ public class PersonMember extends OrgNode implements Serializable {
this.orgCode = orgCode; this.orgCode = orgCode;
} }
@Override
public String getOrgName() { public String getOrgName() {
return orgName; return orgName;
} }
...@@ -131,6 +143,7 @@ public class PersonMember extends OrgNode implements Serializable { ...@@ -131,6 +143,7 @@ public class PersonMember extends OrgNode implements Serializable {
this.orgName = orgName; this.orgName = orgName;
} }
@Override
public String getDeptId() { public String getDeptId() {
return deptId; return deptId;
} }
...@@ -139,6 +152,7 @@ public class PersonMember extends OrgNode implements Serializable { ...@@ -139,6 +152,7 @@ public class PersonMember extends OrgNode implements Serializable {
this.deptId = deptId; this.deptId = deptId;
} }
@Override
public String getDeptCode() { public String getDeptCode() {
return deptCode; return deptCode;
} }
...@@ -147,6 +161,7 @@ public class PersonMember extends OrgNode implements Serializable { ...@@ -147,6 +161,7 @@ public class PersonMember extends OrgNode implements Serializable {
this.deptCode = deptCode; this.deptCode = deptCode;
} }
@Override
public String getDeptName() { public String getDeptName() {
return deptName; return deptName;
} }
...@@ -155,6 +170,7 @@ public class PersonMember extends OrgNode implements Serializable { ...@@ -155,6 +170,7 @@ public class PersonMember extends OrgNode implements Serializable {
this.deptName = deptName; this.deptName = deptName;
} }
@Override
public String getPositionId() { public String getPositionId() {
return positionId; return positionId;
} }
...@@ -163,6 +179,7 @@ public class PersonMember extends OrgNode implements Serializable { ...@@ -163,6 +179,7 @@ public class PersonMember extends OrgNode implements Serializable {
this.positionId = positionId; this.positionId = positionId;
} }
@Override
public String getPositionCode() { public String getPositionCode() {
return positionCode; return positionCode;
} }
...@@ -171,6 +188,7 @@ public class PersonMember extends OrgNode implements Serializable { ...@@ -171,6 +188,7 @@ public class PersonMember extends OrgNode implements Serializable {
this.positionCode = positionCode; this.positionCode = positionCode;
} }
@Override
public String getPositionName() { public String getPositionName() {
return positionName; return positionName;
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<parent> <parent>
<groupId>com.huigou</groupId> <groupId>com.huigou</groupId>
<artifactId>root</artifactId> <artifactId>root</artifactId>
<version>1.1.1</version> <version>1.1.2-SNAPSHOT</version>
</parent> </parent>
<artifactId>huigou-core-api</artifactId> <artifactId>huigou-core-api</artifactId>
<name>huigou-core-api</name> <name>huigou-core-api</name>
......
...@@ -2,24 +2,48 @@ package com.huigou.uasp.bpm.configuration.domain.model; ...@@ -2,24 +2,48 @@ package com.huigou.uasp.bpm.configuration.domain.model;
/** /**
* 处理人类型 * 处理人类型
* *
* @author gongmm * @author gongmm
*/ */
public enum HandlerKind { public enum HandlerKind {
/**
* 管理权限
*/
MANAGE_AUTHORITY("ManageAuthority", " 管理权限"), MANAGE_AUTHORITY("ManageAuthority", " 管理权限"),
/**
* 岗位
*/
POS("Pos", "岗位"), POS("Pos", "岗位"),
/**
* 人员成员
*/
PSM("Psm", "人员成员"), PSM("Psm", "人员成员"),
/**
* 部门
*/
DEPT("Dept", "部门"), DEPT("Dept", "部门"),
/**
* 管理人员函数
*/
MANAGER_FUN("ManagerFun", "管理人员函数"), MANAGER_FUN("ManagerFun", "管理人员函数"),
/**
* 基础段
*/
SEGMENTATION("Segmentation", "基础段"), SEGMENTATION("Segmentation", "基础段"),
/**
* 手工选择
*/
MANUAL_SELECTION("ManualSelection", "手工选择"), MANUAL_SELECTION("ManualSelection", "手工选择"),
/**
* 范围选择
*/
SCOPE_SELECTION("ScopeSelection", "范围选择"); SCOPE_SELECTION("ScopeSelection", "范围选择");
private final String id; private final String id;
private final String displayName; private final String displayName;
private HandlerKind(String id, String displayName) { HandlerKind(String id, String displayName) {
this.id = id; this.id = id;
this.displayName = displayName; this.displayName = displayName;
} }
......
...@@ -7,36 +7,29 @@ import com.huigou.uasp.bpm.configuration.domain.model.HandlerKind; ...@@ -7,36 +7,29 @@ import com.huigou.uasp.bpm.configuration.domain.model.HandlerKind;
/** /**
* 处理人解析服务 * 处理人解析服务
* *
* @author gongmm * @author gongmm
*/ */
public interface HandlerParseService { public interface HandlerParseService {
static String CURRENT_BIZ_SEGEMENTATION_ID = "currentBizSegementationId"; String CURRENT_BIZ_SEGEMENTATION_ID = "currentBizSegementationId";
/** /**
* 构建处理人 * 构建处理人
* *
* @param handlerKind * @param handlerKind 处理人类别
* 处理人类别 * @param handlerId 处理人ID
* @param handlerId * @param orgUnits 组织机构单元
* 处理人ID
* @param orgUnits
* 组织机构单元
*/ */
void buildHandler(HandlerKind handlerKind, String handlerId, List<OrgUnit> orgUnits); void buildHandler(HandlerKind handlerKind, String handlerId, List<OrgUnit> orgUnits);
/** /**
* 构建处理人 * 构建处理人
* *
* @param handlerKind * @param handlerKind 处理人类别
* 处理人类别 * @param bizSegementationId 业务段ID
* @param bizSegementationId * @param handlerId 处理人ID
* 业务段ID * @param orgUnits 组织机构单元
* @param handlerId
* 处理人ID
* @param orgUnits
* 组织机构单元
*/ */
void buildSegmentationHandler(HandlerKind handlerKind, Long bizSegementationId, String handlerId, List<OrgUnit> orgUnits); void buildSegmentationHandler(HandlerKind handlerKind, Long bizSegementationId, String handlerId, List<OrgUnit> orgUnits);
} }
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
<parent> <parent>
<groupId>com.huigou</groupId> <groupId>com.huigou</groupId>
<artifactId>root</artifactId> <artifactId>root</artifactId>
<version>1.1.1</version> <version>1.1.2-SNAPSHOT</version>
</parent> </parent>
<artifactId>huigou-core-impl</artifactId> <artifactId>huigou-core-impl</artifactId>
<name>huigou-core-impl</name> <name>huigou-core-impl</name>
......
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
<parent> <parent>
<groupId>com.huigou</groupId> <groupId>com.huigou</groupId>
<artifactId>root</artifactId> <artifactId>root</artifactId>
<version>1.1.1</version> <version>1.1.2-SNAPSHOT</version>
</parent> </parent>
<artifactId>huigou-core-proxy</artifactId> <artifactId>huigou-core-proxy</artifactId>
<name>huigou-core-proxy</name> <name>huigou-core-proxy</name>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<parent> <parent>
<groupId>com.huigou</groupId> <groupId>com.huigou</groupId>
<artifactId>root</artifactId> <artifactId>root</artifactId>
<version>1.1.1</version> <version>1.1.2-SNAPSHOT</version>
</parent> </parent>
<artifactId>huigou-data</artifactId> <artifactId>huigou-data</artifactId>
<name>huigou-data</name> <name>huigou-data</name>
......
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
<parent> <parent>
<groupId>com.huigou</groupId> <groupId>com.huigou</groupId>
<artifactId>root</artifactId> <artifactId>root</artifactId>
<version>1.1.1</version> <version>1.1.2-SNAPSHOT</version>
</parent> </parent>
<artifactId>huigou-loader</artifactId> <artifactId>huigou-loader</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<parent> <parent>
<groupId>com.huigou</groupId> <groupId>com.huigou</groupId>
<artifactId>root</artifactId> <artifactId>root</artifactId>
<version>1.1.1</version> <version>1.1.2-SNAPSHOT</version>
</parent> </parent>
<artifactId>huigou-system-common</artifactId> <artifactId>huigou-system-common</artifactId>
......
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
<parent> <parent>
<groupId>com.huigou</groupId> <groupId>com.huigou</groupId>
<artifactId>root</artifactId> <artifactId>root</artifactId>
<version>1.1.1</version> <version>1.1.2-SNAPSHOT</version>
</parent> </parent>
<artifactId>huigou-uasp</artifactId> <artifactId>huigou-uasp</artifactId>
<name>统一架构平台</name> <name>统一架构平台</name>
...@@ -329,6 +328,12 @@ ...@@ -329,6 +328,12 @@
<groupId>com.github.binarywang</groupId> <groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-cp</artifactId> <artifactId>weixin-java-cp</artifactId>
<version>2.4.3</version> <version>2.4.3</version>
<exclusions>
<exclusion>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.huigou</groupId> <groupId>com.huigou</groupId>
......
...@@ -110,6 +110,7 @@ public class HandlerParseServiceImpl implements HandlerParseService { ...@@ -110,6 +110,7 @@ public class HandlerParseServiceImpl implements HandlerParseService {
} }
} }
@Override
public void buildSegmentationHandler(HandlerKind handlerKind, Long bizSegementationId, String handlerId, List<OrgUnit> orgUnits) { public void buildSegmentationHandler(HandlerKind handlerKind, Long bizSegementationId, String handlerId, List<OrgUnit> orgUnits) {
ThreadLocalUtil.putVariable(CURRENT_BIZ_SEGEMENTATION_ID, bizSegementationId); ThreadLocalUtil.putVariable(CURRENT_BIZ_SEGEMENTATION_ID, bizSegementationId);
try { try {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<parent> <parent>
<groupId>com.huigou</groupId> <groupId>com.huigou</groupId>
<artifactId>root</artifactId> <artifactId>root</artifactId>
<version>1.1.1</version> <version>1.1.2-SNAPSHOT</version>
</parent> </parent>
<artifactId>huigou-xt</artifactId> <artifactId>huigou-xt</artifactId>
<name>统一应用支撑平台</name> <name>统一应用支撑平台</name>
......
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
<groupId>com.huigou</groupId> <groupId>com.huigou</groupId>
<artifactId>root</artifactId> <artifactId>root</artifactId>
<version>1.1.1</version> <version>1.1.2-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<modules> <modules>
...@@ -152,14 +151,14 @@ ...@@ -152,14 +151,14 @@
<tomcat.version>8.5.20</tomcat.version> <tomcat.version>8.5.20</tomcat.version>
<shiro.version>1.2.5</shiro.version> <shiro.version>1.2.5</shiro.version>
<jedis.version>2.9.0</jedis.version> <jedis.version>2.9.0</jedis.version>
<shiro-redis.version>2.4.2-RELEASE</shiro-redis.version> <shiro-redis.version>2.8.24</shiro-redis.version>
<shiro-ehcache.version>1.4.0</shiro-ehcache.version> <shiro-ehcache.version>1.4.0</shiro-ehcache.version>
<shiro-cas.version>1.2.4</shiro-cas.version> <shiro-cas.version>1.2.4</shiro-cas.version>
<cas-client-core.version>3.2.1</cas-client-core.version> <cas-client-core.version>3.2.1</cas-client-core.version>
<!-- test --> <!-- test -->
<junit.version>4.9</junit.version> <junit.version>4.9</junit.version>
<spring-data-mongodb.version>1.9.3.RELEASE</spring-data-mongodb.version> <spring-data-mongodb.version>1.9.3.RELEASE</spring-data-mongodb.version>
<huigou.uasp.version>1.1.1</huigou.uasp.version> <huigou.uasp.version>1.1.2-SNAPSHOT</huigou.uasp.version>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment