[go: up one dir, main page]

CN113032042B - Target file processing method, device and terminal equipment - Google Patents

Target file processing method, device and terminal equipment Download PDF

Info

Publication number
CN113032042B
CN113032042B CN202110284753.XA CN202110284753A CN113032042B CN 113032042 B CN113032042 B CN 113032042B CN 202110284753 A CN202110284753 A CN 202110284753A CN 113032042 B CN113032042 B CN 113032042B
Authority
CN
China
Prior art keywords
file
target
preset
target file
document editor
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.)
Active
Application number
CN202110284753.XA
Other languages
Chinese (zh)
Other versions
CN113032042A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110284753.XA priority Critical patent/CN113032042B/en
Publication of CN113032042A publication Critical patent/CN113032042A/en
Application granted granted Critical
Publication of CN113032042B publication Critical patent/CN113032042B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本说明书提供了目标文件的处理方法、装置和终端设备。基于该方法,安装有预设的文件处理客户端的终端设备,可以先向用户展示与预设的文件处理客户端关联的预设的交互页面;并通过该交互页面,确定出待处理的目标文件的标识信息,以及针对目标文件的目标操作类型;再触发调用预设的文件处理客户端与服务器进行相应交互,以获取相匹配的目标脚本文件;进而可以通过预设的文件处理客户端运行上述目标脚本文件,来响应并根据用户操作,调用终端设备本地的软件程序,对目标文件进行与目标操作类型相匹配的操作处理。从而可以较好地满足用户的多样化操作需求,通过调用终端设备本地的软件程序,高效、便捷地实现对目标文件的多种类型的操作处理。

This specification provides a method, apparatus and terminal device for processing a target file. Based on this method, a terminal device equipped with a preset file processing client can first display a preset interactive page associated with the preset file processing client to the user; and through the interactive page, determine the identification information of the target file to be processed, and the target operation type for the target file; then trigger the call of the preset file processing client to interact with the server accordingly to obtain a matching target script file; and then run the above target script file through the preset file processing client to respond and call the local software program of the terminal device according to the user operation, and perform an operation matching the target operation type on the target file. In this way, the diversified operation needs of users can be better met, and various types of operation processing on the target file can be efficiently and conveniently realized by calling the local software program of the terminal device.

Description

