|
|
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|
|
import com.global.base.log.LogLevelFlag;
|
|
|
import com.global.base.log.LogPrintMgr;
|
|
|
import com.shkpr.service.customgateway.core.constants.LogFlagBusiType;
|
|
|
+import com.shkpr.service.customgateway.core.domain.CallingEndpoint;
|
|
|
import com.shkpr.service.customgateway.core.domain.IntegrationKey;
|
|
|
import com.shkpr.service.customgateway.core.domain.po.FunctionInfo;
|
|
|
import com.shkpr.service.customgateway.core.domain.po.PersonnelInfo;
|
|
|
@@ -68,7 +69,7 @@ public class InfoSynchronizer {
|
|
|
long begin = System.currentTimeMillis();
|
|
|
|
|
|
//对接点
|
|
|
- CallingProperties.CallingEndpoint endpoint = callingProperties.getEndpoints().get(MiddlePlatformMetadata.NAME);
|
|
|
+ CallingEndpoint endpoint = callingProperties.getEndpoint(MiddlePlatformMetadata.NAME);
|
|
|
|
|
|
//获取用户
|
|
|
List<MiddlePlatformUser> users = getUsers(endpoint);
|
|
|
@@ -119,7 +120,7 @@ public class InfoSynchronizer {
|
|
|
long begin = System.currentTimeMillis();
|
|
|
|
|
|
//对接点
|
|
|
- CallingProperties.CallingEndpoint endpoint = callingProperties.getEndpoints().get(MiddlePlatformMetadata.NAME);
|
|
|
+ CallingEndpoint endpoint = callingProperties.getEndpoint(MiddlePlatformMetadata.NAME);
|
|
|
|
|
|
//获取角色
|
|
|
List<MiddlePlatformRole> roles = getRoles(endpoint);
|
|
|
@@ -146,7 +147,7 @@ public class InfoSynchronizer {
|
|
|
* @param endpoint 对接点
|
|
|
* @return 用户列表
|
|
|
*/
|
|
|
- private List<MiddlePlatformUser> getUsers(CallingProperties.CallingEndpoint endpoint) {
|
|
|
+ private List<MiddlePlatformUser> getUsers(CallingEndpoint endpoint) {
|
|
|
//请求地址
|
|
|
String url = endpoint.getUrl() + MiddlePlatformMetadata.Uri.GET_USERS;
|
|
|
//请求获取用户
|
|
|
@@ -180,7 +181,7 @@ public class InfoSynchronizer {
|
|
|
* @param endpoint 对接点
|
|
|
* @return 角色列表
|
|
|
*/
|
|
|
- private List<MiddlePlatformRole> getRoles(CallingProperties.CallingEndpoint endpoint) {
|
|
|
+ private List<MiddlePlatformRole> getRoles(CallingEndpoint endpoint) {
|
|
|
//结果
|
|
|
List<MiddlePlatformRole> result = new ArrayList<>();
|
|
|
//请求地址
|
|
|
@@ -237,7 +238,7 @@ public class InfoSynchronizer {
|
|
|
* @param endpoint 对接点
|
|
|
* @return 角色列表
|
|
|
*/
|
|
|
- private List<MiddlePlatformUserRole> getUserRoles(CallingProperties.CallingEndpoint endpoint) {
|
|
|
+ private List<MiddlePlatformUserRole> getUserRoles(CallingEndpoint endpoint) {
|
|
|
//请求地址
|
|
|
String url = endpoint.getUrl() + MiddlePlatformMetadata.Uri.GET_USER_ROLES;
|
|
|
//参数
|