Summary of the invention
The technical problem that the present invention will solve is, at the deficiency in the correlation technique, provides a kind of file management system, shows the file of needs according to the demand of client terminal.
Another technical problem that the present invention will solve is, at the deficiency in the correlation technique, provides a kind of file management method, shows the file of needs according to the demand of client terminal.
This document management system comprises: the basic document acquisition module, obtain and be stored in server end, and this basic document also is stored in authorized client simultaneously;
The differential file generation module, the change that recording user is done basic document in authorized client, and generate the change that a differential file comes the synchronous recording user in client basic document to be done at server end; And
Use module, respond the operation of the demonstration differential file of user on a normal client end, show after original document is combined with differential file.
Further, described basic document acquisition module obtains the mode of basic document for the end that uploads onto the server from authorized client, perhaps is downloaded to server end from network.
Further, described differential file generation module namely generates the change that a virtual disk recording user is done basic document in authorized client in client after authorized client is opened, and simultaneously with the data image that records in this virtual disk to the differential file of server end.
Further, differential file generation module recording user opening entry when authorized client is opened from authorization location changing to of doing of basic document shuts down up to authorized client.
Further, this differential file generation module namely generates a differential file at server end whenever detecting the authorized client unlatching once.
Further, described system also comprises configuration module, this server end is also stored a configuration file, configuration file is used for the relation between record basic document and the differential file, after authorized client starts, basic document and the relation between the differential file of this configuration module demonstration configuration file record are given the user, and with user-selected differential file as higher level's file, and the differential file that the user is generated on the basis of higher level's differential file is recorded in this configuration file as subordinate's file of this this higher level's file.
Further, the operation of described configuration module response authorize clients end subscriber, the game server end is revised the basic document and the relation between the differential file that record in the configuration file and is generated multiple usage policy, and for different normal client ends different usage policys is set.
This document management method comprises step:
The basic document obtaining step: obtain and be stored in server end, this basic document also is stored in authorized client simultaneously;
Differential file generates step: the change that recording user is done basic document in authorized client, and generate the change that a differential file comes the synchronous recording user in client basic document to be done at server end; And
Use step: respond the operation of the demonstration differential file of user on a normal client end, show after original document is combined with differential file.
Further, described method comprises that also described differential file generation module namely generates the change that a virtual disk comes recording user in authorized client basic document to be done in client after authorized client is opened, and simultaneously with the data image that records in this virtual disk to the differential file of server end.
Further, this server end is also stored a configuration file and is recorded relation between basic document and the differential file, this method also comprises step: after authorized client starts, the basic document and the relation between the differential file that show the configuration file record are given the user, and with user-selected differential file as higher level's file, and the differential file that the user is generated on the basis of higher level's differential file is recorded in this configuration file as subordinate's file of this this higher level's file.
The invention has the beneficial effects as follows: by will be at the amendment record of doing on the basic document in differential file, when using Deng the user, can directly obtain the file that needs according to predefined differential file, and need not the file that game server is sought to be needed.
In addition, by the relation of configuration file record basic document and differential file is set at server end, convenience is for user's modification and usage policy is set.
Embodiment
Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can mutually combine, and below in conjunction with the drawings and specific embodiments the present invention are described in further detail.
As shown in Figure 1, be the module map of the file management system in an embodiment of the present invention.This document management system 1 comprises basic document acquisition module 10, differential file generation module 11, configuration module 12, administration module 13 and uses module 14.This document management system application in the network environment shown in Fig. 2 is, namely a plurality of normal client ends 3 and an authorized client 2 by network connection to server end 4.Normal client end 3 has only the authority of the file of browser server end 4, and authorized client 2 can be made amendment to the file of server end 4.
This basic document acquisition module 10 is used for obtaining and this basic document being stored in this server end 4, the obtain manner of described basic document is the end 4 that uploads onto the server from authorized client 2, perhaps be downloaded to server end 4 from the Internet, described basic document also is stored in this authorized client 2.After detecting authorized client 2 unlatchings, this differential file generation module 11 namely generates a virtual disk in this authorized client 2, generate a differential file at server end 4, the change record that the user is done at 2 pairs of basic documents of authorized client is to virtual disk then, and simultaneously with the data image that records in this virtual disk to the differential file of server end 4.Opening entry was finished record up to the authorized client shutdown when this differential file generation module 11 was opened from authorized client 2.Authorized client 2 every unlatchings once, this differential file generation module 11 namely generates a differential file at server end 4.
In the present embodiment, server end 4 is also stored the identification code of a configuration file and connected normal client end 3.Described configuration file is used for the configuration relation between record basic document and each differential file, when detecting authorized client 2 starts, basic document and the configuration relation between the differential file of these configuration module 12 demonstration configuration file records are given the user, and with user-selected differential file as higher level's differential file, the differential file that the user is generated on the basis of higher level's differential file is recorded in this configuration file as subordinate's file of this higher level's file.Configuration relation as shown in Figure 3, after being operated through first, basic document 30 generates first differential file 31, then first differential file 31 is as subordinate's file of basic document 30, and their relation is stored in the configuration file, open in the authorized client 2 in next time, this configuration module 12 shows that configuration file is to the user, the user selects the configuration of startup this time, it is basic document 30, perhaps basic document 30+ first differential file 31, after the user selected basic document 30, this differential file generation module 11 generated the change that one second differential file 32 is done basic document 30 as subordinate's file record second operation of this basic document 30; If the user selects basic document 30+ first differential file 31, then differential file generation module 11 generations the 3rd differential file 33 records the change that the 3rd operation is done as subordinate's file of first differential file 31, after authorized client startup 2 next time, this configuration module 12 shows that the configuration relation that records in the configuration file is to the client, then the user need can select higher level's file of operation to generate the next stage differential file, be that the user of institute selects first differential file 31 as higher level's file, then subordinate's file the 4th differential file 34 that the change of doing generates first differential file 31 operated in differential file generation module 11 records the 4th, if what the user selected is that second differential file 32 is higher level's file, then the change done of 11 records the 5th operation of differential file generation module or the 6th operation generates the 5th differential file 35 or the 6th differential file as subordinate's file of second differential file 32.
In the present embodiment, the user's of described configuration module 12 response authorized client 2 operation generates multiple usage policy according to relation between basic document shown in Figure 3 30 and the differential file, as:
Usage policy 1=basic document 30+ first differential file 31;
Usage policy 2=basic document 30+ second differential file 32;
The usage policy 3=basic document 30+ first differential file 31+ the 3rd differential file 33;
The usage policy 4=basic document 30+ first differential file 31+ the 4th differential file 34;
The usage policy 5=basic document 30+ second differential file 32+ the 5th differential file 35;
The usage policy 6=basic document 30+ second differential file 32+ the 6th differential file 36;
This configuration module 12 is that every kind of usage policy arranges different normal client ends 3 according to the demand of different normal client ends 3 also, is specially the different normal client end identification codes of server end 4 storage to be associated with different usage policy.
This administration module 13 can carry out deletion action to the differential file of server end 4, if what delete is higher level's file, then subordinate's file of this higher level's file and this higher level's file correspondence all can be deleted, also can only delete higher level's file, and subordinate's file of this higher level's file is incorporated in higher level's file of this higher level's file.
This uses the operation of module 14 uses of response user on normal client end 3, obtain the identification code of this normal client end 3, identification code according to normal client end 3 is retrieved as the usage policy that this normal client end 3 arranges, if comprise basic document and differential file in the usage policy, then basic document and each differential file are shown by normal client end 3 in conjunction with the back.
As shown in Figure 4, the flow chart of the method that generates for the differential file in an embodiment of the present invention.Step S401, the basic document obtaining step: basic document acquisition module 10 obtains and this basic document is stored in this server end 4.
Step S402, authorized client setting up procedure: the startup of detecting authorized client 2.
Step S403: configuration relation step display: after detecting authorized client 2 unlatchings, basic document and the configuration relation between the differential file of configuration module 12 demonstration configuration files records are given the user.
Step S404, higher level's file is selected step: configuration module 12 need to select higher level's file of modification according to user's operation.
Step S405, differential file generates step: differential file generation module 11 generates a virtual disk in this authorized client 2, generates a differential file at server end 4.
Step S406, the configuration file recording step: configuration module 12 is recorded in the subordinate file of this differential file that generates as user-selected higher level's file in the configuration file.
Step S407, the amendment record step: the change record that differential file generation module 11 is the user at 2 pairs of basic documents of authorized client is to virtual disk, and simultaneously with the data image that records in this virtual disk to the differential file of server end 4.
Behind step S402, also can be according to user's selection execution in step S408 or S409.Step S408 usage policy arranges step: configuration module 12 is revised configuration file, formulates usage policy, for normal client end 3 different usage policys is set then.Step S409, management process: the differential file in 13 pairs of server ends 4 of administration module carries out deletion action.
Fig. 5 is the flow chart that normal client end 3 uses the file of storage in the server end 4 in an embodiment of the present invention.Step S501, the identification code obtaining step: this uses the operation of module 14 uses of response user on normal client end 3, obtains the identification code of this normal client end 3.
Step S502, usage policy arranges step: this use module 14 is retrieved as the usage policy that this normal client end 3 arranges according to the identification code of normal client end 3.
In step S503, file step display: if include only basic document in the usage policy, then use module 14 directly execution and display base file, if comprise basic document and differential file, then use module 14 that basic document and each differential file are carried out and demonstration in conjunction with the back.
In addition, one of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, be to instruct relevant hardware to finish by program, described program can be stored in the computer-readable recording medium, described program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Although illustrated and described embodiments of the invention, for the ordinary skill in the art, be appreciated that without departing from the principles and spirit of the present invention and can carry out multiple variation, modification, replacement and modification to these embodiment, scope of the present invention is limited by claims and equivalency range thereof.