CN103778208A - Method for cooperating working directory or document access and system thereof - Google Patents

Method for cooperating working directory or document access and system thereof Download PDF

Info

Publication number
CN103778208A
CN103778208A CN201410019132.9A CN201410019132A CN103778208A CN 103778208 A CN103778208 A CN 103778208A CN 201410019132 A CN201410019132 A CN 201410019132A CN 103778208 A CN103778208 A CN 103778208A
Authority
CN
China
Prior art keywords
destination object
document
record sheet
operation record
module
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.)
Pending
Application number
CN201410019132.9A
Other languages
Chinese (zh)
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.)
Guangzhou Pubang Landscape Design & Construction Co ltd
Original Assignee
Guangzhou Pubang Landscape Design & Construction Co 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 Guangzhou Pubang Landscape Design & Construction Co ltd filed Critical Guangzhou Pubang Landscape Design & Construction Co ltd
Priority to CN201410019132.9A priority Critical patent/CN103778208A/en
Publication of CN103778208A publication Critical patent/CN103778208A/en
Pending legal-status Critical Current

Links

Images

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/176Support for shared access to files; File sharing support
    • G06F16/1767Concurrency control, e.g. optimistic or pessimistic approaches
    • G06F16/1774Locking methods, e.g. locking methods for file systems allowing shared and concurrent access to files

Abstract

The invention discloses a method for cooperating working directory or document access and a system for cooperating working directory or document access. The method for cooperating the working directory or the document access comprises the following steps of step A, receiving the request issued by a client side to operate a target object in a server side; step B, searching a current record chart and judging whether the target object is under the locked state or not; step C, if the target object is not under the locked stage, then allowing the operation request of the client end to the target object; step E, after the operation is finished, removing the lock mark from the current operation record chart; step D, if the target object is under the locked stage, then rejecting the operation request of the client end to the target object. The technical scheme adopted by the invention is applied to the project management and used for limiting operations of a plurality of users, such as creating, removing, modifying, uploading and deleting for the same catalogue or document under the project simultaneously, so that the chaos error of documents and data loss under the project due to the simultaneous operation of many people is avoided, and the stability of the project document management is ensured.

Description

