|
|
@ -2,6 +2,7 @@ package com.fr.design.env; |
|
|
|
|
|
|
|
|
|
|
|
import com.fanruan.workplace.http.HttpConstants; |
|
|
|
import com.fanruan.workplace.http.HttpConstants; |
|
|
|
import com.fanruan.workplace.http.RepositoryManager; |
|
|
|
import com.fanruan.workplace.http.RepositoryManager; |
|
|
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.workspace.server.repository.authority.RemoteAuthorityRepository; |
|
|
|
import com.fr.workspace.server.repository.authority.RemoteAuthorityRepository; |
|
|
|
import com.fr.workspace.server.repository.compatible.register.CompatibleRegister; |
|
|
|
import com.fr.workspace.server.repository.compatible.register.CompatibleRegister; |
|
|
@ -57,6 +58,7 @@ public class HttpWorkspaceConnector implements WorkspaceConnector { |
|
|
|
if (StringUtils.isEmpty(bean.getAccessToken())) { |
|
|
|
if (StringUtils.isEmpty(bean.getAccessToken())) { |
|
|
|
throw new RuntimeException("Empty token, try connect again and check server"); |
|
|
|
throw new RuntimeException("Empty token, try connect again and check server"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().info("[connector] infos:{}", bean.getAccessToken()); |
|
|
|
WorkspaceConnection connection = new WorkspaceConnection( |
|
|
|
WorkspaceConnection connection = new WorkspaceConnection( |
|
|
|
UUID.randomUUID().toString(), |
|
|
|
UUID.randomUUID().toString(), |
|
|
|
connectionInfo.getUserName(), |
|
|
|
connectionInfo.getUserName(), |
|
|
|