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, in present network communication, proof procedure includes only user's the authentication and the checking of access privilege usually.
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, need file is sent to a plurality of targeted customers when source user, and file transfer object and transfer files content are all not simultaneously, need repeat to select file waiting for transmission, and carry out repeatedly squeeze operation, are not easy to operate; 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.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 of subscriber computer, but other verification setting is not provided, 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 transfer control method of the file batch process that preferential checking is set that first preferred embodiment according to the present invention provides.Figure 2 shows that the schematic diagram of the transmission control system of the file batch process that preferential 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 transfer control method of the file batch process that preferential 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.Wherein, batch process instruction for example can be file and compresses transfer instruction in batches.In addition, the priority of source user is default by the keeper.The number of source user is at least two.Yet the present invention is not limited thereto.
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 that source user is online, and this moment, source user just had the 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 is enjoyed operating right to batch process instruction, server from source user receive with targeted customer's the corresponding pending file of type and the pending file of batch process to obtain compressed file (as step S107).Wherein, source user is classified pending file by webpage and is corresponding with targeted customer's type.For example, if targeted customer's type comprises three classes (for example senior management staff, middle administrative staff and general personnel), then source user can be according to targeted customer's type with pending document classification and corresponding with three types of targeted customer.For example, pending file comprises 30, and then the senior management staff can download above-mentioned 30 pending files, and the middle administrative staff can download preceding 20 pending files, and general personnel only can download preceding 10 pending files.In this, source user realizes to targeted customer's authority setting and to the classification of 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.
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 had no right to operate (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, server can be set up socket with the targeted customer and links.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.In addition, in the proof procedure of above-mentioned source user, server need carry out the checking of a plurality of processes, thereby guarantees the fail safe of network communication.Yet the present invention is not limited thereto.In practical application, can adjust proof procedure as required.
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).If targeted customer's selective reception, shown in step S115, server is according to the transmission of default transmission policy control compressed file.If the targeted customer selects rejection, shown in step S114, server notification source user targeted customer rejects compressed file.Particularly, when server sync notification target user, can jump out the dialog box that whether receives compressed file on targeted customer's the webpage.If targeted customer's selective reception, then server wait to receive compressed file according to default transmission policy control the targeted customer from server or the targeted customer who has received compressed file receive compressed file; If the targeted customer selects refusal, then server can which targeted customer of timely notification source user be rejected corresponding 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.
The transmission control system of the file batch process that preferential checking is set that as shown in Figure 2, first preferred embodiment of the present invention provides comprises keeper 100, source user 101a~101b, server 102 and targeted customer 103a~103c.Server 102 connection management persons 100, source user 101a~101b and targeted customer 103a~103c.In present embodiment, be that example describes with two source user 101a~101b and three targeted customer 103a~103c.Yet the present invention is not limited thereto.Wherein, the priority of keeper 100 default source user 101a~101b.For example, the priority of keeper 100 default source user 101a is higher than source user 101b.At this moment, the right of preferential checking is enjoyed in the batch process instruction of source user 101a transmission.
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 101a~101b accessed web page, the identity information of authentication module 1020 checking source user 101a~101b.After the identity information of source user 101a~101b passed through the checking of authentication module 1020, source user 101a~101b sent batch process and instructs to server 102.Because keeper 100 has preset the priority of source user 101a~101b, therefore, receiver module 1021 can receive the batch process instruction from the higher source user of priority (for example, source user 101a).Then, authority judge module 1023 is judged the operating right of source user 101a to the batch process instruction.If source user 101a does not enjoy the operating right to the batch process instruction, notification module 1025 notification source users have no right to operate.Simultaneously, authority judge module 1023 is judged the operating right of source user 101b to the batch process instruction.If source user 101a enjoys the operating right to the batch process instruction, receiver module 1021 receives pending file from source user 101a, 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.In addition, if source user 101a enjoys 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.
In addition, for example, targeted customer 103a, 103b is the senior management staff, and targeted customer 103c is the middle administrative staff.When pending file is 30, and senior management staff's download authority is 30 pending files, when middle administrative staff's download authority was preceding 20 pending files, the batch process module 1024 of server 102 can be according to the pending file of above-mentioned contrast relationship batch process correspondence to obtain two compressed files.After the batch process instruction was all finished the squeeze operation of above-mentioned two compressed files by checking and batch process module 1024, server 102 meeting synchronous notification target user 103a~103c squeeze operations were finished and can be carried out down operation.Then, if targeted customer 103c selective reception compressed file, then the transport module 1026 of server 102 can transfer to targeted customer 103c with the compressed file of correspondence.If targeted customer 103a, the equal selective reception compressed file of 103b, then server 102 can transfer to targeted customer 103a or targeted customer 103b with compressed file earlier according to transmission policy.For example, when transmission policy is a transmission speed, and the transmission speed between server 102 and the targeted customer 103a is when very fast, and server 102 transfers to targeted customer 103a with compressed file earlier.Afterwards, transmission speed between server 102 judgement targeted customer 103b and the targeted customer 103a and the transmission speed between targeted customer 103b and the server 102.Server 102 judges that according to the speed of transmission speed controlled target user 103b receives compressed file from server 102 or targeted customer 103a.Similarly, when transmission policy was transmission path, server 102 was judged the transmission of the distance of transmission path with the control compressed file.
Figure 3 shows that the flow chart of the transfer control method of the file batch process that preferential checking is set that second preferred embodiment according to the present invention provides.Step S200~the S215 of the transfer control method of the file batch process that preferential checking is set that as shown in Figure 3, second preferred embodiment of the present invention provides.The difference of the transfer control method of the file batch process that preferential checking is set that the transfer control method of the file batch process that preferential 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, the transfer control method and the system of the file batch process that preferential checking is set that preferred embodiment provides according to the present invention, because pending file is classified and is corresponding with targeted customer's type, and server is handled back synchronization notice targeted customer in finishing whole pending files in batches, therefore, the targeted customer of different types not only can receive different pending files, and need not to repeat to select file waiting for transmission in operating process, thus handled easily.In addition, the targeted customer need not ceaselessly to inquire whether server end finishes the batch process operation, thereby has saved targeted customer's time better.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.