|
|
@ -1,9 +1,11 @@ |
|
|
|
package com.fr.design.env; |
|
|
|
package com.fr.design.env; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.Inter; |
|
|
|
|
|
|
|
import com.fr.report.util.RemoteDesignAuthenticateUtils; |
|
|
|
import com.fr.workspace.Workspace; |
|
|
|
import com.fr.workspace.Workspace; |
|
|
|
import com.fr.workspace.connect.WorkspaceClient; |
|
|
|
import com.fr.workspace.connect.WorkspaceClient; |
|
|
|
import com.fr.workspace.connect.WorkspaceConnection; |
|
|
|
import com.fr.workspace.connect.WorkspaceConnection; |
|
|
|
|
|
|
|
import com.fr.workspace.engine.WorkspaceServerContext; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Created by juhaoyu on 2018/6/14. |
|
|
|
* Created by juhaoyu on 2018/6/14. |
|
|
@ -54,6 +56,15 @@ public class RemoteWorkspace implements Workspace { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public boolean isRoot() { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
return RemoteDesignAuthenticateUtils.isRoot(WorkspaceServerContext.currentUsername()); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public <T> T get(Class<T> type) { |
|
|
|
public <T> T get(Class<T> type) { |
|
|
|
|
|
|
|
|
|
|
|