Comments (1)
关于Lock的使用,我实在是有点晕。
可以简单讲讲吗?感谢
wopi协议里有个与锁有关的接口
@PostMapping("/files/{name}")
public ResponseEntity handleLock(@PathVariable(name = "name") String name, HttpServletRequest request) {
return wopiHostService.handleLock(name, request);
}
与锁有关的操作有获取锁,加锁,刷新锁,解锁。我的代码中已经实现了这4个操作。在编辑文件的时候,office会调用上面的接口去获取锁,然后对文件加锁。如果加锁成功,就可以对文件进行编辑操作,加锁失败则不能编辑。刷新锁操作通过将文件的自动到期计时器重置为30分钟来刷新文件上的锁,之后会进行解锁。
from wopihost.
Related Issues (17)
- 中文名的文件无法打开 HOT 3
- 可以设置当前编辑的用户吗 HOT 1
- 收费问题 HOT 1
- 求助!WOPISrc使用HTTPS协议不能预览Excel文稿 HOT 3
- xlsx无法在线预览,但是在线编辑正常 HOT 2
- 我用generate页面填入域控服务器下的服务url,就直接报错 HOT 2
- access_token怎样安全传输到服务端
- Error while opening the file. HOT 1
- 编辑页面可以打开,但是查看页面打不开 HOT 2
- 你好,可以认识一下吗? HOT 3
- word文档可以编辑,但是不能插入图片 HOT 5
- 可以预览,但无法编辑 HOT 9
- 是否可以保存到服务器 HOT 3
- 编辑word 服务器错误 HOT 3
- 不支持lock和unlock,如何处理多人同时编辑的场景呢? HOT 3
- Edit in browser HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wopihost.