|
|
|
@ -2,6 +2,7 @@ package com.fr.design.lock;
|
|
|
|
|
|
|
|
|
|
import com.fr.report.lock.DefaultLockInfoOperator; |
|
|
|
|
import com.fr.report.lock.LockInfoOperator; |
|
|
|
|
import com.fr.start.server.FineEmbedServer; |
|
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -15,4 +16,8 @@ public class LockInfoUtils {
|
|
|
|
|
LockInfoOperator lockInfoOperator = WorkContext.getCurrent().get(LockInfoOperator.class); |
|
|
|
|
return lockInfoOperator instanceof DefaultLockInfoOperator; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static boolean unableGetLockInfo() { |
|
|
|
|
return WorkContext.getCurrent().isLocal() && !FineEmbedServer.isRunning(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|