Target file processing method and device and terminal equipment
Technical Field
The specification belongs to the technical field of big data, and particularly relates to a processing method, a processing device and terminal equipment of a target file.
Background
In some file data processing scenarios with higher security requirements (for example, approval scenarios of document files and the like), based on the existing method, in order to protect data security, before specific implementation, a user needs to download and install a specific software program such as a specific browser, a specific document editor and the like in terminal equipment, and then specifically set and connect the specific software program based on the underlying logic of a specific operating system. In practice, the user often needs to perform operation processing on the file data according to the corresponding operation rule, and only the specified software program can be called (for example, only the specified document editor can be called to perform modification operation on the document file).
As can be seen, the above method is highly dependent on the operating environment, often requiring the user to install and use a specified software program on the terminal device. Therefore, there is a problem that the use is not flexible and convenient for the user. Moreover, the method has high requirements on users when being implemented. For example, if the user replaces some of the software programs on the terminal device, the user is also required to reconfigure and connect to some of the software programs themselves. Therefore, the problems of complicated operation and high operation difficulty of the user and relatively poor use experience of the user also exist.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The specification provides a processing method, a processing device and terminal equipment for target files, so as to meet diversified operation requirements of users, and can efficiently and conveniently realize various types of operation processing for the target files by calling local software programs of the terminal equipment.
The method for processing the target file is applied to terminal equipment, wherein the terminal equipment is provided with a preset file processing client, and the method comprises the following steps:
Displaying a preset interaction page to a user, wherein the preset interaction page comprises identification information of a plurality of business files and operation type options aiming at the business files;
Determining identification information of a target file to be processed and a target operation type aiming at the target file through the preset interaction page, and generating a trigger request aiming at the preset file processing client;
According to the triggering request, a preset file processing client is called to interact with a server to obtain a matched target script file, wherein the triggering request at least carries identification information of the target file and a target operation type;
and running the target script file through the preset file processing client so as to respond to user operation and perform operation processing matched with a target operation type on the target file.
In one embodiment, the target script file includes a preset javascript matched with the target operation type and/or identification information of the target file.
In one embodiment, the preset file processing client at least comprises a web service module, a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program and a peripheral function program.
In one embodiment, according to the trigger request, invoking a preset file processing client to interact with a server to obtain a matched target script file, including:
According to the triggering request, a web service module of a preset file processing client is called to generate and send a calling request to the server, wherein the calling request at least carries a target operation type;
Receiving address parameters fed back by the server based on the call request;
And downloading the target script file according to the address parameter through a web service module of the preset file processing client.
In one embodiment, the target file comprises a confidential business file to be approved, and the corresponding target operation type comprises at least one of a draft operation, a draft changing operation, a clean copy operation, a draft reading operation and a draft correcting operation.
In one embodiment, the target script file is run through the preset file processing client to respond to user operation, and the operation processing matched with the target operation type is performed on the target file, which includes:
The target script file is operated through the web service module and interacted with a server to obtain the encrypted data of the matched target file, and the encrypted data of the target file is stored in a temporary directory of the terminal equipment;
creating a secure directory through a peripheral function program;
calling local encryption and decryption software of terminal equipment to decrypt the encrypted data of the target file in the secure directory through the API calling program of the encryption and decryption software to obtain the target file;
And calling a local document editor of the terminal equipment to respond to user operation through the API calling program of the document editor, and carrying out operation processing matched with the target operation type on the target file.
In one embodiment, in the case that the target operation type includes a draft operation, calling, by the document editor API calling program, a document editor local to the terminal device to respond to a user operation, performing an operation process on the target file that matches the target operation type, including:
operating the target script file through the web service module, calling a local document editor of the terminal equipment by using the API calling program of the document editor, opening the target file in a traceless editable mode, and registering a callback opening event;
invoking the document editor to edit the target file according to user operation to obtain a draft target file;
responding to an ending instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the target file after draft to obtain encrypted data of the target file after draft;
and calling a web service module, sending the encrypted data of the target file after draft to a server, and deleting the target file in the secure directory.
In one embodiment, in the case that the target operation type includes a reading operation, calling, by the document editor API calling program, a document editor local to the terminal device to respond to a user operation, performing an operation process on the target file that matches the target operation type, including:
operating the target script file through the web service module, calling a local document editor of the terminal equipment by using the document editor API calling program, opening the target file in a read-only mode, and registering and closing a callback event;
And responding to the ending instruction of the user, exiting the document editor, and deleting the target file in the secure directory.
In one embodiment, in the case that the target operation type includes a copy operation, calling, by the document editor API calling program, a document editor local to the terminal device to respond to a user operation, performing an operation process on the target file that matches the target operation type, including:
operating the target script file through the web service module, calling a local document editor of the terminal equipment by using the document editor API calling program, opening the target file in a trace-remaining editable mode, and registering a callback opening event;
invoking the document editor to edit the target file in the matched authority range according to user operation to obtain a target file after manuscript modification;
Responding to an ending instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the target file after the manuscript is changed to obtain encrypted data of the target file after the manuscript is changed;
and calling a web service module, sending the encrypted data of the target file after the manuscript modification to a server, and deleting the target file in the secure directory.
In one embodiment, the matching scope of rights is determined based on identity information of the user.
In one embodiment, in the case that the target operation type includes a manuscript-checking operation, the target file includes a first target file and a second target file;
Correspondingly, through the API calling program of the document editor, calling a document editor local to the terminal equipment to respond to user operation, and carrying out operation processing matched with the target operation type on the target file, wherein the operation processing comprises the following steps:
The web service module is used for running the target script file, calling a local document editor of the terminal equipment to open the first target file in a trace editable mode by utilizing the API calling program of the document editor, and registering an opening callback event for the first target file;
Invoking the document editor to edit the first target file in the matched authority range according to user operation to obtain a first target file after manuscript correction;
responding to an ending instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the first target file after manuscript correction to obtain encrypted data of the first target file after manuscript correction;
And the web service module is called to send the encrypted data of the first target file after the manuscript correction to a server, and the first target file and the second target file in the secure directory are deleted.
In one embodiment, in the case that the target operation type includes clean copy operations, calling, by the document editor API calling program, a document editor local to the terminal device to respond to user operations, and performing operation processing matching with the target operation type on the target file, where the operation processing includes:
Operating the target script file through the web service module, calling a local document editor of the terminal equipment to open the target file in an implicit mode by using the API calling program of the document editor, and registering a callback opening event;
Invoking the document editor, and eliminating editing traces in the target file according to an acceptance instruction of a user to obtain the target file clean copy;
Responding to an ending instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the clean copy target file to obtain encrypted data of the clean copy target file;
and calling a web service module, sending the encrypted data of the clean copy target files to a server, and deleting the target files in the secure directory.
The specification also provides a processing method of the target file, which is applied to the server and comprises the following steps:
Receiving a call request sent by a preset file processing client arranged on terminal equipment, wherein the call request at least carries a target operation type;
determining a target script file matched with the target operation type from a plurality of preset script files, and acquiring address parameters of the target script file;
And the preset file processing client downloads the target script file according to the address parameter, and the preset file processing client responds to user operation by running the target script file to perform operation processing matched with the target operation type on the target file.
The present specification also provides a processing device for a target file, including:
the system comprises a display module, a file processing client and a user interface module, wherein the display module is used for displaying a preset interaction page to a user, the preset interaction page comprises identification information of a plurality of service files and operation type options aiming at the service files, and the preset interaction page is set to be associated with the preset file processing client;
The first processing module is used for determining identification information of a target file to be processed and a target operation type aiming at the target file through the preset interaction page, and generating a trigger request aiming at the preset file processing client;
The system comprises a triggering request, a calling module, a server and a service file storage module, wherein the triggering request is used for calling a preset file processing client to interact with the server according to the triggering request so as to acquire a matched target script file, and the triggering request at least carries identification information of the target file and a target operation type;
And the second processing module is used for running the target script file through the preset file processing client so as to respond to user operation and perform operation processing matched with the target operation type on the target file.
The specification also provides a terminal device, which comprises a display, a processor and a memory for storing instructions executable by the processor, wherein the terminal device is further provided with a preset file processing client, and the processor utilizes the preset file processing client to realize relevant steps of the target file processing method when executing the instructions.
The present specification also provides a computer readable storage medium having stored thereon computer instructions which when executed implement the relevant steps of the method of processing a target file.
The method and the device for processing the target file and the terminal equipment can be used for distributing a preset file processing client which at least comprises a web service module, a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program and a peripheral function program in the terminal equipment in advance before implementation, and can be used for displaying a preset interaction page associated with the preset file processing client to a user in the implementation process, determining identification information of the target file to be processed and a target operation type aiming at the target file through the interaction page, triggering and calling the preset file processing client to perform corresponding interaction with a server to obtain the matched target script file, and further enabling the target script file to be operated through the preset file processing client to respond to and call the local software program of the terminal equipment according to specific operation of the user to perform operation processing matched with the target operation type. Therefore, on the premise of protecting the data security of the target file, the diversified operation requirements of the user can be better met, and the various operation processing of the target file can be efficiently and conveniently realized by flexibly and effectively calling the local related software program of the terminal equipment. Meanwhile, the dependence on the running environment in the file processing process can be effectively reduced, the user operation flow is simplified, the user operation difficulty is reduced, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure, the drawings that are required for the embodiments will be briefly described below, in which the drawings are only some of the embodiments described in the present disclosure, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of one embodiment of the structural composition of a system to which the method for processing a target file provided in the embodiments of the present specification is applied;
FIG. 2 is a schematic diagram of a first embodiment of a configuration composition of a preset file processing client to which the method for processing a target file provided in the embodiments of the present disclosure is applied;
FIG. 3 is a flow chart of a method for processing a target file according to an embodiment of the present disclosure;
FIG. 4 is a flow chart of a method for processing a target file according to an embodiment of the present disclosure;
Fig. 5 is a schematic structural composition diagram of a terminal device provided in an embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of a processing device for object files according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of one embodiment of a method for processing a target file according to the embodiments of the present disclosure, in one example scenario;
Fig. 8 is a schematic diagram of an embodiment of a processing method of a target file according to the embodiment of the present disclosure, in one scenario example.
Detailed Description
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
Considering that the existing method often requires a user to download and install a specified software program such as a specified document editor, a specified browser and the like on the used terminal equipment in advance, and then the user performs corresponding setting and connection on the specified software program based on the underlying logic of the specified operating system. When the file data is specifically processed, the user needs to perform specific operation processing on the file data according to the corresponding operation rule and only the specified software program can be called.
This can make the process of processing file data by a user highly dependent on the operating environment. Further, the user cannot freely use the software program originally installed in the terminal device, but must download and install the specified software program to perform specific operation processing on the file data. The user operation is complicated, the operation difficulty is high, and the use experience of the user is relatively poor.
For the root cause of the above problem, before the implementation is considered, the present specification may preset a preset file processing client including a web service module, a preset javascript object, a document editor API calling program, an encryption/decryption software API calling program, and a peripheral function program, in advance, in a terminal device used by a user. Based on the preset file processing client, when the method is implemented, the terminal equipment can display a preset interaction page related to the preset file processing client to a user, determine identification information of a target file to be processed and a target operation type aiming at the target file through the interaction page, trigger and call the preset file processing client to interact with a server correspondingly to obtain a matched target script file, and further run the target script file through the preset file processing client to respond and call a local software program of the terminal equipment according to specific operation of the user, and perform operation processing matched with the target operation type on the target file. Therefore, on the premise of protecting the data security of the target file, the diversified operation requirements of users can be met, and various types of operation processing on the target file can be efficiently and conveniently realized. Meanwhile, the dependence on the running environment in the file processing process can be effectively reduced, the user operation flow is simplified, the user operation difficulty is reduced, and the user experience is improved.
The embodiment of the specification provides a processing method of a target file, which can be particularly applied to a system comprising a server and terminal equipment. Specifically, referring to fig. 1, the server and the terminal device may be connected by a wired or wireless manner to perform specific data interaction.
In this embodiment, the server may specifically include a background server applied to a side of the data processing platform and capable of implementing functions such as data transmission and data processing. Specifically, the server may be, for example, an electronic device having data operation, storage function and network interaction function. Or the server may be a software program running in the electronic device that provides support for data processing, storage, and network interactions. In the present embodiment, the number of servers is not particularly limited. The server may be one server, several servers, or a server cluster formed by several servers.
In this embodiment, the terminal device may specifically include a front-end electronic device that is applied to a user side and is capable of implementing functions such as data acquisition and data transmission. Specifically, the terminal device may be, for example, a desktop computer, a tablet computer, a notebook computer, a smart phone, etc. Or the terminal device may be a software application capable of running in the electronic device described above. For example, some APP running on a smart phone may be installed.
In this embodiment, before implementation, a preset file processing client may be first disposed on the terminal device. Referring to fig. 2, the preset file processing client at least includes a web service module, a preset javascript object, a document editor API calling program, an encryption/decryption software API calling program, and a peripheral function program. The plurality of structural modules may be connected by an internal cable.
The preset file processing client may be specifically understood as a C-terminal program, which is developed and designed based on an API (Application Programming Interface, application program interface) of an operating system.
When the method is specifically arranged, a web service module (for example, a lightweight web server) in the preset file processing client side can be registered to an operating system of the terminal equipment, so that the preset file processing client side can monitor request data or instruction data sent out by a page end of the terminal equipment side through the web service module and conduct data interaction with a server of a remote side.
In the specific layout, the document editor API calling program and the encryption and decryption software API calling program in the preset file processing client side can be registered to the operating system of the terminal equipment, so that the user can quickly and conveniently bridge the document editor API calling program in the preset file processing client side with the document editor (for example, word, WPS or the like) locally installed in the terminal equipment under the condition of no expert knowledge, and bridge the encryption and decryption software API calling program with the encryption and decryption software (for example, XX encryption university, YY document guard or the like) locally installed in the terminal equipment. So that the user does not need to additionally re-download and connect the specified software program. Based on the structure, the user can be supported to freely select the software program installed in the terminal equipment for bridging according to the personalized requirements and habits of the user, so as to meet the diversified requirements of the user.
The preset javascript object may be specifically connected to the calling program such as the document editor API calling program and the encryption/decryption software API calling program. When the preset file processing client runs specifically, a specific script file can be executed through the web service module, and when a local preset javascript object is called according to a certain rule, a corresponding function can be realized by calling a bridged local file editor, encryption and decryption software and the like through a file editor API calling program and an encryption and decryption software API calling program, so that specific operation processing on file data is completed.
The peripheral function program (for example, client program) can support the preset file processing client to realize functions such as creating temporary directory, creating secure directory, calling other associated interfaces and the like so as to coordinate the operation processing of the file data.
In implementation, the terminal device may first respond to the display instruction initiated by the user, interact with the server, and display a preset interaction page to the user through a local page end (e.g., a local browser end, etc.). The preset interactive page may specifically include identification information of a plurality of service files and various operation type options for the service files. Further, the preset interactive page may be specifically generated based on page data provided by the server. Moreover, the links arranged in the preset interactive pages may be set based on a private protocol (not an http protocol), so that the links point to the preset file processing clients of the terminal device, rather than the server, and the preset interactive pages may be associated with the preset file processing clients. The server may be specifically configured to store and manage related service files.
The user can perform corresponding operation in the preset interaction page according to specific conditions and processing requirements so as to select the target file to be processed and the target operation type to be adopted.
Correspondingly, the terminal equipment can acquire the identification information of the target file selected by the user through the preset interactive page (page end) and the target operation type aiming at the target file. Further, the page end can generate a trigger request carrying at least the identification information of the target file and the target operation type, and send the trigger request to a preset file processing client.
Then, the preset file processing client may respond to the trigger request and perform data interaction with the server through the web service module, so as to obtain a preset javascript matched with the target operation type, for example, as a target script file.
Furthermore, the terminal device can run the target script file through a web service module in the preset file processing client, and call the bridged local software programs such as a local document editor, encryption and decryption software and the like by utilizing a document editor API calling program and an encryption and decryption software API calling program so as to carry out corresponding operation processing on the target file in cooperation with specific operation of a user. For example, various types of operations such as draft, draft-changing, draft-correcting, clean copy, etc. are performed on the target file.
Therefore, on the premise of protecting the data security of the target file, the diversified operation requirements of users can be met, and various types of operation processing on the target file can be efficiently and conveniently realized.
Referring to fig. 3, an embodiment of the present disclosure provides a method for processing a target file. The method is particularly applied to one side of the terminal equipment. In particular implementations, the method may include the following.
S301, displaying a preset interactive page to a user, wherein the preset interactive page comprises identification information of a plurality of business files and operation type options aiming at the business files, and the preset interactive page is set to be associated with the preset file processing client;
S302, determining identification information of a target file to be processed and a target operation type aiming at the target file through the preset interaction page, and generating a trigger request aiming at the preset file processing client;
S303, according to the trigger request, calling a preset file processing client to interact with a server to obtain a matched target script file, wherein the trigger request at least carries identification information of the target file and a target operation type;
S304, running the target script file through the preset file processing client to respond to user operation, and performing operation processing matched with a target operation type on the target file.
Through the embodiment, the diversified operation requirements of users can be better met, and various types of operation processing on the target file can be effectively and conveniently realized by calling the local software program of the terminal equipment and matching with the user operation.
In some embodiments, the service files may be document files, archive files, job files, and so on, which correspond to different application scenarios. Correspondingly, the target file can be a current business file to be approved, an archive file to be archived, a business file to be read, and the like.
Further, in an application scenario with relatively high confidentiality requirements, data security of the service file is often required to be protected, so that specific contents of the service file are prevented from being leaked. Correspondingly, the target file can also be a confidential business file to be approved.
Through the embodiment, the processing method of the target file provided by the specification can be expanded and applied to various different application scenes to perform corresponding operation processing on various different target files so as to meet the diversified demands of users on the target files.
In some embodiments, the identification information of the service file may be specifically understood as identification information corresponding to a specific existing service file, or identification information corresponding to a blank template file of a certain service file.
In some embodiments, the operation types for the business file, which are displayed in the preset interaction page and are selected by the user, may also be various according to different application scenarios.
Specifically, in a business scenario such as document approval, the target file may specifically include a confidential business file to be approved, and the corresponding target operation type may specifically include at least one of a draft operation, a draft modifying operation, a clean copy operation, a draft reading operation, a draft correcting operation, and the like.
The draft operation is specifically understood as an operation of writing the target document from scratch. The above-mentioned manuscript-altering operation can be understood as an operation of modifying and editing with editing trace based on the currently existing target file. The above-described reading operation may be specifically understood as an operation of reading a currently existing target file without modifying the target file. The clean copy operation may be specifically understood as an operation of accepting a preceding copy-change operation with respect to a currently existing target file and indicating to eliminate editing traces in the target file. The above-mentioned manuscript-correcting operation can be specifically understood as an operation of modifying and editing only the target file based on the reference file and the target file displayed at the same time by using the reference file as a reference.
It should be understood that the application scenario, the object file, and the object operation type listed above are only illustrative. In specific implementation, the target operation types may further include other related operation types according to the specific application scenario and the target file. The present specification is not limited to this.
Through the embodiment, the processing method of the target file provided by the specification can be expanded and applied to the target file in various different application scenes to perform various different types of operation processing so as to meet the diversified demands of users on the target operation types.
In some embodiments, the target script file may specifically include a preset javascript matched with the target operation type and/or identification information of the target file.
Specifically, the target script file may be a preset javascript matched with the target operation type, a javascript matched with the identification information of the target file and the target operation type, and the like.
Through the embodiment, the target script file which can better meet the user requirement and is used for realizing the specific operation processing aiming at the target file indicated by the user can be found out based on different dimensions.
The target script file may specifically be a file editing function that controls a preset file processing client to cooperate with user operations to perform corresponding types of operation processing on the target file.
In some embodiments, the server may pre-construct a plurality of preset javascript scripts corresponding to the identification information and/or the operation type of the corresponding service file for a plurality of different service files and/or a plurality of different operation types. Of course, the user can be supported to interact with the server through the terminal device, so that the user-defined javascript can be constructed as a preset javascript. The method can also support the interaction between the user and the server through the terminal equipment so as to adjust and modify the specific content in the existing preset javascript and the identification information and/or the operation type of the service file corresponding to the preset javascript. Thereby meeting the more diversified individual demands of users.
In some embodiments, the preset file processing client may at least include a web service module, a preset javascript object, a document editor API calling program, an encryption/decryption software API calling program, and a peripheral function program.
Through the embodiment, based on the preset file processing client, the user operation can be effectively simplified, the operation difficulty of the user is reduced, the dependence on the running environment is reduced, the user can conveniently call the local software program of the terminal equipment, and the specific operation processing is efficiently performed on the target file.
In some embodiments, before implementation, the preset file processing client may be disposed in a terminal device used by a user. When the method is specifically arranged, a web service module, a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program and a peripheral function program in the preset file processing client side can be registered in an operating system local to the terminal equipment so as to bridge software programs which are installed in the document editor local to the terminal equipment, the encryption and decryption software and the like and are needed to be used in the specific operation processing of the target file. The preset javascript object can be used for connecting a document editor API calling program, an encryption and decryption software API calling program and a script file (for example, a matched preset javascript) specifically operated by a subsequent web service module, so that the preset file processing client can effectively call a software program local to the terminal device, and complete the operation processing of the target file in cooperation with user operation.
In some embodiments, the preset interaction page may specifically be generated by the terminal device according to page data provided by the server. The related links in the preset interactive page may specifically be links generated based on a private protocol and pointing to a preset file processing client of the terminal device.
Specifically, when a user performs corresponding operations (for example, checking or clicking on identification information of a certain service file and a certain operation type option) in a preset interaction page displayed by a page end (for example, a browser end) in the terminal equipment to check and confirm the identification information and the target operation type of the target file, the terminal equipment can acquire the identification information and the target operation type of the target file through the preset interaction page and according to the operation of the user, and generate a trigger request carrying the identification information and the target operation type of the target file, and further, the terminal equipment can send the trigger request to a preset file processing client through the page end according to a related link in the preset interaction page instead of directly sending the trigger request to a server so as to trigger the preset file processing client to interact with the server, so that specific operation processing is performed on the target file.
In some embodiments, the method for implementing the interaction between the preset file processing client and the server to obtain the matched target script file according to the trigger request includes that a web service module of the preset file processing client is called according to the trigger request to generate and send a call request to the server, wherein the call request at least carries a target operation type, address parameters fed back by the server based on the call request are received, and the target script file is downloaded according to the address parameters through a web service module of the preset file processing client.
Through the embodiment, the preset file processing client can interact with the server through the web service module to obtain the matched target script file which is suitable for operating the processing target file.
In some application scenarios with relatively complex and high confidentiality requirements (for example, approval scenarios of confidential documents, etc.), data security in the operation and processing process of the target file is often required to be protected, so that the content information of the target file is prevented from being revealed.
In some embodiments, for the application scenario with a high confidentiality requirement, the running, by the preset file processing client, the target script file, so as to respond to a user operation, and performing an operation process on the target file, where the operation process matches with a target operation type, may include the following steps:
s1, running the target script file through the web service module, interacting with a server to obtain the encrypted data of the matched target file, and storing the encrypted data of the target file in a temporary directory local to terminal equipment;
s2, creating a secure directory through a peripheral function program;
s3, calling the local encryption and decryption software of the terminal equipment to decrypt the encrypted data of the target file in the secure directory through the API calling program of the encryption and decryption software to obtain the target file;
S4, calling a local document editor of the terminal equipment to respond to user operation through the API calling program of the document editor, and carrying out operation processing matched with the target operation type on the target file.
Through the embodiment, the matched operation processing can be efficiently performed on the target file on the premise that the preset file processing client protects the data security of the target file.
In some embodiments, the temporary directory may be specifically a storage area (e.g., a folder opened to the user) that is locally located in the terminal device and allows external access to the query. The temporary directory is used only for storing file data which is not confidential, or encrypted data of a file, and the like.
The above-mentioned secure directory may be specifically a peripheral function program in a preset file processing client, which is set locally in the terminal device based on a related security protocol, and does not allow the external world to access the queried area (for example, a folder hidden from the user and not openable by the user). The above-described secure directory may be used to store decrypted file data and the like.
In order to better protect the data security, the above-mentioned secure directory may be further configured to only allow the preset file processing client to access the file processing client according to the related security protocol and hold the corresponding security credentials, and operate to process the decrypted file data in the secure directory.
In some embodiments, for different operation types, the terminal device may call, through the API calling program of the document editor, a document editor local to the terminal device to respond to a user operation in different modes, so as to perform various operation processes on the target file, thereby meeting various operation requirements of the user and improving use experience of the user.
In some embodiments, in the case that the target operation type includes a draft operation, the method may include, when the target operation type includes a draft operation, calling, by the document editor API calling program, an operation process matching the target operation type on the target file by calling a document editor local to the terminal device in response to a user operation, where the operation process may include:
s1, running the target script file through the web service module, calling a local document editor of the terminal equipment to open the target file in a traceless editable mode by using the API calling program of the document editor, and registering a callback opening event;
S2, calling the document editor to edit the target file according to user operation to obtain a draft target file;
S3, responding to an ending instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the target file after draft to obtain encrypted data of the target file after draft;
S4, calling a web service module, sending the encrypted data of the target file after draft to a server, and deleting the target file in the secure directory.
Through the embodiment, the terminal equipment can better utilize the preset structure module of the file processing client to cooperate with user operation, and the draft operation on the target file is efficiently and safely completed.
In some embodiments, in the case that the target operation type includes a draft operation, the obtained identification information of the target file may specifically be identification information corresponding to a blank template file. Accordingly, the acquired target file may be a blank template file matched with the identification information.
In some embodiments, the traceless editable mode may specifically be an operation mode that allows a user to edit, but without leaving an associated editing trace. The above-mentioned registration opening callback event may specifically indicate that after the user operation ends, the finally obtained drafted target file needs to be sent back to the server for storage and management.
In some embodiments, after invoking the document editor to edit the target file according to the user operation to obtain the target file after draft, the user also performs naming operation on the target file after draft through a preset file processing client, and sets a file name for the target file after draft. Correspondingly, the preset file processing client can send the encrypted data of the target file after draft and the file name to the server.
On the server side, the server may receive the encrypted data of the target file after draft, and store the encrypted data of the target file after draft using the file name set by the user as identification information corresponding to the encrypted data of the target file after draft.
In some embodiments, in the case where the target operation type includes a reading operation, the calling, by the document editor API calling program, the document editor local to the terminal device to respond to a user operation, and performing an operation process matching the target operation type on the target file may include:
s1, running the target script file through the web service module, calling a local document editor of the terminal equipment to open the target file in a read-only mode by using the API calling program of the document editor, and registering and closing a callback event;
And S2, responding to an ending instruction of a user, exiting the document editor, and deleting the target file in the secure directory.
Through the embodiment, the terminal equipment can better utilize the preset structure module of the file processing client, and the target file can be efficiently and safely opened by matching with the operation of a user so as to be read by the user.
In some embodiments, in the case that the target operation type includes a reading operation, the obtained identification information of the target file may specifically be identification information corresponding to an existing non-blank file. Accordingly, the obtained target file may be an existing non-blank file that is stored in the server and matches the identification information.
In some embodiments, the read-only mode may specifically be an operation mode that allows the user to browse and read only, but does not allow the user to make modifications and edits. The above-mentioned registration close callback event may specifically indicate that after the user operation ends, the target file does not need to be sent back to the server for storage and management.
In some embodiments, in the case where the target operation type includes a copy operation, the calling, by the document editor API calling program, the document editor local to the terminal device to respond to the user operation, and performing an operation process matching the target operation type on the target file may include:
S1, running the target script file through the web service module, calling a local document editor of the terminal equipment by using the API calling program of the document editor, opening the target file in a trace-remaining editable mode, and registering a callback opening event;
s2, calling the document editor to edit the target file in the matched authority range according to user operation to obtain a target file after manuscript modification;
S3, responding to an ending instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the target file after the manuscript is changed to obtain encrypted data of the target file after the manuscript is changed;
S4, calling a web service module, sending the encrypted data of the target file after the manuscript modification to a server, and deleting the target file in the secure directory.
Through the embodiment, the terminal equipment can better utilize the preset structure module of the file processing client, and efficiently and safely modify and edit the target file in cooperation with user operation so as to obtain the target file after the manuscript modification meeting the use requirement.
In some embodiments, the trace-editable mode may specifically be an operation mode that allows the user to modify and edit the target file within the matched authority range and retain the editing trace.
In some embodiments, the matching scope of rights may be determined in particular based on identity information of the user.
In some embodiments, the preset file processing client may obtain identity information when the user logs in the terminal device, query a user database of the system according to the identity information to determine the identity type of the user, determine a permission level corresponding to the user identity type according to a preset permission rule, and further determine a permission range matching the permission level.
For example, in the case where it is determined that the user's identity type corresponds to a lower permission level, a matching permission scope for the user may be determined that only the user is allowed to modify and edit the first-beginning piece of text of the target file. For another example, in the case where it is determined that the identity type of the user corresponds to a higher authority level, the scope of authority for the matching of the user may be determined to allow the user to modify and edit the entire text of the target file, and so on.
Through the embodiment, the terminal equipment can determine and use the preset file processing client according to the user identity information and the authority level of the user, and specifically modify and edit the target file in cooperation with the user in the authority range matched with the authority level of the user, so that the application requirements of more complex scenes can be met.
In some embodiments, where the target operation type includes a school manuscript operation, the target file includes a first target file and a second target file. The first target file may be a file to be checked, and the second target file may be a reference file used as a check basis.
Correspondingly, the above-mentioned calling procedure through the API of the document editor calls the document editor local to the terminal device to respond to the user operation, and performs the operation processing matching with the target operation type on the target file, and when implementing, the method may include the following contents:
S1, running the target script file through the web service module, calling a local document editor of the terminal equipment to open the first target file in a trace editable mode by utilizing the API calling program of the document editor, and registering an opening callback event for the first target file;
s2, calling the document editor to edit the first target file in the matched authority range according to user operation to obtain a first target file after manuscript correction;
S3, responding to an ending instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the first target file after manuscript correction to obtain encrypted data of the first target file after manuscript correction;
S4, calling a web service module, sending the encrypted data of the first target file after the manuscript correction to a server, and deleting the first target file and the second target file in the secure directory.
Through the embodiment, the terminal equipment can open the first target file and the second target file for the user simultaneously by utilizing the preset file processing client side structure module, so that the user can refer to the second target file and check the first target file based on the second target file, and can modify and edit the first target file in a targeted manner in time in the checking process, thereby meeting more complex scene application requirements.
In some embodiments, in the case that the target operation type includes clean copy operations, the above-mentioned calling, by the document editor API calling program, the document editor local to the terminal device, in response to a user operation, performs an operation process matching with the target operation type on the target file, where the implementation may include the following:
S1, running the target script file through the web service module, calling a local document editor of the terminal equipment to open the target file in an implicit mode by using the API calling program of the document editor, and registering a callback opening event;
s2, calling the document editor, and eliminating editing marks in the target file according to an acceptance instruction of a user to obtain the target file clean copy;
s3, responding to an ending instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the clean copy target file to obtain encrypted data of the clean copy target file;
s4, calling a web service module, sending the encrypted data of the clean copy target files to a server, and deleting the target files in the secure directory.
Through the embodiment, the terminal equipment can perform clean copy operations by utilizing the preset file processing client side in cooperation with a user when the user needs to eliminate editing traces left in the target file during the previous manuscript-changing operation, so as to obtain the target file with a pure version.
As can be seen from the above, according to the method for processing a target file provided in the embodiments of the present disclosure, before implementation, a preset file processing client including at least a web service module, a preset javascript object, a document editor API calling program, an encryption/decryption software API calling program, and a peripheral function program may be laid in advance on a terminal device; in the implementation, a preset interaction page related to a preset file processing client can be displayed to a user through terminal equipment, identification information of a target file to be processed and a target operation type aiming at the target file are determined through the interaction page, the preset file processing client is triggered and called to perform corresponding interaction with a server to obtain a matched target script file, and then the target script file can be operated through the preset file processing client to respond to and call a local software program of the terminal equipment according to specific operation of the user, and operation processing matched with the target operation type is performed on the target file. Therefore, on the premise of protecting the data security of the target file, the diversified operation requirements of the user can be better met, and the various operation processing of the target file can be efficiently and conveniently realized by effectively calling the local related software program of the terminal equipment. Meanwhile, the dependence on the running environment in the file processing process can be effectively reduced, the user operation flow is simplified, the user operation difficulty is reduced, and the user experience is improved.
Referring to fig. 4, the embodiment of the present disclosure further provides a method for processing a target file. The method is particularly applied to the server side. In particular implementations, the method may include the following.
S401, receiving a call request sent by a preset file processing client arranged on terminal equipment, wherein the call request at least carries a target operation type;
S402, determining a target script file matched with the target operation type from a plurality of preset script files, and acquiring address parameters of the target script file;
s403, sending the address parameters of the target script file to a preset file processing client, wherein the preset file processing client downloads the target script file according to the address parameters, and the preset file processing client responds to user operation by running the target script file to perform operation processing matched with the target operation type on the target file.
The server may be a server in the system responsible for storing and managing service files. The preset script files may be preset javascript scripts, where each preset script file corresponds to identification information and/or a target operation type of a service file.
Through the embodiment, the server can interact with the terminal equipment provided with the preset file processing client so as to efficiently and conveniently perform specific operation processing on the target file in cooperation with a user.
The embodiment of the specification also provides a terminal device, which comprises a display processor and a memory for storing executable instructions of the processor, wherein the terminal device is further provided with a preset file processing client, when the processor executes the instructions, the preset file processing client is used for displaying a preset interaction page to a user according to the instructions, the preset interaction page comprises identification information of a plurality of service files and operation type options for the service files, the preset interaction page is set to be associated with the preset file processing client, the identification information of a target file to be processed and the target operation type of the target file are determined through the preset interaction page, a trigger request for the preset file processing client is generated, interaction is carried out between the preset file processing client and a server according to the trigger request so as to obtain a matched target script file, the service file at least carries identification information of the target file and the target operation type, the service file is used for storing the service file, and the target script file is operated according to the trigger request, and the target script file is operated according to the target script file operation type.
In order to more accurately complete the above instructions, referring to fig. 5, another specific server is further provided in this embodiment of the present disclosure, where the server includes a display 501, a processor 502, a preset file processing client 503, and a memory 504, and the above structures are connected by an internal cable, so that each structure may perform specific data interaction.
The display 501 may be specifically configured to display a preset interaction page to a user, where the preset interaction page includes identification information of a plurality of service files and operation type options for the service files, and the preset interaction page is set to be associated with the preset file processing client.
The processor 502 may be specifically configured to determine, through the preset interaction page, identification information of a target file to be processed and a target operation type for the target file, and generate a trigger request for the preset file processing client, call a preset file processing client 503 to interact with a server according to the trigger request to obtain a matched target script file, where the trigger request at least carries the identification information of the target file and the target operation type, and the server is configured to store a service file, and run the target script file through the preset file processing client 503 to respond to a user operation, and perform operation processing matching with the target operation type on the target file.
The memory 504 may be used for storing a corresponding program of instructions.
In this embodiment, the processor 502 may be implemented in any suitable manner. For example, a processor may take the form of, for example, a microprocessor or processor, and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application SPECIFIC INTEGRATED Circuits (ASICs), programmable logic controllers, and embedded microcontrollers, among others. The description is not intended to be limiting.
In this embodiment, the memory 504 may include multiple levels, and in a digital system, the memory may be any memory as long as binary data can be stored, in an integrated circuit, a circuit with a memory function without a physical form, such as a RAM, a FIFO, etc., and in a system, a memory device with a physical form, such as a memory bank, a TF card, etc.
The embodiment of the specification also provides a computer storage medium based on the target file processing method, wherein the computer storage medium stores computer program instructions, when the computer program instructions are executed, a preset interaction page is displayed for a user, the preset interaction page comprises identification information of a plurality of service files and operation type options aiming at the service files, the preset interaction page is set to be associated with a preset file processing client, identification information of a target file to be processed and a target operation type aiming at the target file are determined through the preset interaction page, a trigger request aiming at the preset file processing client is generated, interaction is carried out between the preset file processing client and a server according to the trigger request to obtain a matched target script file, the trigger request at least carries the identification information of the target file and the target operation type, the server is used for storing the service file, the target script file is operated through the preset file processing client to respond to the user operation, and the target script file is matched with the target operation type.
In the present embodiment, the storage medium includes, but is not limited to, a random access Memory (Random Access Memory, RAM), a Read-Only Memory (ROM), a Cache (Cache), a hard disk (HARD DISK DRIVE, HDD), or a Memory Card (Memory Card). The memory may be used to store computer program instructions. The network communication unit may be an interface for performing network connection communication, which is set in accordance with a standard prescribed by a communication protocol.
In this embodiment, the functions and effects of the program instructions stored in the computer storage medium may be explained in comparison with other embodiments, and are not described herein.
Referring to fig. 6, on a software level, the embodiment of the present disclosure further provides a processing device for a target file, where the device may specifically include the following structural modules:
the display module 601 may be specifically configured to display a preset interaction page to a user, where the preset interaction page includes identification information of a plurality of service files and operation type options for the service files;
The first processing module 602 may be specifically configured to determine, through the preset interaction page, identification information of a target file to be processed and a target operation type for the target file, and generate a trigger request for the preset file processing client;
The calling module 603 may specifically be configured to call a preset file processing client to interact with a server according to the trigger request to obtain a matched target script file, where the trigger request at least carries identification information of the target file and a target operation type;
the second processing module 604 may specifically be configured to run the target script file through the preset file processing client, so as to respond to a user operation, and perform an operation process on the target file, where the operation process matches with a target operation type.
It should be noted that, the units, devices, or modules described in the above embodiments may be implemented by a computer chip or entity, or may be implemented by a product having a certain function. For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, when the present description is implemented, the functions of each module may be implemented in the same piece or pieces of software and/or hardware, or a module that implements the same function may be implemented by a plurality of sub-modules or a combination of sub-units, or the like. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
From the above, the processing device for the target file provided in the embodiment of the present disclosure can better meet the diversified operation requirements of the user, and efficiently and conveniently implement multiple types of operation processing on the target file by calling the local software program of the terminal device.
In a specific scenario example, the processing method of the target file provided in the present specification may be applied to implement online editing of the encrypted document. For specific implementation, reference may be made to the following.
In this scenario example, a document editing client (corresponding to a preset file processing client) is constructed based on the method provided in the present specification, and is uniformly completed by the document editing client by transferring the interaction between the browser end implemented by the specified browser in the conventional architecture and the operating system. See fig. 7.
Specifically, the document editing Client is a C-terminal program, and is composed of a lightweight web server (for example, a web service module), a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program, and a peripheral function Client program. Reference may be made to fig. 8.
When the document editing client is specifically arranged, the document editing client is a C-terminal program, development is performed based on an operating system API, and the web server is embedded in the document editing client. When the installation document editing client program is laid out, the WEB server can be registered to an operating system, so that WEB server API can be called at the starting time to start WEB service monitoring, a document editing function calling instruction (for example, triggering request) sent by a page end (for example, a browser of a terminal device) is received, and a javascript (for example, a target script file) provided by a far end is operated.
The document editing client can be preset with a local javascript compiler to encapsulate the call to the document editor API and the encryption and decryption software API and realize bridging, the built-in HTTP client can realize silent uploading and downloading of files, and the peripheral functions of directory creation, movement and the like are realized through an operating system shell. When a javascript executed by a web server invokes a native object (e.g., a javascript object), the native javascript compiler may take over and invoke the encapsulation interface to implement the corresponding function.
After receiving a call request sent by an application side (e.g., a server), the web server can analyze the document editing function address parameters from the request address, then download an actual document editing function script (e.g., a matched preset javascript) from the application side according to the parameters, load the actual document editing function script to a client web server for operation, and locate a specific method from the document editing function script to execute through the call method parameters in the request.
The document editing function script can be arranged on the application side, so that the application side can flexibly develop the corresponding function for the second time based on the self requirement. When the document editing function is called to a locally preset javascript object of the document editing client and a method thereof, the document editing function is transferred to different processing modules for processing, and if the javascript object corresponds to a document editor function, a specific document editor is operated through a document editor COM interface handle to complete actual operation.
For example, when the corresponding encryption and decryption functions are realized, the encryption and decryption software API is called to complete encryption and decryption operations. Meanwhile, when peripheral functions are required to be started, specific functions can be realized by calling the Client-side peripheral function module. Specifically, the COM interface calling program of the document editor corresponds to the API interface calling program of the encryption and decryption software and the designated document editor or encryption and decryption software, and a socket calling program is newly added every time one software is compatible.
In particular implementations, the encrypted file silent download and browse/edit functions may be implemented (see download path in fig. 7).
Specifically, the application side requests to download files to the document editing client, a file downloading module of the document editing client sends a request to download a specific encrypted file to a file server to be stored in a local temporary directory, the file downloading module calls an API (application program interface) to encrypt and decrypt the encrypted file and puts the encrypted file into a secure directory, and independent access rights and paths of the local secure directory are obtained through the encrypting and decrypting software, and an API interface of a document editor is called to browse/edit the limited rights.
In specific implementation, the function of ending browsing and uploading the encrypted file can also be realized (refer to an uploading path in fig. 7).
Specifically, when the document editing client calls the browsing/editing interface, a callback is registered to the document editor, when the document editor finishes browsing/editing, a callback function is triggered to call an encryption/decryption software API to re-encrypt, and a file uploading module of the document editing client accesses the secure directory and uploads the encrypted file to the file server.
Aiming at various types of operations (including draft, view, edit, clean copy, proofreading and the like) existing in a specific business scene technology, the document editing client can be realized in the following manner.
For draft (e.g., draft operation), a user can send a request to a document editing client through draft operation at the page end (e.g., preset interactive page) of the electronic document system, the request method is file downloading and provides file downloading link, and the document editing client downloads an empty document or template document to the local according to the request parameters and returns a successful downloading mark.
After the application end confirms that the downloading is successful, the application end requests the document editing client to call the encryption and decryption software API to encrypt and move into the local temporary directory, then decrypts and places the plaintext into the safe directory, the document editor API is used for explicitly opening the document in an editing and non-trace mode and registering a callback-saving event, the user triggers a callback-saving operation when editing the document and exiting the document editor, calls the encryption and decryption software API to encrypt again and move out of the safe directory to cover the temporary directory, and the document editing client calls the uploading module to upload the encrypted document to the file server.
For viewing (e.g., reading operation), the user can trigger downloading the encrypted document to the local temporary directory through the operation of 'viewing text' at the page end of the electronic document system, request the document editing client to call the encryption and decryption software API to decrypt and put the document into the local secure directory, then explicitly open the document in a read-only mode through the document editor API and register a closing callback event, trigger closing callback when the user finishes browsing and exits the document editor, delete the document in the secure directory and inform the application side to finish browsing.
For editing (e.g. manuscript-changing operation), a user triggers downloading of an encrypted document to a local temporary directory through an 'edit text' operation at a page end of an electronic document system, requests a document editing client to call an encryption and decryption software API to encrypt and put the document into a local safe directory, then explicitly opens the document in an editing and trace-leaving mode (editing authority and revision mode) through a document editor API and registers a callback-saving event, triggers a callback-saving when the user saves and exits the document editor after editing the document, calls the encryption and decryption software API to re-encrypt and remove the encrypted document to the temporary directory to cover, and calls an uploading module to upload the encrypted document to a file server.
For clean copy (such as clean copy operation), the user triggers downloading the encrypted document to the local temporary directory through clean copy operation at the page end of the electronic document system, requests the document editing client to call the encryption and decryption software API to encrypt and put the document into the local secure directory, then implicitly opens the document through the document editor API and registers for storing callback events, calls the interface of 'accept all revisions' to clear the mark, stores and triggers callback, calls the encryption and decryption software API to re-encrypt and remove the secure directory to cover the temporary directory, and the document editing client calls the uploading module to upload the encrypted document to the file server.
For proofreading (e.g. proofreading operation), a user triggers to download two versions of encrypted documents to a local temporary directory through the proofreading operation at the page end of an electronic document system, requests a document editing client to call an encryption and decryption software API to decrypt and put the encrypted documents into the local secure directory, then explicitly opens two document displays and registers a callback closing event in a read-only and horizontal tiling mode through a document editor API, triggers a callback closing when the user finishes browsing and exits the document editor, deletes the documents in the secure directory and notifies an application side to finish browsing.
Through the scene example, the document editing client can be used as a center, centralized service is provided for service demands with the document editing scene as a core, logic which is distributed in a browser, various clients and an application side in a traditional scene is centralized to a client program to realize, all C-terminal program interfaces are mapped to the B-terminal through the client, the complexity of C-terminal calling is hidden, dependence of the client environment is eliminated from the application side, and the demands which are required to be realized by the application side are flexibly customized. Meanwhile, the client integrates the peripheral functions of encryption, decryption, file processing and the like, provides the full scene function coverage and the full flow safety and controllability of the document editing, and ensures the high efficiency, easy use, safety and flexibility of the document editing scene.
Although the present description provides method operational steps as described in the examples or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. When implemented by an apparatus or client product in practice, the methods illustrated in the embodiments or figures may be performed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment, or even in a distributed data processing environment). The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, it is not excluded that additional identical or equivalent elements may be present in a process, method, article, or apparatus that comprises a described element. The terms first, second, etc. are used to denote a name, but not any particular order.
Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller can be regarded as a hardware component, and means for implementing various functions included therein can also be regarded as a structure within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
From the above description of embodiments, it will be apparent to those skilled in the art that the present description may be implemented in software plus a necessary general hardware platform. Based on such understanding, the technical solutions of the present specification may be embodied essentially in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and include several instructions to cause a computer device (which may be a personal computer, a mobile terminal, a server, or a network device, etc.) to perform the methods described in the various embodiments or portions of the embodiments of the present specification.
Various embodiments in this specification are described in a progressive manner, and identical or similar parts are all provided for each embodiment, each embodiment focusing on differences from other embodiments. The specification is operational with numerous general purpose or special purpose computer system environments or configurations. Such as a personal computer, a server computer, a hand-held or portable device, a tablet device, a multiprocessor system, a microprocessor-based system, a set top box, a programmable electronic device, a network PC, a minicomputer, a mainframe computer, a distributed computing environment that includes any of the above systems or devices, and the like.
Although the present specification has been described by way of example, it will be appreciated by those skilled in the art that there are many variations and modifications to the specification without departing from the spirit of the specification, and it is intended that the appended claims encompass such variations and modifications as do not depart from the spirit of the specification.

Claims (15)

1. The method for processing the target file is characterized by being applied to terminal equipment, wherein a preset file processing client is arranged on the terminal equipment, and the method comprises the following steps:
Displaying a preset interactive page to a user, wherein the preset interactive page comprises identification information of a plurality of business files and operation type options for the business files, and is set to be associated with the preset file processing client;
Determining identification information of a target file to be processed and a target operation type aiming at the target file through the preset interaction page, and generating a trigger request aiming at the preset file processing client;
According to the triggering request, a preset file processing client is called to interact with a server to obtain a matched target script file, wherein the triggering request at least carries identification information of the target file and a target operation type;
running the target script file through the preset file processing client to respond to user operation, and performing operation processing matched with a target operation type on the target file;
the preset file processing client at least comprises a web service module, a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program and a peripheral function program;
The web service module, a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program and a peripheral function program are registered in a local operating system of the terminal equipment in advance so as to bridge the document editor and the encryption and decryption software installed in the local operating system of the terminal equipment;
Correspondingly, the target script file is operated through a web service module in the preset file processing client, and the bridged local file editor and encryption and decryption software are called through a file editor API calling program and an encryption and decryption software API calling program so as to match with specific operation of a user to perform corresponding operation processing on the target file.
2. The method of claim 1, wherein the target script file comprises a preset javascript that matches the target operation type and/or identification information of the target file.
3. The method of claim 1, wherein invoking the preset file processing client to interact with the server to obtain the matched target script file according to the trigger request comprises:
According to the triggering request, a web service module of a preset file processing client is called to generate and send a calling request to the server, wherein the calling request at least carries a target operation type;
Receiving address parameters fed back by the server based on the call request;
And downloading the target script file according to the address parameter through a web service module of the preset file processing client.
4. The method of claim 1, wherein the target file comprises a confidential business file to be approved, and the corresponding target operation type comprises at least one of a draft operation, a change operation, a clean copy operation, a read operation, and a school operation.
5. The method according to claim 4, wherein running the target script file through the preset file processing client in response to a user operation, performing an operation process matching a target operation type on the target file, includes:
The target script file is operated through the web service module and interacted with a server to obtain the encrypted data of the matched target file, and the encrypted data of the target file is stored in a temporary directory of the terminal equipment;
creating a secure directory through a peripheral function program;
calling local encryption and decryption software of terminal equipment to decrypt the encrypted data of the target file in the secure directory through the API calling program of the encryption and decryption software to obtain the target file;
And calling a local document editor of the terminal equipment to respond to user operation through the API calling program of the document editor, and carrying out operation processing matched with the target operation type on the target file.
6. The method according to claim 5, wherein, in the case where the target operation type includes a draft operation, calling a document editor local to a terminal device to respond to a user operation through the document editor API calling program, performing an operation process matching the target operation type on the target file, comprising:
operating the target script file through the web service module, calling a local document editor of the terminal equipment by using the API calling program of the document editor, opening the target file in a traceless editable mode, and registering a callback opening event;
invoking the document editor to edit the target file according to user operation to obtain a draft target file;
responding to an ending instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the target file after draft to obtain encrypted data of the target file after draft;
and calling a web service module, sending the encrypted data of the target file after draft to a server, and deleting the target file in the secure directory.
7. The method according to claim 5, wherein, in the case where the target operation type includes a read operation, calling, by the document editor API caller, a document editor local to the terminal device to perform an operation process matching the target operation type on the target file in response to a user operation, comprising:
operating the target script file through the web service module, calling a local document editor of the terminal equipment by using the document editor API calling program, opening the target file in a read-only mode, and registering and closing a callback event;
And responding to the ending instruction of the user, exiting the document editor, and deleting the target file in the secure directory.
8. The method according to claim 5, wherein in the case where the target operation type includes a copy operation, calling, by the document editor API caller, a document editor local to the terminal device to perform an operation process matching the target operation type on the target file in response to a user operation, comprising:
operating the target script file through the web service module, calling a local document editor of the terminal equipment by using the document editor API calling program, opening the target file in a trace-remaining editable mode, and registering a callback opening event;
invoking the document editor to edit the target file in the matched authority range according to user operation to obtain a target file after manuscript modification;
Responding to an ending instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the target file after the manuscript is changed to obtain encrypted data of the target file after the manuscript is changed;
and calling a web service module, sending the encrypted data of the target file after the manuscript modification to a server, and deleting the target file in the secure directory.
9. The method of claim 8, wherein the matching scope of rights is determined based on identity information of the user.
10. The method of claim 5, wherein in the case where the target operation type includes a draft operation, the target file includes a first target file and a second target file;
Correspondingly, through the API calling program of the document editor, calling a document editor local to the terminal equipment to respond to user operation, and carrying out operation processing matched with the target operation type on the target file, wherein the operation processing comprises the following steps:
The web service module is used for running the target script file, calling a local document editor of the terminal equipment to open the first target file in a trace editable mode by utilizing the API calling program of the document editor, and registering an opening callback event for the first target file;
Invoking the document editor to edit the first target file in the matched authority range according to user operation to obtain a first target file after manuscript correction;
responding to an ending instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the first target file after manuscript correction to obtain encrypted data of the first target file after manuscript correction;
And the web service module is called to send the encrypted data of the first target file after the manuscript correction to a server, and the first target file and the second target file in the secure directory are deleted.
11. The method according to claim 5, wherein in the case where the target operation type includes clean copy operations, calling, by the document editor API caller, a document editor local to a terminal device to perform an operation process matching the target operation type on the target file in response to a user operation, comprising:
Operating the target script file through the web service module, calling a local document editor of the terminal equipment to open the target file in an implicit mode by using the API calling program of the document editor, and registering a callback opening event;
Invoking the document editor, and eliminating editing traces in the target file according to an acceptance instruction of a user to obtain the target file clean copy;
Responding to an ending instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the clean copy target file to obtain encrypted data of the clean copy target file;
and calling a web service module, sending the encrypted data of the clean copy target files to a server, and deleting the target files in the secure directory.
12. The processing method of the target file is characterized by being applied to a server and comprising the following steps of:
Receiving a call request sent by a preset file processing client arranged on terminal equipment; wherein, the call request at least carries a target operation type; the terminal equipment determines the identification information of a target file to be processed and the target operation type of the target file through the preset interactive page, and generates a trigger request of a preset file processing client, wherein the related link in the preset interactive page is generated based on a private protocol and points to the link of the preset file processing client of the terminal equipment, and the preset file processing client at least comprises a web service module, a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program and a peripheral function program;
determining a target script file matched with the target operation type from a plurality of preset script files, and acquiring address parameters of the target script file;
The method comprises the steps of sending address parameters of a target script file to a preset file processing client, wherein the preset file processing client downloads the target script file according to the address parameters, the preset file processing client responds to user operation by running the target script file to perform operation processing matched with a target operation type on the target file, the preset file processing client runs the target script file through a web service module, and a file editor API calling program and an encryption and decryption software API calling program are utilized to call a bridged local file editor and encryption and decryption software so as to perform corresponding operation processing on the target file in cooperation with specific operation of a user.
13. A processing apparatus for a target file, comprising:
the system comprises a display module, a terminal device, a display module and a display module, wherein the display module is used for displaying a preset interaction page to a user, the preset interaction page comprises identification information of a plurality of business files and operation type options for the business files, and the preset interaction page is set to be associated with a preset file processing client;
The first processing module is used for determining identification information of a target file to be processed and a target operation type aiming at the target file through the preset interaction page, and generating a trigger request aiming at the preset file processing client;
The system comprises a triggering request, a calling module, a server and a service file storage module, wherein the triggering request is used for calling a preset file processing client to interact with the server according to the triggering request so as to acquire a matched target script file, and the triggering request at least carries identification information of the target file and a target operation type;
The second processing module is used for running the target script file through the preset file processing client so as to respond to user operation and perform operation processing matched with a target operation type on the target file;
the preset file processing client at least comprises a web service module, a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program and a peripheral function program;
The web service module, a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program and a peripheral function program are registered in a local operating system of the terminal equipment in advance so as to bridge the document editor and the encryption and decryption software installed in the local operating system of the terminal equipment;
The second processing module is specifically configured to run the target script file through the web service module in the preset file processing client, and call the bridged local document editor and encryption and decryption software by using a document editor API calling program and an encryption and decryption software API calling program, so as to match with specific operations of a user to perform corresponding operation processing on the target file.
14. A terminal device comprising a display, a processor and a memory for storing processor executable instructions, and the terminal device is further provided with a preset file handling client, the processor executing the instructions using the preset file handling client to implement the steps of the method according to any of claims 1 to 11.
15. A computer readable storage medium having stored thereon computer instructions which when executed implement the steps of the method of any of claims 1 to 11.
CN202110284753.XA 2021-03-17 2021-03-17 Target file processing method, device and terminal equipment Active CN113032042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110284753.XA CN113032042B (en) 2021-03-17 2021-03-17 Target file processing method, device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110284753.XA CN113032042B (en) 2021-03-17 2021-03-17 Target file processing method, device and terminal equipment

