CN107656988A - Document edit method and system - Google Patents

Document edit method and system Download PDF

Info

Publication number
CN107656988A
CN107656988A CN201710817996.9A CN201710817996A CN107656988A CN 107656988 A CN107656988 A CN 107656988A CN 201710817996 A CN201710817996 A CN 201710817996A CN 107656988 A CN107656988 A CN 107656988A
Authority
CN
China
Prior art keywords
document
renewal
client
server
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710817996.9A
Other languages
Chinese (zh)
Other versions
CN107656988B (en
Inventor
陈海龙
高曦
毕永东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing VRV Software Corp Ltd
Original Assignee
Beijing VRV Software Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing VRV Software Corp Ltd filed Critical Beijing VRV Software Corp Ltd
Priority to CN201710817996.9A priority Critical patent/CN107656988B/en
Publication of CN107656988A publication Critical patent/CN107656988A/en
Application granted granted Critical
Publication of CN107656988B publication Critical patent/CN107656988B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of document edit method and system.Methods described is applied to document editing system, and the system includes the server of communication connection and at least one client, document original paper is stored with server.Methods described includes:Each user end to server sends the acquisition request for obtaining document original paper;Server, which receives, obtains request, and sends document original paper as the document echoing for being available for each client-side editing to each client;Each client is received in edit operation of the display layer to document echoing, and sends renewal request to server according to edit operation;The renewal request of server one client of selection in the renewal request of reception, document original paper is updated according to renewal request, and corresponding renewal is carried out to the document echoing of other clients.Thus, it is possible to make more people online editing identical document simultaneously, operating efficiency is improved, while the content of edit of each client is preserved, ensure that the complete of content.

Description

Document edit method and system
Technical field
The present invention relates to field of data transmission, in particular to a kind of document edit method and system.
Background technology
In the prior art, what more people edited that identical document typically takes is the mode of Svn or copy/shared.Svn side Formula refers to that user A publishes papers shelves above and below svn servers, edlin is entered to document, then the document renewal after editor is arrived into document svn Server, after user B downloads identical document from svn servers, edlin is entered to document, then the document renewal after editor is arrived Svn servers, so repeatedly.
Copy/shared mode refers to that user A will be copied after documents editing/shares to user B, and user B has edited this text User A is copied/shared to again after shelves, so repeatedly.
The deficiency of above two mode be two people can not synchro edit identical document, the same time can only a people edit Document, operating efficiency are relatively low.
The content of the invention
In order to overcome above-mentioned deficiency of the prior art, the technical problems to be solved by the invention are to provide a kind of document and compiled Method and system are collected, it can make more people online editing identical document simultaneously, improve operating efficiency.
The present invention provides a kind of document edit method, and applied to document editing system, the system includes communication connection Server and at least one client, document original paper are stored with the server, methods described includes:
Each client sends the acquisition request for obtaining document original paper to the server;
The server receives described obtain and asked, and each as being available for each client transmission document original paper The document echoing of client-side editing;
Each client is received in edit operation of the display layer to the document echoing, and according to the edit operation to institute State server and send renewal request;
The renewal request of the server one client of selection in the renewal request of reception, by the document original paper root It is updated according to the renewal request, and corresponding renewal is carried out to the document echoing of other clients.
The present invention provides a kind of document editing system, and the system includes the server of communication connection and at least one client Hold, document original paper be stored with the server,
Each client is used to send the acquisition request for obtaining document original paper to the server;
The server is used to receive the acquisition request, and is used as and is available for each client transmission document original paper The document echoing of each client-side editing;
Each client is additionally operable to receive in edit operation of the display layer to the document echoing, and is grasped according to the editor Make to send renewal request to the server;
The server is additionally operable to the renewal request of one client of selection in the renewal request of reception, by the document Original paper is updated according to the renewal request, and carries out corresponding renewal to the document echoing of other clients.
In terms of existing technologies, the invention has the advantages that:
The present invention provides a kind of document edit method and system.Methods described is applied to document editing system.The system Server and at least one client including communication connection, wherein, document original paper is stored with the server.The service The document original paper is sent to each client by device after the request for the acquisition document original paper that each client is sent is received, To be used as the document echoing for being available for each client-side editing.Each client is according to the volume in display layer to document echoing of reception Operation is collected, sending renewal corresponding with edit operation to the server asks.The server is in the request for receiving renewal The renewal request of one client of selection, is updated according to the renewal of client request to the document original paper, and to it The document echoing of his client carries out corresponding renewal.Thus, it is possible to make more people online editing identical document simultaneously, work is improved Efficiency, while the content of edit of each client is preserved, it ensure that the complete of content.
To enable the above-mentioned purpose of invention, feature and advantage to become apparent, present pre-ferred embodiments cited below particularly, and Accompanying drawing appended by cooperation, is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the block diagram for the document editing system that present pre-ferred embodiments provide.
Fig. 2 is the block diagram of server in Fig. 1.
Fig. 3 is the block diagram of client in Fig. 2.
Fig. 4 is one of schematic flow sheet of document edit method that present pre-ferred embodiments provide.
Fig. 5 is the schematic flow sheet of the sub-step that step S130 includes in Fig. 4.
Fig. 6 is one of schematic flow sheet of sub-step that step S140 includes in Fig. 4.
Fig. 7 is two of the schematic flow sheet for the sub-step that step S140 includes in Fig. 4.
Fig. 8 is the two of the schematic flow sheet for the document edit method that present pre-ferred embodiments provide.
Icon:10- document editing systems;100- servers;110- first memories;The storage controls of 120- first; 130- first processors;200- clients;210- second memories;The storage controls of 220- second;230- second processors; 240- input blocks.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Generally exist The component of the embodiment of the present invention described and illustrated in accompanying drawing can be configured to arrange and design with a variety of herein.Cause This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
Below in conjunction with the accompanying drawings, some embodiments of the present invention are elaborated.It is following in the case where not conflicting Feature in embodiment and embodiment can be mutually combined.
Fig. 1 is refer to, Fig. 1 is the block diagram for the document editing system 10 that present pre-ferred embodiments provide.It is described The server 100 and at least one client 200 that document editing system 10 can communicate to connect.Client 200 is used for basis and connect The operation of receipts sends request corresponding with operation to the server 100, and the server 100 selects one in the request of reception Individual request, the request is responded, and response contents are sent to other clients 200 to synchronize.
Fig. 2 is refer to, Fig. 2 is the block diagram of server 100 in Fig. 1.The server 100 can be stand-alone service Device or the integrating server being made up of multiple separate servers.The server 100 can include:First memory 110th, the first storage control 120 and first processor 130.
Between 130 each element of the first memory 110, the first storage control 120 and first processor directly or Ground connection is electrically connected with, to realize the transmission of data or interaction.For example, these elements can pass through one or more communication between each other Bus or signal wire, which are realized, to be electrically connected with.The software for handling the request of client 200 is stored with first memory 110.Institute Software program and module that first processor 130 is stored in by operation in first memory 110 are stated, so as to perform various work( It can apply and data processing.
Wherein, the first memory 110 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, first memory 110 is used for storage program, and the first processor 130 is receiving execution After instruction, described program is performed.The first processor 130 and other access of possible component to first memory 110 It can be carried out under the control of first storage control 120.
The first processor 130 is probably a kind of IC chip, has the disposal ability of signal.Above-mentioned first Processor 130 can be at general processor, including central processing unit (Central Processing Unit, CPU), network Manage device (Network Processor, NP) etc..Can also be digital signal processor (DSP), application specific integrated circuit (ASIC), Field programmable gate array (FPGA) either other PLDs, discrete gate or transistor logic, discrete hard Part component.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor Can be microprocessor or the processor can also be any conventional processor etc..
It is appreciated that structure shown in Fig. 2 is only to illustrate, server 100 may also include than shown in Fig. 2 more or more Few component, or there is the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can use hardware, software or its group Close and realize.
Fig. 3 is refer to, Fig. 3 is the block diagram of client 200 in Fig. 2.The client 200 can be, but unlimited In desktop computer, tablet personal computer etc..The client 200 can include second memory 210, the second storage control 220, Second processor 230 and input block 240.
The input block 240 can be mouse, keyboard etc..User can be by the input block 240 to client The file stored in 200 carries out edit operation.
Wherein, the second memory 210, the second storage control 220 and second processor 230 and first in Fig. 2 The hardware configuration of memory 110, the first storage control 120 and first processor 130 is identical, just no longer introduces one by one herein.
First embodiment
Fig. 4 is refer to, Fig. 4 is one of schematic flow sheet of document edit method that present pre-ferred embodiments provide.Institute State method and be applied to document editing system 10.The idiographic flow of document edit method is described in detail below.
Step S110, each client 200 send the acquisition request for obtaining document original paper to the server 100.
In the present embodiment, the server 100 communicates to connect with least one client 200.Wherein, the server Document original paper is stored with 100.In order that multiple users can edit simultaneously will obtain text with a document, each client 200 The acquisition request of shelves original paper is sent to the server 100, so as to be stored with each client 200 and the server 100 Middle document original paper identical document.
Step S120, the server 100 receives described obtain and asked, and sends the document to each client 200 Original paper is as the document echoing for being available for each client 200 to edit.
In the present embodiment, the server 100 will store after the acquisition request that each client 200 is sent is received Document original paper be sent to each client 200, to be used as the document echoing for being available for each client 200 to edit.
Step S130, each client 200 are received in edit operation of the display layer to the document echoing, and according to described Edit operation sends renewal request to the server 100.
Fig. 5 is refer to, Fig. 5 is the schematic flow sheet of the sub-step that step S130 includes in Fig. 4.The step S130 can be with Including sub-step S131, sub-step S132 and sub-step S133.
Sub-step S131, each client 200 receives the edit operation in display layer to document echoing, and is grasped according to editor Make generation document change message.
In the present embodiment, user carries out edit operation in display layer to document echoing, and each client 200 is according to corresponding The edit operation of user, the document echoing after display layer display editor, and generate document change corresponding with edit operation and disappear Breath.
Sub-step S132, document change message is added to by each client 200 sequentially in time not to be updated in queue.
In the present embodiment, each client 200 establishes one and is used for store document change message respectively does not update queue. After generation document change message, the document change message of generation is added to by each client 200 sequentially in time respectively It is described not update in queue.For example document change message 1 first generates, generate, then first change document after document change message 2 Message 1 be first added to it is described do not update in queue, then document change message 2 is added to and described not updated in queue.
Sub-step S133, each client 200 do not update queue according to the order of first in first out to the clothes according to described Business device 100 sends renewal request.
In the present embodiment, each client 200 does not update queue according to the order of first in first out to institute according to respective State server 100 and send renewal request.Wherein, the renewal request includes document change message.A such as client 200 It is described do not update in team in the addition of successively according to time sequencing document change message 1 and document change message 2, that is to say, that Document change message 1 first generates, and is generated after document change message 2, the client 200 first changes message 1 to service according to document Device 100 sends renewal request, after server 100 is updated according to the renewal request that message 1 is changed including document, further according to Document changes message 2 and sends renewal request to server 100.
In the embodiment of the present embodiment, each client 200 can be in generation document change message, and by the document After change message is added to and does not update queue, queue is not updated send renewal request to server 100 according to described.Each client End 200 regularly can also send renewal request to server 100.
Step S140, the renewal request of the server 100 one client 200 of selection in the renewal request of reception, The document original paper is updated according to the renewal request, and the document echoing of other clients 200 correspond to more Newly.
In the present embodiment, a document original paper in server 100 is updated simultaneously due to multiple client 200, it is necessary to Ensure that the content of the document original paper in server 100 does not include with not updating queue pair with the document echoing of each client 200 The content outside content answered is consistent, and confusion otherwise occurs.Therefore, if the server 100 receives only a client 200 Renewal request when, corresponding renewal is carried out to document original paper and the document echoing of other clients 200 according to renewal request.If When the server 100 receives the renewal request of multiple client 200, the server 100 please in multiple renewals of reception Ask the renewal request of middle one client 200 of selection to be responded, and refuse the renewal request of other clients 200.Further, Document corresponding with the renewal request being rejected change message is still stored in by the client 200 being rejected described does not update team In row, new information is sent to the server 100 again to change message according to the document.
Fig. 6 is refer to, Fig. 6 is one of schematic flow sheet of sub-step that step S140 includes in Fig. 4.The step S140 Step S143, sub-step S144 and sub-step S145 can be included.
Sub-step S143, the server 100 is according to the document changed content and text corresponding with document changed content Shelves change of location is updated to the document original paper, and is generated and this corresponding timestamp of renewal.
In the present embodiment, the document change message includes document changed content and text corresponding with document changed content Shelves change of location.The server 100 is according to document changed content corresponding with edit operation and document change of location to storage Document original paper be updated, with to the client 200 renewal request respond.The server 100 is according to this article When shelves change message is updated to document original paper, generates and preserve and this corresponding timestamp of renewal.Wherein, timestamp leads to It is often a character string, uniquely identifies the time at certain a moment.
Sub-step S144, the server 100 is after renewal to document original paper is completed, to corresponding with the renewal request Client 200 return the return information that is updated successfully and with this corresponding timestamp of renewal.
In the present embodiment, the server 100 according to the renewal of a client 200 asks that document original paper is completed to update Afterwards, the return information being updated successfully is returned to the client 200.Further, the server 100 by with this update when Between stamp be sent to the client 200 and preserved, to ensure to be stored with the timestamp of recent renewal in the client 200.
In the embodiment of the present embodiment, the reply being updated successfully of the transmission of server 100 is received in the client 200 After information, document corresponding with this renewal can be changed message and not update queue removal from described by the client 200, with true It is the content that server 100 is not updated also to protect the content of edit that the document change message not updated in queue represents, That is document change message corresponding with the content that the server 100 needs to be updated is stored in and does not update queue In.
Sub-step S145, the server 100 are sent out according to the identification information of other clients 200 to other clients 200 More new command is sent, so that the document echoing preserved in other clients 200 completes corresponding renewal.
In the present embodiment, each client 200 can include itself to the acquisition request that the server 100 is sent Identification information, such as, IP address, MAC (Media Access Control, medium access control) address etc..In the service After device 100 is updated according to the renewal of a client 200 request to document original paper, the server 100 is according to other clients Hold 200 respective identification informations to send (except the corresponding client 200 of renewal request with response) to each client 200 to update Instruction, so as to the document echoing for ensureing to preserve in each client 200 and the document original paper one stored in the server 100 Cause.
In an embodiment of the present embodiment, the more new command includes the document echoing after renewal.The service Document echoing after renewal can be sent to other each clients 200 by device 100, thereby guarantee that each client 200 preserves Document echoing and server 100 update after document original paper be consistent.
In the another embodiment of the present embodiment, the more new command includes document change message.The server After document change message in the 100 renewal requests sent according to a client 200 is updated to document original paper, by the document Change message is sent to other each clients 200, is completed so that other clients 200 change message according to the document to document The renewal of copy.
Further, the more new command can also include and this corresponding timestamp of renewal.The server 100 can With the document original paper after judging the document echoing that is preserved in client 200 according to the timestamp and updated in server 100 whether Unanimously.
Fig. 7 is refer to, Fig. 7 is two of the schematic flow sheet for the sub-step that step S140 includes in Fig. 4.Step S140 may be used also With including sub-step S141 and sub-step S142.
Sub-step S141, the server 100 by it is described renewal request in timestamp with storage recent renewal when Between stab and be compared, judge whether the timestamp in renewal request consistent with the timestamp of the recent renewal of storage.
In the present embodiment, the renewal request can also include timestamp.If each client 200 be for the first time to Server 100 sends renewal request, and the timestamp in the renewal request that each client 200 is sent can be sky.If each visitor Client 200 in family end 200 be present and be transmitted across renewal request to server 100, that is to say, that stored in each client 200 There is the timestamp that server 100 is sent, the newest timestamp each stored is sent to the server by each client 200 100.Whether the server 100 is consistent by the timestamp for judging recent renewal of the timestamp in renewal request with storing, To judge whether to be updated according to the renewal of the client 200 request.
If inconsistent, sub-step S142 is performed.
Sub-step S142, the renewal request of refusal client 200.
In the present embodiment, after asking completion renewal according to the renewal of a client 200 due to the server 100, institute Renewal can be synchronized by the document echoing of other clients 200 by stating server 100, at the same send to other clients 200 and Timestamp corresponding to this renewal.Therefore, if the timestamp of recent renewal of the timestamp with storing in renewal request is inconsistent, It is inconsistent then to characterize document original paper and the document echoing content stored in the client 200 of the storage of server 100, also It is to say, document echoing has asked to complete renewal according to the renewal of other clients 200 in server 100, and the client 200 is not Complete synchronized update.The server 100 refuses the renewal request of the client 200, and sends refusal more to the client 200 New return information.
If consistent, sub-step S143 is performed.
Sub-step S143, the document change message in the renewal request are updated to document original paper.
In the present embodiment, if the timestamp of recent renewal of the timestamp with storing in renewal request is consistent, characterize The document original paper that the server 100 stores is consistent with the document echoing content stored in the client 200, that is to say, that should Client 200 has completed synchronized update.The server 100 asks to carry out document original paper according to the renewal of the client 200 Renewal, and to the client 200 send the return information that is updated successfully and with this corresponding timestamp of renewal.
Further, the server 100 completes renewal according to the renewal request of the client 200 currently selected, and will After more new command is sent to other clients 200, or after the renewal request of a client 200 is refused, the server 100 is again It is secondary to receive renewal request, and the renewal request of one client 200 of selection is updated or refused in the renewal request of reception.
Fig. 8 is the two of the schematic flow sheet for the document edit method that present pre-ferred embodiments provide.Methods described may be used also With including step S150 and step S160.
Step S150, other clients 200 are according to the more new command of the server 100 to the document echoing that locally preserves Carry out corresponding renewal.
In the present embodiment, other clients 200 are after the more new command that the reception server 100 is sent, according to the renewal Instruction is updated to document echoing, to ensure the document in the document echoing and server 100 preserved in each client 200 Original paper is consistent.
Step S160, other clients 200 refresh to display layer, make the document pair after the display layer display renewal Sheet and content corresponding with not updating queue.
In the present embodiment, after other clients 200 complete renewal to document echoing, display layer needs to be refreshed, no Then display layer may only show the client 200 editor after document content or only show document of the client 200 to preservation Copy be updated after content.Therefore, other clients 200 refresh to display layer, make the display layer display renewal Document echoing afterwards and content corresponding with not updating queue, that is to say, that the content that display layer is shown includes and server 100 The consistent document echoing of middle document original paper and the client 200 do not update the content of edit of queue expression.Accordingly, for position weight Multiple editor, covering principle is not taken, but by the way of coexisting, it ensure that the complete of content.
Further, if do not update position of the content of edit in the document echoing before with renewal of queue expression with more The position in document echoing after new is different, client 200 then can after completing more new command and display layer refreshed, Corresponding renewal is carried out to the document change of location for not updating document change message in queue according to the content that display layer is shown.
Second embodiment
Referring once again to Fig. 1, present pre-ferred embodiments also provide a kind of document editing system 10.The documents editing system System 10 includes the server 100 and at least one client 200 of communication connection, and document original paper is stored with the server 100.
Each client 200 is used to send the acquisition request for obtaining document original paper to the server 100.
The server 100 is used to receive the acquisition request, and sends the document original paper to each client 200 and make To be available for the document echoing that each client 200 is edited.
Each client 200 is additionally operable to receive in edit operation of the display layer to the document echoing, and according to the volume Collect operation and send renewal request to the server 100.
In the present embodiment, each client 200 is received in edit operation of the display layer to the document echoing, and according to The mode that the edit operation sends renewal request to the server 100 includes:
Each client 200 receives the edit operation in display layer to document echoing, and generates document according to edit operation Change message;
Document change message is added to by each client 200 sequentially in time not to be updated in queue;
Each client 200 does not update queue and sent according to the order of first in first out to the server 100 according to described Renewal request, wherein, the renewal request includes document change message.
The server 100 is additionally operable to the renewal request of one client 200 of selection in the renewal request of reception, by institute State document original paper to be updated according to the renewal request, and corresponding renewal is carried out to the document echoing of other clients 200.
In the present embodiment, described to obtain the identification information for asking to include client 200, the document change message includes Document changed content and document change of location corresponding with document changed content.The server 100 is asked in the renewal of reception The renewal request of middle one client 200 of selection, the document original paper is updated according to the renewal request, and to other The mode that the document echoing of client 200 carries out corresponding renewal includes:
The server 100 is according to the document changed content and document change of location pair corresponding with document changed content The document original paper is updated, and is generated and this corresponding timestamp of renewal;
The server 100 is after the renewal to document original paper is completed, to client 200 corresponding with the renewal request Return the return information that is updated successfully and with this corresponding timestamp of renewal;
The server 100 sends more new command according to the identification information of other clients 200 to other clients 200, So that the document echoing preserved in other clients 200 completes corresponding renewal, wherein, the more new command becomes including the document More message and timestamp.
In the present embodiment, the renewal request also includes a timestamp, and recent renewal is stored with the server 100 Timestamp.The renewal request of the server 100 one client 200 of selection in the renewal request of reception, by the text Shelves original paper is updated according to the renewal request, and the mode of corresponding renewal is carried out to the document echoings of other clients 200 It can also include:
The server 100 is compared the timestamp of recent renewal of the timestamp in the renewal request with storing It is right;
When the timestamp of recent renewal of timestamp of the server 100 in the renewal request with storing is consistent, Document change message in the renewal request is updated to document original paper;
The timestamp of recent renewal of timestamp of the server 100 in the renewal request with storing is inconsistent When, refuse the renewal request of the client 200.
Other clients 200 are additionally operable to enter the document echoing locally preserved according to the more new command of the server 100 The corresponding renewal of row;
Other clients 200 are additionally operable to refresh display layer, make display layer display renewal document echoing and Content corresponding with not updating queue.
In summary, the present invention provides a kind of document edit method and system.Methods described is applied to document editing system. The system includes the server of communication connection and at least one client, wherein, document original paper is stored with the server. The document original paper is sent to each by the server after the request for the acquisition document original paper that each client is sent is received Client, to be used as the document echoing for being available for each client-side editing.Each client is according to reception in display layer to document The edit operation of copy, send renewal corresponding with edit operation to the server and ask.The server is receiving renewal Request in one client of selection renewal request, the document original paper is carried out more according to the renewal of client request Newly, and to the document echoing of other clients corresponding renewal is carried out.Thus, it is possible to make more people online editing identical document simultaneously, Operating efficiency is improved, while the content of edit of each client is preserved, ensure that the complete of content.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (10)

1. a kind of document edit method, it is characterised in that applied to document editing system, the system includes the clothes of communication connection It is engaged in device and at least one client, is stored with document original paper in the server, methods described includes:
Each client sends the acquisition request for obtaining document original paper to the server;
The server receives described obtain and asked, and is used as to each client transmission document original paper and is available for each client Hold the document echoing of editor;
Each client is received in edit operation of the display layer to the document echoing, and according to the edit operation to the clothes Business device sends renewal request;
The renewal request of the server one client of selection in the renewal request of reception, by the document original paper according to institute State renewal request to be updated, and corresponding renewal is carried out to the document echoing of other clients.
2. according to the method for claim 1, it is characterised in that each client is received in display layer to the document The edit operation of copy, and according to the edit operation to the server send renewal request the step of include:
Each client is received in edit operation of the display layer to document echoing, and is generated document change according to edit operation and disappeared Breath;
Document change message is added to by each client sequentially in time not to be updated in queue;
Each client does not update queue according to and sends renewal request to the server according to the order of first in first out, its In, the renewal request includes document change message.
3. according to the method for claim 2, it is characterised in that wherein, described to obtain the mark letter for asking to include client Breath, the document change message include document changed content and document change of location corresponding with document changed content, the clothes The renewal request of device one client of selection in the renewal request of reception of being engaged in, the document original paper is asked according to the renewal The step of being updated, and the document echoing of other clients is carried out and correspondingly updated includes:
The server is according to the document changed content and document change of location corresponding with document changed content to the text Shelves original paper is updated, and is generated and this corresponding timestamp of renewal;
The server is returned to client corresponding with the renewal request and is updated to after the renewal to document original paper is completed The return information of work(and with this corresponding timestamp of renewal;
The server sends more new command according to the identification information of other clients to other clients, so that other clients The document echoing of middle preservation completes corresponding renewal, wherein, the more new command includes document change message and timestamp.
4. according to the method for claim 3, it is characterised in that the renewal request also includes a timestamp, the service It is stored with the timestamp of recent renewal in device, the server is according to the document changed content and corresponding with document changed content Document change of location the document original paper is updated, and generate with this update corresponding timestamp the step of before, Methods described also includes:
The timestamp of recent renewal of the timestamp in the renewal request with storing is compared the server;
When the timestamp of recent renewal of timestamp of the server in the renewal request with storing is consistent, according to described Document change message in renewal request is updated to document original paper;
When the timestamp of recent renewal of timestamp of the server in the renewal request with storing is inconsistent, refuse institute State the renewal request of client.
5. according to the method for claim 3, it is characterised in that the server selects one in the renewal request of reception The renewal request of client, the document original paper is updated according to the renewal request, and to the document of other clients After copy carries out corresponding the step of updating, methods described also includes:
Other clients carry out corresponding renewal to the document echoing locally preserved according to the more new command of the server;
Other clients refresh to display layer, make the document echoing after the display layer display renewal and with not updating queue Corresponding content.
6. a kind of document editing system, it is characterised in that the system includes the server of communication connection and at least one client Hold, document original paper be stored with the server,
Each client is used to send the acquisition request for obtaining document original paper to the server;
The server is used to receive the acquisition request, and each as being available for each client transmission document original paper The document echoing of client-side editing;
Each client be additionally operable to receive in edit operation of the display layer to the document echoing, and according to the edit operation to The server sends renewal request;
The server is additionally operable to the renewal request of one client of selection in the renewal request of reception, by the document original paper It is updated according to the renewal request, and corresponding renewal is carried out to the document echoing of other clients.
7. system according to claim 6, it is characterised in that each client is received in display layer to the document echoing Edit operation, and according to the edit operation to the server send renewal request mode include:
Each client is received in edit operation of the display layer to document echoing, and is generated document change according to edit operation and disappeared Breath;
Document change message is added to by each client sequentially in time not to be updated in queue;
Each client does not update queue according to and sends renewal request to the server according to the order of first in first out, its In, the renewal request includes document change message.
8. system according to claim 7, it is characterised in that wherein, described to obtain the mark letter for asking to include client Breath, the document change message include document changed content and document change of location corresponding with document changed content, the clothes The renewal request of device one client of selection in the renewal request of reception of being engaged in, the document original paper is asked according to the renewal It is updated, and the mode that corresponding renewal is carried out to the document echoings of other clients includes:
The server is according to the document changed content and document change of location corresponding with document changed content to the text Shelves original paper is updated, and is generated and this corresponding timestamp of renewal;
The server is returned to client corresponding with the renewal request and is updated to after the renewal to document original paper is completed The return information of work(and with this corresponding timestamp of renewal;
The server sends more new command according to the identification information of other clients to other clients, so that other clients The document echoing of middle preservation completes corresponding renewal, wherein, the more new command includes document change message and timestamp.
9. system according to claim 8, it is characterised in that the renewal request also includes a timestamp, the service The timestamp of recent renewal is stored with device, the server selects the renewal of a client please in the renewal request of reception Ask, the document original paper is updated according to the renewal request, and the document echoing of other clients correspond to more New mode also includes:
The timestamp of recent renewal of the timestamp in the renewal request with storing is compared the server;
When the timestamp of recent renewal of timestamp of the server in the renewal request with storing is consistent, according to described Document change message in renewal request is updated to document original paper;
When the timestamp of recent renewal of timestamp of the server in the renewal request with storing is inconsistent, refuse institute State the renewal request of client.
10. system according to claim 8, it is characterised in that
Other clients are additionally operable to carry out the document echoing locally preserved corresponding renewal according to the more new command of the server;
Other clients are additionally operable to refresh display layer, make the document echoing of the display layer display renewal and with not updating Content corresponding to queue.
CN201710817996.9A 2017-09-12 2017-09-12 Document editing method and system Active CN107656988B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710817996.9A CN107656988B (en) 2017-09-12 2017-09-12 Document editing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710817996.9A CN107656988B (en) 2017-09-12 2017-09-12 Document editing method and system

Publications (2)

Publication Number Publication Date
CN107656988A true CN107656988A (en) 2018-02-02
CN107656988B CN107656988B (en) 2020-04-07

Family

ID=61129670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710817996.9A Active CN107656988B (en) 2017-09-12 2017-09-12 Document editing method and system

Country Status (1)

Country Link
CN (1) CN107656988B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587209A (en) * 2018-10-09 2019-04-05 王立菊 A kind of server storage cloud platform based on file multiple person cooperational editor
CN109710908A (en) * 2018-12-24 2019-05-03 成都四方伟业软件股份有限公司 Page editing method, system and device
CN110196837A (en) * 2019-04-23 2019-09-03 平安科技(深圳)有限公司 Document edit method, device, computer equipment and storage medium
CN110502488A (en) * 2019-08-14 2019-11-26 北京字节跳动网络技术有限公司 Processing method, device, terminal and the storage medium of online document
CN110765744A (en) * 2019-10-22 2020-02-07 苏州思必驰信息科技有限公司 Multi-person collaborative document editing method and system
CN110928946A (en) * 2018-09-19 2020-03-27 珠海金山办公软件有限公司 Document editing method and device and terminal equipment
CN111898983A (en) * 2020-07-23 2020-11-06 百望股份有限公司 Method and system for online document multi-person combined digital signature
CN112039929A (en) * 2019-05-15 2020-12-04 阿里巴巴集团控股有限公司 File editing method and device and electronic equipment
CN112395836A (en) * 2019-08-01 2021-02-23 珠海金山办公软件有限公司 Method and device for editing document, computer storage medium and terminal
CN112418791A (en) * 2020-11-17 2021-02-26 北京字跳网络技术有限公司 Document display method and device and electronic equipment
CN112667585A (en) * 2019-11-19 2021-04-16 腾讯科技(深圳)有限公司 Synchronous management method, device and equipment for online documents
CN112965946A (en) * 2021-03-31 2021-06-15 建信金融科技有限责任公司 Method, device, equipment and computer readable medium for processing document
CN114253348A (en) * 2021-12-10 2022-03-29 广西电网有限责任公司电力科学研究院 Method for preventing conflict of editing information under online cooperation of multiple persons
CN117454856A (en) * 2023-12-22 2024-01-26 达州爱迦飞诗特科技有限公司 Medical diagnosis data editing method and system based on-line point-to-point mode

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544189A (en) * 2012-07-17 2014-01-29 珠海金山办公软件有限公司 Method and system for locking currently-edited file
CN103914439A (en) * 2013-01-04 2014-07-09 中国移动通信集团公司 Method, device and system for online document edition
CN104615586A (en) * 2015-01-21 2015-05-13 上海理工大学 Real-time cooperative editing system
CN106575287A (en) * 2014-06-24 2017-04-19 谷歌公司 Systems and methods for managing suggested edits in a collaborative document editing environment
CN106663089A (en) * 2014-06-30 2017-05-10 微软技术许可有限责任公司 Intelligent conflict detection and semantic expression of document edits
CN106844395A (en) * 2015-12-03 2017-06-13 山大鲁能信息科技有限公司 Many people's synchronization online document edit methods and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544189A (en) * 2012-07-17 2014-01-29 珠海金山办公软件有限公司 Method and system for locking currently-edited file
CN103914439A (en) * 2013-01-04 2014-07-09 中国移动通信集团公司 Method, device and system for online document edition
CN106575287A (en) * 2014-06-24 2017-04-19 谷歌公司 Systems and methods for managing suggested edits in a collaborative document editing environment
CN106663089A (en) * 2014-06-30 2017-05-10 微软技术许可有限责任公司 Intelligent conflict detection and semantic expression of document edits
CN104615586A (en) * 2015-01-21 2015-05-13 上海理工大学 Real-time cooperative editing system
CN106844395A (en) * 2015-12-03 2017-06-13 山大鲁能信息科技有限公司 Many people's synchronization online document edit methods and device

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928946A (en) * 2018-09-19 2020-03-27 珠海金山办公软件有限公司 Document editing method and device and terminal equipment
CN109587209A (en) * 2018-10-09 2019-04-05 王立菊 A kind of server storage cloud platform based on file multiple person cooperational editor
CN109710908A (en) * 2018-12-24 2019-05-03 成都四方伟业软件股份有限公司 Page editing method, system and device
CN110196837B (en) * 2019-04-23 2023-06-23 平安科技(深圳)有限公司 Document editing method, device, computer equipment and storage medium
CN110196837A (en) * 2019-04-23 2019-09-03 平安科技(深圳)有限公司 Document edit method, device, computer equipment and storage medium
CN112039929A (en) * 2019-05-15 2020-12-04 阿里巴巴集团控股有限公司 File editing method and device and electronic equipment
CN112395836B (en) * 2019-08-01 2023-08-08 珠海金山办公软件有限公司 Method and device for editing document, computer storage medium and terminal
CN112395836A (en) * 2019-08-01 2021-02-23 珠海金山办公软件有限公司 Method and device for editing document, computer storage medium and terminal
CN110502488A (en) * 2019-08-14 2019-11-26 北京字节跳动网络技术有限公司 Processing method, device, terminal and the storage medium of online document
CN110765744B (en) * 2019-10-22 2024-01-30 思必驰科技股份有限公司 Multi-user collaborative document editing method and system
CN110765744A (en) * 2019-10-22 2020-02-07 苏州思必驰信息科技有限公司 Multi-person collaborative document editing method and system
CN112667585A (en) * 2019-11-19 2021-04-16 腾讯科技(深圳)有限公司 Synchronous management method, device and equipment for online documents
CN112667585B (en) * 2019-11-19 2022-06-07 腾讯科技(深圳)有限公司 Synchronous management method, device and equipment for online documents
CN111898983A (en) * 2020-07-23 2020-11-06 百望股份有限公司 Method and system for online document multi-person combined digital signature
CN112418791A (en) * 2020-11-17 2021-02-26 北京字跳网络技术有限公司 Document display method and device and electronic equipment
CN112965946B (en) * 2021-03-31 2022-12-13 建信金融科技有限责任公司 Method, device, equipment and computer readable medium for processing document
CN112965946A (en) * 2021-03-31 2021-06-15 建信金融科技有限责任公司 Method, device, equipment and computer readable medium for processing document
CN114253348A (en) * 2021-12-10 2022-03-29 广西电网有限责任公司电力科学研究院 Method for preventing conflict of editing information under online cooperation of multiple persons
CN114253348B (en) * 2021-12-10 2024-04-16 广西电网有限责任公司电力科学研究院 Method for preventing conflict of editing information under online collaboration of multiple people
CN117454856A (en) * 2023-12-22 2024-01-26 达州爱迦飞诗特科技有限公司 Medical diagnosis data editing method and system based on-line point-to-point mode
CN117454856B (en) * 2023-12-22 2024-04-16 达州爱迦飞诗特科技有限公司 Medical diagnosis data editing method and system based on-line point-to-point mode

Also Published As

Publication number Publication date
CN107656988B (en) 2020-04-07

Similar Documents

Publication Publication Date Title
CN107656988A (en) Document edit method and system
CN101167069B (en) System and method for peer to peer synchronization of files
CN105915650B (en) Load-balancing method and device
CN111651418B (en) Document content downloading method and device, computer equipment and storage medium
CN108683668A (en) Resource checksum method, apparatus, storage medium and equipment in content distributing network
CN105933331A (en) Method and device for operating accounts
CN106817388A (en) The system that virtual machine, host obtain the method, device and access data of data
KR20150083938A (en) System for interoperation between dds and dbms
CN110110301A (en) File editing method, device, system, client, server and storage medium
CN111966779A (en) Robot knowledge base management method, system, electronic device and storage medium
CN108809730A (en) A kind of method and apparatus that stream is cut in computer room control
CN106993015A (en) Synchronous method, system and the security server of transaction
CN107172061A (en) It is a kind of to realize shared method and system
CN102089740A (en) Communication terminal, control method, and control program
CN105049666B (en) Image formation system and cooperation among users method
KR20120073799A (en) Data synchronizing and servicing apparatus and method based on cloud storage
CN107203915B (en) Data storage method and device
JP2009230257A (en) Approval system and approval program
CN106657227B (en) The method and device of resource is subscribed in a kind of change
CN113890753A (en) Digital identity management method, device, system, computer equipment and storage medium
US10218650B2 (en) Information processing system
JP2007173978A (en) Electronic mail distribution system and mail server thereof
CN104967641B (en) A kind of method and device for realizing active and standby meta server data syn-chronization
CN107704557B (en) Processing method and device for operating mutually exclusive data, computer equipment and storage medium
JP2009239625A (en) Apparatus, system and method for searching for current user location, and computer program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant