|
|
@ -6,6 +6,7 @@ import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.security.SecurityToolbox; |
|
|
|
import com.fr.security.SecurityToolbox; |
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
import com.fr.stable.fun.mark.Immutable; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
import com.fr.stable.xml.XMLPrintWriter; |
|
|
|
import com.fr.stable.xml.XMLPrintWriter; |
|
|
|
import com.fr.stable.xml.XMLableReader; |
|
|
|
import com.fr.stable.xml.XMLableReader; |
|
|
@ -166,6 +167,15 @@ public class RemoteDesignerWorkspaceInfo implements DesignerWorkspaceInfo { |
|
|
|
return object; |
|
|
|
return object; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* clone一个自定义连接信息的RemoteDesignerWorkspaceInfo |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public Object cloneWithConnectionInfo(WorkspaceConnectionInfo workspaceConnectionInfo) throws CloneNotSupportedException { |
|
|
|
|
|
|
|
RemoteDesignerWorkspaceInfo object = (RemoteDesignerWorkspaceInfo) super.clone(); |
|
|
|
|
|
|
|
object.connection = workspaceConnectionInfo; |
|
|
|
|
|
|
|
return object; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean checkValid() throws Exception { |
|
|
|
public boolean checkValid() throws Exception { |
|
|
@ -181,4 +191,24 @@ public class RemoteDesignerWorkspaceInfo implements DesignerWorkspaceInfo { |
|
|
|
WorkContext.getConnector().validateVT(connection); |
|
|
|
WorkContext.getConnector().validateVT(connection); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 远程设计自定义用户名接口 |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @author John.Ying |
|
|
|
|
|
|
|
* @version 11.0 |
|
|
|
|
|
|
|
* Created by John.Ying on 2023/5/17 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public interface RemoteDesignerWorkspaceInfoProcessor extends Immutable { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String XML_TAG = "RemoteDesignerWorkspaceInfoProcessor"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int CURRENT_LEVEL = 1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 返回一个新的自定义连接信息 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
WorkspaceConnectionInfo customUserName(WorkspaceConnectionInfo workspaceInfo); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|