Background technology
Along with Internet development, increasing people brings into use the approach of the Internet as communication exchange.In communication process, the transmission of file is more and more frequent, and the amount of transmission is also increasing, therefore, uses a kind of transmission means fast and efficiently to seem particularly important.There is obvious defects in traditional transmission means, and for example, the part instrument need be installed client just can carry out file transfer, and the part instrument can not merge file unified the download, and the part instrument can't realize transmitting at different user the function of different files.In addition, the proof procedure in network communication includes only user's the authentication and the checking of access privilege usually, thereby influences the fail safe of network communication.
For example, application number is that 200810117459.4 Chinese invention patent discloses a kind of file download service method and system.Above-mentioned file download service method may further comprise the steps.The downloading request message that file download service device receiving terminal sends.Wherein, downloading request message comprises the information of end message and request file in download.When terminal has the authority of download, will ask the information of file in download to be sent to the file packing apparatus.The file packing apparatus will be asked the downloaded files packing according to the information of request file in download, and the file address after the packing is sent to the file download service device.File after the file download service device will be packed according to the described address that receives is sent to terminal.Yet, there is following shortcoming in existing file transfer means: 1, existing file transfer means need be installed client software and just can be carried out file transfer, some indescribable software can be by the terminal that is installed in oneself unawares, thereby influences the fail safe of computer; 2, existing webpage only has that file is uploaded, download function, lacks compression function, if quantity of documents is bigger, then needs the user repeatedly to click page request and downloads, thereby cause many unnecessary operations; 3, when source user need send to a plurality of targeted customer with file, need repeat to select file waiting for transmission, and carry out repeatedly squeeze operation, be not easy to operation; 4, the targeted customer need inquire ceaselessly that whether server end finishes packing process, wastes targeted customer's time easily.
In addition, application number is that the Chinese invention patent application of 201010145447.X discloses and a kind ofly realizes the file-sharing access control method based on agency by agreement.Wherein, subscriber computer input log-on message, log file is shared acting server.The log-on message of checking subscriber computer input in the file-sharing acting server; The shared file access request that response is initiated by the subscriber computer of checking judges whether subscriber computer has the access rights of the shared file A that is asked; If have, proxy user computer access shared file A then, and the reply data bag of file-sharing service device encapsulated as return results, otherwise denied access is encapsulated as return results, and return results returned to subscriber computer, and record access daily record.Yet,, wherein the checking of subscriber computer is comprised the landing checking and judge whether subscriber computer has the access rights of the shared file A that is asked, and other verification setting is not provided of subscriber computer, thereby influence the fail safe of network communication.
Embodiment
Hereinafter will describe the present invention with reference to the accompanying drawings and in conjunction with the embodiments in detail.Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Figure 1 shows that the flow chart of the transmission method of the batch process file that checking is set that first preferred embodiment according to the present invention provides.Figure 2 shows that the schematic diagram of the transmission system of the batch process file that checking is set that first preferred embodiment according to the present invention provides.Please in the lump with reference to figure 1 and Fig. 2.
The transmission method of the batch process file that checking is set that as shown in Figure 1, first preferred embodiment of the present invention provides comprises step S100~S115.In step S100, the source user accessed web page.In present embodiment, all operations of source user all realizes based on webpage, thereby guarantees convenience and the fail safe operated.
In step S101, whether the identity information of judging source user checking by server.Particularly, behind the source user accessed web page, source user is imported identity information on webpage, and the identity information of server authentication source user.In practical application, server can be stored the identity information of registered source user in advance.When the source user accessed web page and when importing identity information, server judges whether the identity information of source user is consistent with the information of server memory storage.If server is judged the information unanimity, then source user can normally land.Otherwise source user lands failure.Wherein, identity information for example can be identity code.Yet the present invention does not do any qualification to this.In addition, the proof procedure in the present embodiment is not limited to source user, also can carry out authentication when targeted customer's accessed web page.
In present embodiment, when the identity information of source user did not pass through the checking of server, the server notification source user was by checking (as step S102).In addition, but server also the notification source user re-enter identity information.The present invention does not do any qualification to this.In practical application, corresponding operation can be set as required.In addition, when the identity information of source user passed through the checking of server, source user successfully landed and can carry out associative operation.Shown in step S103, source user sends batch process and instructs to server.In this, the batch process instruction is for example compressed transfer instruction in batches for file.
In present embodiment, when server after source user receives the batch process instruction, the current state of server authentication source user is instructed in the operating right (as step S104) of current state to judge batch process.In this step, server need confirm just to have when source user is online operating right to the batch process instruction.For example, instructing to server when source user transmission batch process is off-line, and then server can judge that this moment, the batch process instruction can not be operated.So, guarantee that the execution of batch process instruction is by the source user On-line Control.In addition, judge batch process when server and instruct when current state has operating right that server is judged the operating right (as step S105) of source user to the batch process instruction.Judge batch process when server and instruct when current state does not have operating right that server can finish the proof procedure that the batch process instruction is carried out.
In present embodiment, source user represents that to the operating right of batch process instruction source user operates the authority of described batch process instruction.For example, server can be stored the operating right table of comparisons of source user and batch process instruction.For example, source user A can have the operating right that the word file compresses transfer instruction in batches, and source user B has the operating right that the pdf file compresses transfer instruction in batches, and source user C has the operating right that the excel file compresses transfer instruction in batches.Yet the present invention is not limited thereto.The operating right contrast relationship of source user and batch process instruction can be provided with according to practical application.
In present embodiment, when source user was not enjoyed the operating right that batch process is instructed, the server notification source user had no right to operate (as step S106).When source user was enjoyed operating right to batch process instruction, server received pending file and the pending file of batch process to obtain compressed file (as step S107) from source user.Wherein, source user is realized processing to pending file based on webpage, thereby avoids some indescribable software by the terminal that is installed in oneself unawares, with the fail safe of assurance computer.Simultaneously, after source user was sent to server by webpage with pending file, server can directly carry out batch process, carries out multi-pass operation and need not source user.
In present embodiment, with after obtaining compressed file, server is judged the operating right (as step S108) of batch process instruction to the targeted customer in the pending file of server batch process.Wherein, the batch process instruction represents that to targeted customer's operating right can the batch process instruction access destination user.For example, when the instruction of described batch process is compressed the word file when transferring to the targeted customer in batches for source user, the batch process instruction to targeted customer's operating right represent above-mentioned batch process instruction can the access destination user to realize the transmission of the word file of compression in batches.
In present embodiment, when operating right to the targeted customer was not enjoyed in batch process instruction, the server notification source user was had no right operation (as step S109).When operating right to the targeted customer was enjoyed in batch process instruction, server was judged the reception authority (as step S110) of targeted customer to the batch process instruction.Wherein, the targeted customer represents to the reception authority of batch process instruction whether the targeted customer has authority to receive the batch process instruction.For example, when the instruction of described batch process is source user transmission when the word file of compression is to the targeted customer in batches, the targeted customer represents that to the reception authority of batch process instruction can the targeted customer receive the word file that compresses in batches.
In present embodiment, when the targeted customer did not enjoy the reception authority that batch process is instructed, server notification source user targeted customer had no right to receive (as step S111).When the targeted customer enjoyed the reception authority that batch process is instructed, server is synchronization notice targeted customer (as step S112) after finishing batch process.For example, when described batch process instruction is transmitted the word file of compression in batches to the targeted customer for source user, and the targeted customer can be when source user receives the word file of compression in batches, and the server notification targeted customer compresses in batches and finishes and the targeted customer can receive compressed file.Particularly, carry out in the process of squeeze operation in server, server can be set up socket with the targeted customer and link.After server was finished batch process, server sync notification target user batch process was finished and can be downloaded.So, the targeted customer need not ceaselessly to inquire whether the server batch process is finished, thereby has saved targeted customer's time.In addition, targeted customer's number is at least one, for example can be three.Yet the present invention does not do any qualification to this.
After step S112, promptly after the notice of targeted customer's reception server, the targeted customer selects whether to receive compressed file (as step S113).In practical application, can jump out dialog box on targeted customer's the webpage for targeted customer's selective reception or refusal.With described batch process instruction serves as that the word file that transmission is compressed in batches is an example, if targeted customer's selective reception, shown in step S114, server is according to the transmission of default transmission policy control compressed file.If the targeted customer selects rejection, shown in step S115, server notification source user targeted customer rejects compressed file.
Wherein, transmission policy includes but not limited to: transmission speed, transmission path.When transmission policy is a transmission speed, and the transmission speed of server is when the fastest, and the Server Transport compressed file is to the targeted customer who waits to receive compressed file.When transmission policy is a transmission speed, and targeted customer's the transmission speed that has received compressed file is during faster than the transmission speed of server, and the targeted customer that server controls has received compressed file is transmitted compressed file to the targeted customer who waits to receive compressed file.When transmission policy is a transmission path, and server to the targeted customer's who waits to receive compressed file transmission path the most in short-term, wait that the targeted customer who receives compressed file receives compressed file from server.When transmission policy is a transmission path, and received the targeted customer of compressed file and wait to receive between the targeted customer of compressed file transmission path the most in short-term, the targeted customer that server controls has received compressed file is transmitted compressed file to the targeted customer who waits to receive compressed file.
As shown in Figure 2, the file process synchronization notice system that checking is set that first preferred embodiment of the present invention provides comprises source user 101, server 102 and targeted customer 103a~103c.Server 102 connects source user 101 and targeted customer 103a~103c.In present embodiment, be that example describes with three targeted customer 103a~103c.Yet the present invention does not limit targeted customer's number.Wherein, server 102 receives the batch process instruction from source user 101.Server 102 is judged the operating right of 101 pairs of batch process instructions of source user.If source user 101 is enjoyed the operating right to the batch process instruction, server 102 receives pending file and the pending file of batch process from source user 101.Server 102 is judged the reception authority of targeted customer 103a~103c to the batch process instruction.If targeted customer 103a~103c enjoys the reception authority to the batch process instruction, server 102 is synchronization notice targeted customer 103a~103c after finishing batch process.
Particularly, server 102 comprises authentication module 1020, receiver module 1021, memory module 1022, authority judge module 1023, batch process module 1024, notification module 1025 and transport module 1026.Wherein, authentication module 1020 connects receiver module 1021, receiver module 1021 connects authority judge module 1023 and memory module 1022, batch process module 1024 connects memory module 1022 and authority judge module 1023, notification module 1025 connects authority judge module 1023, and transport module 1026 connects batch process module 1024.
In present embodiment, when source user 101 accessed web pages, the identity information of authentication module 1020 checking source users 101.After the identity information of source user 101 passed through the checking of authentication module 1020, receiver module 1021 received the batch process instruction from source user 101.Then, authority judge module 1023 is judged the operating right of 101 pairs of batch process instructions of source user.If source user 101 is enjoyed the operating right to the batch process instruction, receiver module 1021 receives pending file from source user 101, and the pending file of batch process module 1024 batch process is to obtain compressed file.Wherein, pending file and compressed file all can be stored in memory module 1022.If source user 101 is not enjoyed the operating right to the batch process instruction, notification module 1025 notification source users have no right to operate.In addition, if source user 101 is enjoyed the operating right to the batch process instruction, authority judge module 1023 is also judged the reception authority of targeted customer 103a~103c to the batch process instruction.If targeted customer 103a~103c does not enjoy the reception authority to the batch process instruction, notification module 1025 notification source users 101 targeted customer 103a~103c have no right to receive.If targeted customer 103a~103c enjoys the reception authority to the batch process instruction, batch process module 1024 is synchronization notice targeted customer 103a~103c after finishing batch process.Afterwards, if targeted customer 103a~103c selective reception compressed file, then transport module 1026 is according to the transmission of default transmission policy control compressed file.
Particularly, when transmission policy was transmission speed, server 102 transferred to a fastest targeted customer of transmission speed (for example, targeted customer 103a) with compressed file earlier.Afterwards, server 102 is judged server 102 and targeted customer 103b, 103c and targeted customer 103a and targeted customer 103b, the speed of transmission speed between the 103c.Server 102 receives compressed file according to the judgement controlled target user 103b of transmission speed from server 102 or targeted customer 103a.Subsequently, server 102 receives compressed file according to identical judgement controlled target user 103c from server 102 or targeted customer 103a or targeted customer 103b again.Similarly, when transmission policy was transmission path, server 102 was judged the transmission of control compressed file according to the distance of transmission path.Repeat no more in this.
Figure 3 shows that the flow chart of the transmission method of the batch process file that checking is set that second preferred embodiment according to the present invention provides.The transmission method of the batch process file that checking is set that as shown in Figure 3, second preferred embodiment of the present invention provides comprises step S200~S215.The difference of the transmission method of the batch process file that checking is set that the transmission method of the batch process file that checking is set that second preferred embodiment of the present invention provides and first preferred embodiment provide is: in second preferred embodiment, in source user send batch process instruct to server (step S203) afterwards, server is judged the operating right (as step S204) of source user to the batch process instruction, after step S204, the current state of server authentication source user is instructed in the operating right (as step S206) of current state to judge batch process.In other words, in present embodiment, server is judged earlier the operating right of source user to the batch process instruction, judges that afterwards batch process instructs in the operating right of current state again.For example, when source user was enjoyed operating right to batch process instruction, if the current state of source user is an off-line state, then server can judge that source user do not enjoy operating right to the batch process instruction in off-line state.Otherwise when the current state of source user is a presence, then server can judge that source user enjoys operating right to the batch process instruction in presence.So, guarantee the On-line Control of source user to the batch process instruction.
In sum, according to transmission method and the system that the batch process file of checking is set provided by the invention, because server is finished pending files in batches and is handled back synchronization notice targeted customer, therefore, the targeted customer need not ceaselessly to inquire whether server end finishes the batch process operation, has saved targeted customer's time better.Secondly,, in operating process, need not to repeat to select file waiting for transmission, avoid simultaneously carrying out repeatedly identical squeeze operation, thereby made things convenient for operation when targeted customer's number when being a plurality of.In addition, server is not only judged the operating right of source user to the batch process instruction, and judges the reception authority of targeted customer to the batch process instruction.So, the execution of batch process instruction needs a plurality of proof procedures, thereby improves the fail safe of network communication.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.