A kind of method and system for collaborative work catalogue or document access
Technical field
The present invention relates to a kind of method and system for collaborative work catalogue or document access.
Background technology
The important content that gardens project builds as view, a complexity and comprehensive work, be not that a people just can complete, but need the multidigit designer, slip-stick artist of a team through repeatedly design, revise in a large number, and carry out height with other professional team and cooperate.Shared the providing great convenience property that existing a lot of Project Management Software is project document, but also existing problems, for example, one user is revising document 1, now another user also opening document 1 revise, in the time that two users complete modification and will preserve, easily occur wrong chaoticly, this may cause whole project development to occur entanglement.
For the existing deficiency of above-mentioned management software, provide a kind of when user is in the time taking certain file or document, prevent that other users from accessing this file simultaneously or document is necessary.
Summary of the invention
For the deficiencies in the prior art, the object of the present invention is to provide a kind of method and system for collaborative work catalogue or document access, make the document in the landscape design course of work obtain stable guarantee.
For achieving the above object, the present invention adopts following technical scheme:
For a method for collaborative work catalogue or document access, said method comprising the steps of:
A: receive client and initiate the request that the destination object in server end is operated, described destination object comprises catalogue or document, the one during described operation comprises establishment, uploads, moves, revises and deletes;
B: search current operation record sheet, described current operation record sheet is for storing the lock token being associated with described destination object, according to whether there being described lock token in current operation record sheet, thereby judge whether destination object is in the lock state, if have, be lock-out state, execution step D; If no, be unlocked state, execution step C;
C: allow the operation requests of described client to described destination object, write the lock token being associated with described destination object in current operation record sheet;
E: described client completes the operation to described destination object removes described lock token from described current operation record sheet;
D: refuse the operation requests of described client to described destination object.
Described lock token comprises following information: user, destination object, action type and current time.
Further, step C also comprises:
In historical operation record sheet, write historical mark, described historical mark is consistent with the content of lock token.
Described current operation record sheet and historical operation record sheet are positioned at server end.
If described client does not complete the operation to destination object and interrupts, described lock token can not removed from described current operation record sheet.
Especially, be operating as described in steps A and upload, when described destination object is document, further comprising the steps of between step C and step e:
F: judge whether document to be uploaded is breakpoint transmission state, if so, performs step G, if not, perform step H;
G: once uploading interruptions starts to upload described document to be uploaded in the past;
H: restart to upload described document to be uploaded.
For a system for collaborative work catalogue or document access, comprising:
Modules A, initiates for receiving client the request that the destination object of server end is operated, and described destination object comprises catalogue or document, the one during described operation comprises establishment, uploads, moves, revises and deletes;
Module B, be used for searching for current operation record sheet, described current operation record sheet is for storing the lock token being associated with described destination object, according to whether there being described lock token in current operation record sheet, thereby judge whether destination object is in the lock state, if have, be lock-out state, execution step D; If no, be unlocked state, execution step C;
Module C for allowing the operation requests of described client to described destination object, writes the lock token being associated with described destination object in current operation record sheet;
Module E, completes the operation to described destination object for described client, described lock token is removed from described current operation record sheet;
Module D, for refusing the operation requests of described client to described destination object.
Described lock token comprises following information:
User, destination object, action type and current time.
Further, module C also comprises:
In historical operation record sheet, write historical mark, described historical mark is consistent with the content of lock token.
Be operating as described in modules A and upload, when described destination object is document, between module C and module E, also comprise with lower module:
Module F, for judging whether document to be uploaded is breakpoint transmission state, if so, execution module G, if not, execution module H;
Module G: once uploading interruptions starts to upload described document to be uploaded in the past;
Module H: restart to upload described document to be uploaded.
Compared to existing technology, beneficial effect of the present invention is:
Technical scheme provided by the invention is applied to project management, restriction multi-user simultaneously to same catalogue or document under project create, move, revise, upload, the operation such as deletion, the document confusion of having avoided many people simultaneously to operate causing under project is made mistakes and loss of data, has guaranteed the stability of project document management.In addition, record the state of catalogue and document with temporary table data mode, only need to judge in table whether have corresponding data, execution efficiency is high, and meanwhile, all operations under project all has historical operation record, is convenient to later maintenance.
  
