|
|
@ -11,6 +11,11 @@ import com.fanruan.workplace.conetxt.CompatiblePool; |
|
|
|
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.fanruan.workplace.http.WorkspaceHeartBeatShell; |
|
|
|
import com.fanruan.workplace.http.WorkspaceHeartBeatShell; |
|
|
|
|
|
|
|
import com.fr.workspace.engine.exception.RemoteDesignLoginLockHandler; |
|
|
|
|
|
|
|
import com.fr.workspace.engine.exception.RemoteDesignNoAuthHandler; |
|
|
|
|
|
|
|
import com.fr.workspace.engine.exception.RemoteDesignPasswordNeedUpdateHandler; |
|
|
|
|
|
|
|
import com.fr.workspace.engine.exception.RemoteDesignPasswordStrengthHandler; |
|
|
|
|
|
|
|
import com.fr.workspace.engine.exception.RemoteDesignUserPwdErrorHandler; |
|
|
|
import com.fanruan.workplace.http.exception.RemoteExceptionConvert; |
|
|
|
import com.fanruan.workplace.http.exception.RemoteExceptionConvert; |
|
|
|
import com.fanruan.workplace.standard.ServerInfo; |
|
|
|
import com.fanruan.workplace.standard.ServerInfo; |
|
|
|
import com.fanruan.workplace.standard.ServerInfoOperator; |
|
|
|
import com.fanruan.workplace.standard.ServerInfoOperator; |
|
|
@ -43,10 +48,6 @@ import com.fr.workspace.engine.FineWorkspaceFactory; |
|
|
|
import com.fr.workspace.engine.base.FineObjectPool; |
|
|
|
import com.fr.workspace.engine.base.FineObjectPool; |
|
|
|
import com.fr.workspace.engine.client.heartbeart.FineWorkspaceHeartbeat; |
|
|
|
import com.fr.workspace.engine.client.heartbeart.FineWorkspaceHeartbeat; |
|
|
|
import com.fr.workspace.engine.client.heartbeart.WorkspaceHeartbeat; |
|
|
|
import com.fr.workspace.engine.client.heartbeart.WorkspaceHeartbeat; |
|
|
|
import com.fr.workspace.engine.exception.RemoteDesignNoAuthException; |
|
|
|
|
|
|
|
import com.fr.workspace.engine.exception.RemoteDesignPasswordNeedUpdateException; |
|
|
|
|
|
|
|
import com.fr.workspace.engine.exception.RemoteDesignPasswordStrengthException; |
|
|
|
|
|
|
|
import com.fr.workspace.engine.exception.RemoteDesignUserPwdErrorException; |
|
|
|
|
|
|
|
import com.fr.workspace.engine.resource.FineWorkResource; |
|
|
|
import com.fr.workspace.engine.resource.FineWorkResource; |
|
|
|
import com.fr.workspace.engine.resource.FineWorkResourceAdaptor; |
|
|
|
import com.fr.workspace.engine.resource.FineWorkResourceAdaptor; |
|
|
|
import com.fr.workspace.pool.WorkRPCRegister; |
|
|
|
import com.fr.workspace.pool.WorkRPCRegister; |
|
|
@ -144,11 +145,12 @@ public class DesignWorkContextComponent { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void startErrorConvert() { |
|
|
|
private void startErrorConvert() { |
|
|
|
RemoteExceptionConvert.registerException(HttpConstants.USER_PWD_ERROR_CODE, new RemoteDesignUserPwdErrorException()); |
|
|
|
RemoteExceptionConvert.registerException(HttpConstants.USER_PWD_ERROR_CODE, new RemoteDesignUserPwdErrorHandler()); |
|
|
|
RemoteExceptionConvert.registerException(HttpConstants.USER_PWD_NEED_UPDATE, new RemoteDesignPasswordNeedUpdateException()); |
|
|
|
RemoteExceptionConvert.registerException(HttpConstants.USER_PWD_NEED_UPDATE, new RemoteDesignPasswordNeedUpdateHandler()); |
|
|
|
RemoteExceptionConvert.registerException(HttpConstants.PASSWORD_STRENGTH_ERROR_CODE, new RemoteDesignPasswordStrengthException()); |
|
|
|
RemoteExceptionConvert.registerException(HttpConstants.PASSWORD_STRENGTH_ERROR_CODE, new RemoteDesignPasswordStrengthHandler()); |
|
|
|
RemoteExceptionConvert.registerException(HttpConstants.REMOTE_AUTHORITY_ERROR_CODE, new RemoteDesignNoAuthException()); |
|
|
|
RemoteExceptionConvert.registerException(HttpConstants.REMOTE_AUTHORITY_ERROR_CODE, new RemoteDesignNoAuthHandler()); |
|
|
|
RemoteExceptionConvert.registerException(HttpConstants.PASSWORD_EMPTY_ERROR_CODE, new RemoteDesignUserPwdErrorException()); |
|
|
|
RemoteExceptionConvert.registerException(HttpConstants.PASSWORD_EMPTY_ERROR_CODE, new RemoteDesignUserPwdErrorHandler()); |
|
|
|
|
|
|
|
RemoteExceptionConvert.registerException(HttpConstants.LOGIN_LOCK, new RemoteDesignLoginLockHandler()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void supplementalCommon() { |
|
|
|
private void supplementalCommon() { |
|
|
|