Publications (2)

Publication Number Publication Date
CN113032042A CN113032042A (en) 2021-06-25
CN113032042B true CN113032042B (en) 2024-12-27

Family

ID=76471001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110284753.XA Active CN113032042B (en) 2021-03-17 2021-03-17 Target file processing method, device and terminal equipment

Country Status (1)

Country Link
CN (1) CN113032042B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113918860B (en) * 2021-10-19 2025-05-27 创盛视联数码科技(北京)有限公司 Document display method, system, device and readable medium for online education platform

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833092A (en) * 2012-06-21 2012-12-19 江西省电力公司信息通信中心 Method and system for managing cloud nodes and central server
CN106371905A (en) * 2016-08-29 2017-02-01 北京奇点机智信息技术有限公司 Operation method and device for application program and server

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965742B (en) * 2015-06-30 2019-07-05 努比亚技术有限公司 A kind of automatized script and device handling front-end task
CN105159875A (en) * 2015-09-11 2015-12-16 北京恒华伟业科技股份有限公司 File editing method and device
CN105426292B (en) * 2015-10-29 2018-03-16 网易(杭州)网络有限公司 A kind of games log real time processing system and method
CN106528718B (en) * 2016-11-02 2020-05-12 泰康保险集团股份有限公司 Method and apparatus for processing data from third party
CN110580185B (en) * 2018-06-07 2023-10-31 中兴通讯股份有限公司 Data preprocessing method, device and storage medium
CN110582764B (en) * 2019-07-11 2022-11-15 深圳市鹰硕技术有限公司 File preview method, device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833092A (en) * 2012-06-21 2012-12-19 江西省电力公司信息通信中心 Method and system for managing cloud nodes and central server
CN106371905A (en) * 2016-08-29 2017-02-01 北京奇点机智信息技术有限公司 Operation method and device for application program and server