Accompanying drawing explanation
Fig. 1 is the process flow diagram of a kind of embodiment of a kind of method for collaborative work catalogue or document access of the present invention.
Fig. 2 is the process flow diagram of another embodiment of a kind of method for collaborative work catalogue or document access of the present invention.
Embodiment
Below, by reference to the accompanying drawings and embodiment, the present invention is described further:
Embodiment 1:
Fig. 1 shows the preferred embodiments of the present invention, a kind of method for collaborative work catalogue or document access, being applied to server end limits many people and operates a certain same catalogue or document now simultaneously, server end comprises current operation record sheet and historical operation record sheet, said method comprising the steps of:
A: receive client and initiate the request that the destination object in server end is operated, described destination object comprises catalogue or document, the one during described operation comprises establishment, uploads, moves, revises and deletes;
B: search current operation record sheet, described current operation record sheet is for storing the lock token being associated with described destination object, according to whether there being described lock token in current operation record sheet, thereby judge whether destination object is in the lock state, if have, be lock-out state, execution step D; If no, be unlocked state, execution step C;
C: allow the operation requests of described client to described destination object, in current operation record sheet, write the lock token being associated with described destination object, in historical operation record sheet, write historical mark, described historical mark is consistent with the content of lock token.;
E: described client completes the operation to described destination object removes described lock token from described current operation record sheet;
D: refuse the operation requests of described client to described destination object.
Creation operation for destination object only have catalogue, upload operation, move operation, retouching operation and deletion action for destination object can be the one in catalogue and document.
Lock token and historical mark all comprise following information: user, destination object, action type and current time, wherein user refers to the current user who logs in by client, action type refers to upload, mobile or revise, time when current time refers to that service end allows operation requests that client initiates.
Destination object is catalogue and document, it lays respectively in different tables of data, for distinguishing dissimilar destination object, concrete catalogue or document have unique ID for mark, lock token and historical mark also comprise an ident value, this ident value has comprised ID and the type of destination object, can determine destination object by ID and type, has optimized the efficiency of search.
In the time that needs are searched for certain catalogue or document from history table, only need to just can from history lists, filter out according to ID and type all historical records of this catalogue or document.
For example there is a user to carry out rename to the catalogue of " 4. plant " by name, server end can be searched for current operation record sheet, after determining that this object is catalogue, whether the ID that searches for this catalogue is present in current operation record sheet just can be determined whether this catalogue is lock-out state, if there is no lock token in current operation record sheet, allow this user to carry out rename to this catalogue, in current operation record sheet, write a lock token associated with this catalogue simultaneously, this lock token acts on this catalogue and sub-directory and document simultaneously, if there is the lock token being associated with this catalogue in current operation record sheet, point out the just also refusal request in occupied of this catalogue.
For example there is a user to modify to the document content of " 1. material " by name, server end can be searched for current operation record sheet, after determining that this object is document, whether the ID of search the document is present in current operation record sheet just can be determined whether the document is lock-out state, if there is no lock token in current operation record sheet, allow this user to modify to the content of the document, in current operation record sheet, write a lock token associated with the document simultaneously, this lock token acts on the document, if there is the lock token being associated with the document in current operation record sheet, point out just also refusal request in occupied of the document.
For example user A operates destination object C, now user B is in the catalogue of destination object C place but does not initiate any operation requests, when user A completes the operation to destination object C, the lock token of destination object C is removed, now in the catalogue of user B place, shown content can not refresh immediately, when user B initiates the operation requests to destination object C, because destination object C was operated by user A, this operation requests of user B can be rejected, and refreshing content shown in current directory, user B can initiate operation requests again.
If client is not correctly preserved the operation to destination object and surprisingly exited, server end can not remove lock token from current operation record sheet, and for example the power supply failed suddenly, and this user is still in taking the state of destination object.
Embodiment 2:
Be illustrated in figure 2 another embodiment of the present invention, the step of this embodiment based on embodiment 1, when being operating as in steps A uploaded, when destination object is document, further comprising the steps of between step C and step e: F: to judge that whether document to be uploaded is breakpoint transmission state, if so, performs step G, if not, perform step H;
G: once uploading interruptions starts to upload described document to be uploaded in the past;
H: restart to upload described document to be uploaded.
to one skilled in the art, can be according to technical scheme described above and design, make other various corresponding changes and deformation, and within these all changes and deformation all should belong to the protection domain of the claims in the present invention.

Claims (10)

1. for a method for collaborative work catalogue or document access, it is characterized in that, said method comprising the steps of:
a: receive client and initiate the request that the destination object in server end is operated, described destination object comprises catalogue or document, the one during described operation comprises establishment, uploads, moves, revises and deletes;
b: search current operation record sheet, described current operation record sheet is for storing the lock token being associated with described destination object, according to whether there being described lock token in current operation record sheet, thereby judge whether destination object is in the lock state, if have, be lock-out state, execution step D; If no, be unlocked state, execution step C;
c: allow the operation requests of described client to described destination object, write the lock token being associated with described destination object in current operation record sheet;
e: described client completes the operation to described destination object removes described lock token from described current operation record sheet;
d: refuse the operation requests of described client to described destination object.
2. method for collaborative work catalogue or document access according to claim 1, is characterized in that, described lock token comprises following information: user, destination object, action type and current time.
3. method for collaborative work catalogue or document access according to claim 1, is characterized in that, step C also comprises:
in historical operation record sheet, write historical mark, described historical mark is consistent with the content of lock token.
4. method for collaborative work catalogue or document access according to claim 3, is characterized in that, described current operation record sheet and historical operation record sheet are positioned at server end.
5. method for collaborative work catalogue or document access according to claim 1, is characterized in that, if described client does not complete the operation to destination object and interrupts, described lock token can not removed from described current operation record sheet.
6. method for collaborative work catalogue or document access according to claim 1, is characterized in that, is operating as described in steps A and uploads, when described destination object is document, further comprising the steps of between step C and step e:
f: judge whether document to be uploaded is breakpoint transmission state, if so, performs step G, if not, perform step H;
g: once uploading interruptions starts to upload described document to be uploaded in the past;
h: restart to upload described document to be uploaded.
7. for a system for collaborative work catalogue or document access, it is characterized in that, comprising:
modules A, initiates for receiving client the request that the destination object of server end is operated, and described destination object comprises catalogue or document, the one during described operation comprises establishment, uploads, moves, revises and deletes;
module B, be used for searching for current operation record sheet, described current operation record sheet is for storing the lock token being associated with described destination object, according to whether there being described lock token in current operation record sheet, thereby judge whether destination object is in the lock state, if have, be lock-out state, execution step D; If no, be unlocked state, execution step C;
module C for allowing the operation requests of described client to described destination object, writes the lock token being associated with described destination object in current operation record sheet;
module E, completes the operation to described destination object for described client, described lock token is removed from described current operation record sheet;
module D, for refusing the operation requests of described client to described destination object.
8. system for collaborative work catalogue or document access according to claim 7, is characterized in that, described lock token comprises following information:
user, destination object, action type and current time.
9. system for collaborative work catalogue or document access according to claim 7, is characterized in that, module C also comprises:
in historical operation record sheet, write historical mark, described historical mark is consistent with the content of lock token.
10. system for collaborative work catalogue or document access according to claim 7, is characterized in that, is operating as described in modules A and uploads, and when described destination object is document, between module C and module E, also comprises with lower module:
module F, for judging whether document to be uploaded is breakpoint transmission state, if so, execution module G, if not, execution module H;
module G: once uploading interruptions starts to upload described document to be uploaded in the past;
module H: restart to upload described document to be uploaded.
CN201410019132.9A 2014-01-15 2014-01-15 Method for cooperating working directory or document access and system thereof Pending CN103778208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410019132.9A CN103778208A (en) 2014-01-15 2014-01-15 Method for cooperating working directory or document access and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410019132.9A CN103778208A (en) 2014-01-15 2014-01-15 Method for cooperating working directory or document access and system thereof

Publications (1)

Publication Number Publication Date
CN103778208A true CN103778208A (en) 2014-05-07

Family

ID=50570443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410019132.9A Pending CN103778208A (en) 2014-01-15 2014-01-15 Method for cooperating working directory or document access and system thereof

Country Status (1)

