You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
675 B
23 lines
675 B
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; |
|
|
|
/** |
|
* @author hades |
|
* @version 11.0 |
|
* Created by hades on 2021/12/8 |
|
*/ |
|
public class LockInfoUtils { |
|
|
|
public static boolean isCompatibleOperator() { |
|
LockInfoOperator lockInfoOperator = WorkContext.getCurrent().get(LockInfoOperator.class); |
|
return lockInfoOperator instanceof DefaultLockInfoOperator; |
|
} |
|
|
|
public static boolean unableGetLockInfo() { |
|
return WorkContext.getCurrent().isLocal() && !FineEmbedServer.isRunning(); |
|
} |
|
}
|
|
|