Also Published As

Publication number Publication date
CN113032042A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN109634619B (en) Trusted execution environment implementation method and device, terminal device and readable storage medium
US9165139B2 (en) System and method for creating secure applications
US9430211B2 (en) System and method for sharing information in a private ecosystem
US20190007460A1 (en) System and method for secure synchronization of data across multiple computing devices
US9195849B2 (en) Cloud application installed in client terminal connected to cloud server
US9117087B2 (en) System and method for creating a secure channel for inter-application communication based on intents
US9098715B1 (en) Method and system for exchanging content between applications
CN105227565B (en) The method and apparatus that anti-reversing for Android system cracks shared object file
US10440111B2 (en) Application execution program, application execution method, and information processing terminal device that executes application
US10630722B2 (en) System and method for sharing information in a private ecosystem
US20170371625A1 (en) Content delivery method
CN114650154B (en) Webpage authority behavior control method and device, computer equipment and storage medium
US20140281499A1 (en) Method and system for enabling communications between unrelated applications
US20180152434A1 (en) Virtual content repository
JP5112924B2 (en) Application moving system, application moving method, program, and portable terminal
CN111709047A (en) Information management system and method therefor
CN105812370B (en) Smart card processing method, device and system
CN113032042B (en) Target file processing method, device and terminal equipment
CN109445816B (en) Guide table processing method and device, storage medium, processor and terminal
CN109032694A (en) A kind of data load method and terminal
US10140431B2 (en) File management system and user terminal in file management system
JP2015185071A (en) Information track system and information track method
US20210006634A1 (en) Secure and private web browsing system and method
CN112580101A (en) Data decryption method and terminal
Mikhaylov Mobile Forensics Cookbook: Data acquisition, extraction, recovery techniques, and investigations using modern forensic tools

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