Country Link
CN (1) CN103778208A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105631350A (en) * 2015-03-05 2016-06-01 西安酷派软件科技有限公司 Data operation method, data operation apparatus and terminal
CN105812432A (en) * 2014-12-31 2016-07-27 北京金山云网络技术有限公司 Cloud file processing method and device
CN106446097A (en) * 2016-09-13 2017-02-22 郑州云海信息技术有限公司 File reading method and system
CN106484772A (en) * 2016-09-09 2017-03-08 腾讯科技(深圳)有限公司 Footmark treating method and apparatus
CN108829482A (en) * 2018-06-20 2018-11-16 广州视源电子科技股份有限公司 Data cooperative transmission control system, method, storage medium and interactive device
CN109766317A (en) * 2019-01-08 2019-05-17 浪潮电子信息产业股份有限公司 A kind of delet method of file, device, equipment and storage medium
CN110135791A (en) * 2018-02-08 2019-08-16 亚智科技股份有限公司 Process recipe monitoring method and process recipe monitoring system
CN111260341A (en) * 2020-05-06 2020-06-09 武汉中科通达高新技术股份有限公司 Traffic violation data auditing method, computer equipment and readable storage medium
CN112380172A (en) * 2020-11-03 2021-02-19 中国直升机设计研究所 Multi-user table cooperation framework and method capable of locking and concurrency

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6728709B1 (en) * 2001-06-22 2004-04-27 Unisys Corporation Locking partitioned database tables
CN102651006A (en) * 2011-02-25 2012-08-29 上海网环信息科技有限公司 Database table record locking method and device
CN102955785A (en) * 2011-08-22 2013-03-06 北大方正集团有限公司 Method and system for online editing of documents

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6728709B1 (en) * 2001-06-22 2004-04-27 Unisys Corporation Locking partitioned database tables
CN102651006A (en) * 2011-02-25 2012-08-29 上海网环信息科技有限公司 Database table record locking method and device
CN102955785A (en) * 2011-08-22 2013-03-06 北大方正集团有限公司 Method and system for online editing of documents

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812432A (en) * 2014-12-31 2016-07-27 北京金山云网络技术有限公司 Cloud file processing method and device
CN105812432B (en) * 2014-12-31 2019-03-12 北京金山云网络技术有限公司 Cloud document processing method and device
CN105631350B (en) * 2015-03-05 2018-07-24 西安酷派软件科技有限公司 Data manipulation method, data operation device and terminal
CN105631350A (en) * 2015-03-05 2016-06-01 西安酷派软件科技有限公司 Data operation method, data operation apparatus and terminal
CN106484772A (en) * 2016-09-09 2017-03-08 腾讯科技(深圳)有限公司 Footmark treating method and apparatus
CN106484772B (en) * 2016-09-09 2018-04-20 腾讯科技(深圳)有限公司 Footmark treating method and apparatus
CN106446097A (en) * 2016-09-13 2017-02-22 郑州云海信息技术有限公司 File reading method and system
CN106446097B (en) * 2016-09-13 2020-02-07 苏州浪潮智能科技有限公司 File reading method and system
CN110135791A (en) * 2018-02-08 2019-08-16 亚智科技股份有限公司 Process recipe monitoring method and process recipe monitoring system
CN108829482B (en) * 2018-06-20 2022-04-05 广州视源电子科技股份有限公司 Data transmission cooperation control system, method, storage medium and interaction device
CN108829482A (en) * 2018-06-20 2018-11-16 广州视源电子科技股份有限公司 Data cooperative transmission control system, method, storage medium and interactive device
CN109766317A (en) * 2019-01-08 2019-05-17 浪潮电子信息产业股份有限公司 A kind of delet method of file, device, equipment and storage medium
CN109766317B (en) * 2019-01-08 2022-04-22 浪潮电子信息产业股份有限公司 File deletion method, device, equipment and storage medium
CN111260341B (en) * 2020-05-06 2020-07-28 武汉中科通达高新技术股份有限公司 Traffic violation data auditing method, computer equipment and readable storage medium
CN111260341A (en) * 2020-05-06 2020-06-09 武汉中科通达高新技术股份有限公司 Traffic violation data auditing method, computer equipment and readable storage medium
CN112380172A (en) * 2020-11-03 2021-02-19 中国直升机设计研究所 Multi-user table cooperation framework and method capable of locking and concurrency

Similar Documents

Publication Publication Date Title
CN103778208A (en) Method for cooperating working directory or document access and system thereof
CN109299102B (en) HBase secondary index system and method based on Elastcissearch
US20160381035A1 (en) Management of data of user groups and maintenance of communication thereof
CN103714123B (en) Enterprise's cloud memory partitioning object data de-duplication and restructuring version control method
CN102360410B (en) User operation discovery method of file system and synchronous system utilizing the same
CN109101516B (en) A kind of data query method and server
DE202009019149U1 (en) Asynchronous distributed garbage collection for replicated storage clusters
CN103544319A (en) Multi-tenant database sharing method and multi-tenant database as-a-service system
US20130132447A1 (en) Document management apparatus improved in efficiency of deletion of files, method of controlling the same, and storage medium
CN107291768B (en) Index establishing method and device
CN104216962A (en) Mass network management data indexing design method based on HBase
CN103390015A (en) Mass data united storage method based on unified indexing and search method
CN102622384A (en) File management method
EP3000049B1 (en) System and method to provide document management on a public document system
CN103685517A (en) Storage hierarchical scheduling method and system based on service class characteristics
CN101770608A (en) Management method and device of engineering versions
CN104298761A (en) Implementation method for master data matching between heterogeneous software systems
CN105373452B (en) A kind of data back up method
CN101866356B (en) Structural management method for disk directory information
CN106250501A (en) Report processing method and reporting system
Khan et al. Document management system: An explicit knowledge management system
CN102103607A (en) No-refresh picture bulk-uploading and automatic picture information acquisition technique
CN103955519A (en) Account inquiring and recording system and inquiring and recording method thereof
CN108268509B (en) Configuration data management method and device
CN107784013B (en) Method for interconnecting dispersed documents for distributed management

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140507

RJ01 Rejection of invention patent application after publication