A document access control method, device, equipment and readable storage medium

By analyzing document access requests and matching source file role identifiers, document access control is realized, solving the problems of high cost and low efficiency of document access control in the existing technology, reducing maintenance difficulty and improving document compilation efficiency.

CN112434203BActive Publication Date: 2025-06-13BEIJING INSPUR DATA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011293797.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-18
Publication Date
2025-06-13
Estimated Expiration
2040-11-18

AI Technical Summary

Technical Problem

The prior art uses the compilation of multiple versions of documents to control document access, resulting in high labor costs, low document compilation efficiency and difficulty in maintaining.

Method used

By analyzing the received document access request, obtain the access side identity information, traverse the source files of the document to be accessed, determine whether there is a source file role identifier or content role identifier, and match it with the access side identity information, and return the target source file and content that match successfully.

Benefits of technology

Reduces costs, improves document compilation efficiency, reduces maintenance difficulty, and avoids compilation of duplicate document content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112434203B_ABST
    Figure CN112434203B_ABST
Patent Text Reader

Abstract

The present invention discloses a document access control method, which includes the following steps: parsing the received document access request to obtain the access end identity information; traversing each source file that constitutes the document to be accessed; respectively determining whether there is a source file role identifier or a source file content role identifier in each source file; if so, respectively matching the existing source file role identifier and the source file content role identifier with the access end identity information; returning the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access end. By applying the document access control method provided by the present invention, the cost is reduced, the document compilation efficiency is improved, and the maintenance difficulty is reduced. The present invention also discloses a document access control device, equipment and storage medium, which have corresponding technical effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technologies, and in particular, to a method, device, equipment, and computer-readable storage medium for document access control. Background Art

[0002] To uniformly manage documents and facilitate users to access and use documents, an online document system based on the dynamically generated document website docsify is created. In principle, users with different permissions should only be able to access and use the documents corresponding to their permissions, that is, the content of the documents that different role users can view should be consistent with their permissions. Therefore, there should be multiple versions of the documents, but most of them are repeated in different versions. The repeated compilation of the content of the repeated documents and the compilation of a large number of repeated document contents require a large amount of manual input, resulting in high labor costs, low document compilation efficiency, and difficult maintenance.

[0003] In summary, how to effectively solve the problems of high labor costs, low document compilation efficiency, and difficult maintenance in the existing method of document access control by compiling multiple versions of documents is an urgent problem that needs to be solved by those skilled in the art at present. Summary of the Invention

[0004] The purpose of the present invention is to provide a method for document access control, which reduces costs, improves document compilation efficiency, and reduces the difficulty of maintenance; another purpose of the present invention is to provide a device, equipment, and computer-readable storage medium for document access control.

[0005] To solve the above technical problems, the present invention provides the following technical solutions:

[0006] A method for document access control includes:

[0007] Parsing the received document access request to obtain access terminal identity information;

[0008] Traversing each source file that constitutes the document to be accessed;

[0009] Respectively determining whether there is a source file role identifier or a source file content role identifier in each of the source files;

[0010] If so, respectively matching the existing source file role identifier and source file content role identifier with the access terminal identity information;

[0011] Returning the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access terminal.

[0012] In a specific embodiment of the present invention, before returning the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access end, it further includes:

[0013] Reading the target running environment information of the access end;

[0014] Determining whether the document to be accessed is adapted to the target running environment information;

[0015] If so, performing the step of returning the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access end.

[0016] In a specific embodiment of the present invention, returning the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access end includes:

[0017] Conducting document assembly on each of the obtained target source files and each of the target source file contents to obtain a target online document;

[0018] Returning the target online document to the access end.

[0019] In a specific embodiment of the present invention, parsing the received document access request to obtain access end identity information includes:

[0020] Receiving the document access request;

[0021] Determining whether the document access request is an access request sent after the access end logs in to the system;

[0022] If so, obtaining the identity authentication information when the access end logs in to the system, and using the identity authentication information as the access end identity information;

[0023] If not, sending an identity authentication instruction to the access end to obtain the access end identity information input by the access end.

[0024] A document access control device includes:

[0025] An identity information acquisition module, configured to parse the received document access request to obtain access end identity information;

[0026] A source file traversal module, configured to traverse each source file constituting the document to be accessed;

[0027] A first judgment module, configured to respectively judge whether there is a source file role identifier or a source file content role identifier in each of the source files;

[0028] An identity matching module, configured to, when there is a source file role identifier or a source file content role identifier included in the source file, match the existing source file role identifier and source file content role identifier with the access end identity information respectively;

[0029] An information returning module, configured to return the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access end.

[0030] In a specific embodiment of the present invention, it further includes:

[0031] An operating environment information reading module, configured to read the target operating environment information of the access end before returning the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access end;

[0032] A second judgment module, configured to judge whether the document to be accessed is adapted to the target operating environment information;

[0033] The information returning module is specifically a module that returns the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access end when it is determined that the document to be accessed is adapted to the target operating environment information.

[0034] In a specific embodiment of the present invention, the information returning module includes:

[0035] An online document obtaining sub-module, configured to perform document assembly on each of the obtained target source files and each of the target source file contents to obtain a target online document;

[0036] A document returning sub-module, configured to return the target online document to the access end.

[0037] In a specific embodiment of the present invention, the identity information obtaining module includes:

[0038] A request receiving sub-module, configured to receive the document access request;

[0039] A judgment sub-module, configured to judge whether the document access request is an access request sent after the access end logs in to the system;

[0040] A first identity information obtaining sub-module, configured to, when it is determined that the document access request is an access request sent after the access end logs in to the system, obtain the identity authentication information when the access end logs in to the system, and use the identity authentication information as the access end identity information;

[0041] A second identity information acquisition sub-module, configured to send an identity authentication instruction to the access terminal to obtain the access terminal identity information input by the access terminal when it is determined that the document access request is not an access request sent after the access terminal logs in to the system.

[0042] A document access control device, comprising:

[0043] A memory, configured to store a computer program;

[0044] A processor, configured to implement the steps of the document access control method as described above when executing the computer program.

[0045] A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the document access control method as described above are implemented.

[0046] The document access control method provided by the present invention parses the received document access request to obtain the access terminal identity information; traverses each source file constituting the document to be accessed; respectively determines whether there is a source file role identifier or a source file content role identifier in each source file; if so, respectively matches the existing source file role identifier and source file content role identifier with the access terminal identity information; returns the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access terminal. By obtaining the access terminal identity information, and pre-dividing the document to be accessed into multiple source files, setting role identifiers for the source files and source files according to the permission rules, and obtaining the target source files and target source file contents within the permission range of the access terminal identity information through role matching. There is no need to compile duplicate document contents, which reduces costs, improves document compilation efficiency, and reduces maintenance difficulty.

[0047] Correspondingly, the present invention also provides a document access control device, device, and computer-readable storage medium corresponding to the above document access control method, which have the above technical effects and will not be elaborated herein. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention, and those of ordinary skill in the art can obtain other drawings without creative efforts based on these drawings.

[0049] Figure 1 It is a flowchart of an embodiment of the document access control method in an embodiment of the present invention;

[0050] Figure 2 Another flowchart of the document access control method in the embodiment of the present invention;

[0051] Figure 3 Block diagram of the structure of a document access control device in the embodiment of the present invention;

[0052] Figure 4 Block diagram of the structure of a document access control device in the embodiment of the present invention. Detailed implementation manners

[0053] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific implementation manners. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0054] Embodiment 1:

[0055] Refer to Figure 1 , Figure 1 which is a flowchart of an implementation of the document access control method in the embodiment of the present invention. The method may include the following steps:

[0056] S101: Parse the received document access request to obtain the access terminal identity information.

[0057] When the access terminal needs to access a document, it sends a document access request to the document access control system. The document access request contains the access terminal identity information. The document access control system receives the document access request and parses the received document access request to obtain the access terminal identity information.

[0058] S102: Traverse each source file that makes up the document to be accessed.

[0059] The document to be accessed is pre-divided into multiple source files. The document access control system traverses each source file that makes up the document to be accessed.

[0060] S103: Determine whether there is a source file role identifier or a source file content role identifier in each source file. If so, execute step S104; if not, do nothing.

[0061] By traversing each source file that makes up the document to be accessed, determine whether there is a source file role identifier or a source file content role identifier in each source file. If a source file contains a source file role identifier or a source file content role identifier, then step S104 is executed. If none of the source files contain a source file role identifier or a source file content role identifier, no processing is performed.

[0062] For example, first determine whether there is a source file role identifier, that is, determine whether there is a filtering rule in the source file. If so, use the existing source file role identifier as the basis for matching and judging with the access terminal identity information. If not, determine whether there is a source file content role identifier in the source file. If there is a source file content role identifier in the source file, use the source file content role identifier as the basis for matching and judging with the access terminal identity information.

[0063] S104: Match the existing source file role identifier and source file content role identifier with the access terminal identity information respectively.

[0064] When it is determined that a source file contains a source file role identifier or a source file content role identifier, match the existing source file role identifier and source file content role identifier with the access terminal identity information respectively.

[0065] S105: Return the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access terminal.

[0066] By matching the existing source file role identifier and source file content role identifier with the access terminal identity information respectively, and returning the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access terminal, unified authentication and authorization of the document are realized, reducing the manual input of the document compiler for repeated maintenance of public content, greatly improving the development experience and efficiency of the document compiler, and improving the document compilation efficiency.

[0067] The document access control method provided by the present invention parses the received document access request to obtain the access terminal identity information; traverses each source file constituting the document to be accessed; respectively determines whether there is a source file role identifier or a source file content role identifier in each source file; if so, respectively matches the existing source file role identifier and the source file content role identifier with the access terminal identity information; returns the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access terminal. By obtaining the access terminal identity information, and pre-dividing the document to be accessed into multiple source files, setting role identifiers for the source files and the source files according to the permission rules, and obtaining the target source files and the target source file content within the scope of the access terminal identity information permission through the role matching method. There is no need to compile duplicate document content, which reduces the cost, improves the document compilation efficiency, and reduces the maintenance difficulty.

[0068] It should be noted that, based on the above-mentioned Embodiment 1, the embodiments of the present invention also provide corresponding improvement solutions. In the subsequent embodiments, the same steps or corresponding steps involved in the above-mentioned Embodiment 1 can be referred to each other, and the corresponding beneficial effects can also be referred to each other, and will not be repeated one by one in the following improvement embodiments.

[0069] Embodiment 2:

[0070] See Figure 2 , Figure 2 which is another implementation flowchart of the document access control method in the embodiments of the present invention. The method may include the following steps:

[0071] S201: Receive a document access request.

[0072] The document access control system receives the document access request sent by the access terminal.

[0073] S202: Determine whether the document access request is an access request sent after the access terminal logs in to the system. If so, execute step S203; if not, execute step S204.

[0074] The document access request may be to access the online document through the "Help" built in the system after the access terminal logs in to the system, or the access terminal may access the document through an external link. After receiving the document access request, determine whether the document access request is an access request sent after the access terminal logs in to the system. If so, execute step S203; if not, execute step S204.

[0075] S203: Obtain the identity authentication information when the access terminal logs in to the system, and use the identity authentication information as the access terminal identity information.

[0076] When it is determined that the document access request is an access request sent after the access terminal logs in to the system, obtain the identity authentication information when the access terminal logs in to the system, and use the identity authentication information as the access terminal identity information.

[0077] S204: Send an identity authentication instruction to the access terminal to obtain the access terminal identity information input by the access terminal.

[0078] When it is determined that the document access request is not an access request sent after the access terminal logs in to the system, send an identity authentication instruction to the access terminal. After receiving the identity authentication instruction, the access terminal inputs the access terminal identity information for access verification, so as to obtain the access terminal identity information.

[0079] S205: Traverse each source file that makes up the document to be accessed.

[0080] When traversing each source file that makes up the document to be accessed, the toolbar sidebar can be obtained according to the entry file index.html of the online document, and the toolbar content (defining the sidebar and the paths of each source file) can be read sequentially, and parsed and judged in sequence and parent-child level Whether the path defined by the label and its specified source file are the components of the sidebar and the document.

[0081] S206: Determine whether there is a source file role identifier or a source file content role identifier in each source file respectively. If so, execute step S207; if not, do nothing.

[0082] S207: Match the existing source file role identifier and source file content role identifier with the access terminal identity information respectively.

[0083] When matching the access terminal identity information with the existing source file role identifier and source file content role identifier, taking the cloud platform as an example, the user structure of the cloud platform is divided into two ends and four roles. However, since the management end is all in the administrator role, although there are differences, the differences are not too large. Therefore, the document is defined to apply the same set of documents at the management end.

[0084] roles represents the role object to which this filtering rule applies, and its values and meanings are as follows:

[0085] admin indicates that it applies to the management end and maps to systemadmin and domainadmin in the cloud platform.

[0086] vdcadmin indicates that it applies to the tenant end administrator and maps to vdcadmin in the cloud platform.

[0087] vdcuser indicates that it applies to the tenant end user and maps to vdcuser in the cloud platform.

[0088] S208: Read the target running environment information of the access terminal.

[0089] After matching the existing source file role identifier and source file content role identifier with the access terminal identity information respectively to obtain the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier, read the target running environment information of the access terminal.

[0090] S209: Determine whether the document to be accessed is compatible with the target running environment information. If so, execute step S210; if not, do nothing.

[0091] After reading the target running environment information of the access terminal, determine whether the document to be accessed is compatible with the target running environment information. If so, it means that the obtained target source files and target source file contents can be successfully displayed at the access terminal, and execute step S210; if not, it means that the obtained target source files and target source file contents cannot be successfully displayed at the access terminal, and do nothing.

[0092] For example, a flag file can be preset to indicate whether the target operating environment information of the document to be accessed matches the access terminal. For example, it can be represented by "isinclouded". When "isinclouded" is "y", it indicates a match, and the target source file or the content of the target source file can be presented to the access terminal for viewing. When "isinclouded" is "n", it indicates a mismatch, and the target source file or the content of the target source file cannot be presented to the access terminal for viewing.

[0093] S210: Assemble the obtained target source files and the content of each target source file to obtain a target online document.

[0094] After determining that the document to be accessed matches the target operating environment information, assemble the obtained target source files and the content of each target source file to obtain a target online document.

[0095] S211: Return the target online document to the access terminal.

[0096] After assembling the target online document, return the target online document to the access terminal. By obtaining the identity information of the access terminal and pre-dividing the document to be accessed into multiple source files, setting role identifiers for the source files and the source files according to the permission rules, and obtaining the target source files and the content of the target source files within the scope of the access terminal identity information permission through role matching. There is no need to compile duplicate document content, which reduces costs, improves the document compilation efficiency, and reduces the maintenance difficulty.

[0097] This embodiment is different from Embodiment 1 corresponding to the technical solution required to be protected by independent claim 1, and also adds the technical solutions corresponding to dependent claims 2 to 4. Of course, according to different actual situations and requirements, the technical solutions corresponding to each dependent claim can be flexibly combined on the basis of not affecting the integrity of the solution to better meet the requirements of different usage scenarios. This embodiment only gives one of the solutions with the most included solutions and the best effects. Because the situation is complex, it is impossible to list all possible solutions one by one. Those skilled in the art should be able to realize that there can be many examples according to the basic method principle provided by this application in combination with the actual situation. Without sufficient creative labor, they should all be within the protection scope of this application.

[0098] Corresponding to the above method embodiment, the present invention also provides a document access control device, and the document access control device described below can be mutually referred to with the document access control method described above.

[0099] See Figure 3 , Figure 3 which is a structural block diagram of a document access control device in an embodiment of the present invention. The device may include:

[0100] An identity information acquisition module 31, configured to parse a received document access request to obtain access - end identity information;

[0101] A source - file traversal module 32, configured to traverse each source file that constitutes the document to be accessed;

[0102] A first judgment module 33, configured to respectively judge whether there is a source - file role identifier or a source - file content role identifier in each source file;

[0103] An identity matching module 34, configured to, when there is a source - file role identifier or a source - file content role identifier in a source file, respectively match the existing source - file role identifier and source - file content role identifier with the access - end identity information;

[0104] An information return module 35, configured to return the target source file corresponding to the successfully - matched source - file role identifier and the target source - file content corresponding to the successfully - matched source - file content role identifier to the access end.

[0105] The document access control device provided by the present invention parses a received document access request to obtain access - end identity information; traverses each source file that constitutes the document to be accessed; respectively judges whether there is a source - file role identifier or a source - file content role identifier in each source file; if so, respectively matches the existing source - file role identifier and source - file content role identifier with the access - end identity information; and returns the target source file corresponding to the successfully - matched source - file role identifier and the target source - file content corresponding to the successfully - matched source - file content role identifier to the access end. By obtaining the access - end identity information, and pre - dividing the document to be accessed into multiple source files, setting role identifiers for the source files and source files according to permission rules, and obtaining the target source files and target source - file contents within the scope of the access - end identity information through role matching. There is no need to compile duplicate document contents, which reduces costs, improves document compilation efficiency, and reduces maintenance difficulty.

[0106] In a specific embodiment of the present invention, the device may further include:

[0107] An operating - environment information reading module, configured to read the target operating - environment information of the access end before returning the target source file corresponding to the successfully - matched source - file role identifier and the target source - file content corresponding to the successfully - matched source - file content role identifier to the access end;

[0108] A second judgment module, configured to judge whether the document to be accessed is adapted to the target operating - environment information;

[0109] The information return module specifically refers to the module that, when it is determined that the document to be accessed is adapted to the target operating environment information, returns the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access end.

[0110] In a specific embodiment of the present invention, the information return module 35 includes:

[0111] An online document acquisition sub-module, configured to perform document assembly on each of the matched target source files and each of the target source file contents to obtain a target online document;

[0112] A document return sub-module, configured to return the target online document to the access end.

[0113] In a specific embodiment of the present invention, the identity information acquisition module 31 includes:

[0114] A request receiving sub-module, configured to receive a document access request;

[0115] A judgment sub-module, configured to judge whether the document access request is an access request sent after the access end logs in to the system;

[0116] A first identity information acquisition sub-module, configured to, when it is determined that the document access request is an access request sent after the access end logs in to the system, obtain the identity authentication information when the access end logs in to the system, and use the identity authentication information as the access end identity information;

[0117] A second identity information acquisition sub-module, configured to, when it is determined that the document access request is not an access request sent after the access end logs in to the system, send an identity authentication instruction to the access end to obtain the access end identity information input by the access end.

[0118] Corresponding to the above method embodiment, refer to Figure 4 , Figure 4 which is a schematic diagram of the document access control device provided by the present invention. The device may include:

[0119] A memory 41, configured to store a computer program;

[0120] A processor 42, configured to perform the following steps when executing the computer program stored in the above memory 41:

[0121] Parse the received document access request to obtain the access terminal identity information; traverse each source file that makes up the document to be accessed; respectively determine whether there is a source file role identifier or a source file content role identifier in each source file; if so, respectively match the existing source file role identifier and source file content role identifier with the access terminal identity information; return the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access terminal.

[0122] For the introduction of the device provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0123] Corresponding to the above method embodiment, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0124] Parse the received document access request to obtain the access terminal identity information; traverse each source file that makes up the document to be accessed; respectively determine whether there is a source file role identifier or a source file content role identifier in each source file; if so, respectively match the existing source file role identifier and source file content role identifier with the access terminal identity information; return the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access terminal.

[0125] The computer-readable storage medium may include: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc that can store program codes.

[0126] For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0127] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the devices, equipment, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method part.

[0128] In this article, specific examples are used to elaborate on the principles and implementation modes of the present invention. The description of the above embodiments is only used to help understand the technical solution and its core idea of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims

1. A document access control method, characterized in that, it includes: Parsing the received document access request to obtain the access terminal identity information; Traversing each source file that makes up the document to be accessed; Respectively determining whether there is a source file role identifier or a source file content role identifier in each of the source files; If so, respectively matching the existing source file role identifier and the source file content role identifier with the access terminal identity information; Reading the target running environment information of the access terminal; Judging whether the document to be accessed is adapted to the target running environment information according to a preset flag file; If not, it is determined that there is no adaptation, and the target source file or the target source file content cannot be presented to the access terminal for viewing; If so, returning the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access terminal; Parsing the received document access request to obtain the access terminal identity information, including: Receiving the document access request; Judging whether the document access request is an access request sent after the access terminal logs in to the system; If so, obtaining the identity authentication information when the access terminal logs in to the system, and using the identity authentication information as the access terminal identity information; If not, sending an identity authentication instruction to the access terminal to obtain the access terminal identity information input by the access terminal.

2. The document access control method according to claim 1, characterized in that, Returning the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access terminal, including: Conducting document assembly on each of the obtained target source files and each of the target source file contents to obtain a target online document; Returning the target online document to the access terminal.

3. A document access control device, characterized in that, it includes: An identity information acquisition module for parsing the received document access request to obtain the access terminal identity information; A source file traversal module for traversing each source file that makes up the document to be accessed; A first judgment module for respectively judging whether there is a source file role identifier or a source file content role identifier in each of the source files; An identity matching module for respectively matching the existing source file role identifier and the source file content role identifier with the access terminal identity information when there is a source file role identifier or a source file content role identifier in the source file; an information return module for returning the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access terminal; A running environment information reading module for reading the target running environment information of the access terminal before returning the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access terminal; A second judgment module, configured to judge whether the document to be accessed is adapted to the target running environment information according to a preset flag file; when it is determined that the document to be accessed is not adapted to the target running environment information, the target source file or the content of the target source file cannot be presented to the access end for viewing; The information return module is specifically a module that, when it is determined that the document to be accessed is adapted to the target running environment information, returns the target source file corresponding to the successfully matched source file role identifier and the target source file content corresponding to the successfully matched source file content role identifier to the access end; The identity information acquisition module includes: A request receiving sub-module, configured to receive the document access request; A judgment sub-module, configured to judge whether the document access request is an access request sent after the access end logs in to the system; A first identity information acquisition sub-module, configured to, when it is determined that the document access request is an access request sent after the access end logs in to the system, acquire the identity authentication information when the access end logs in to the system, and use the identity authentication information as the access end identity information; A second identity information acquisition sub-module, configured to, when it is determined that the document access request is not an access request sent after the access end logs in to the system, send an identity authentication instruction to the access end to obtain the access end identity information input by the access end.

4. The document access control device according to claim 3, characterized in that the information return module includes: An online document acquisition sub-module, configured to perform document assembly on each of the matched target source files and each of the target source file contents to obtain a target online document; A document return sub-module, configured to return the target online document to the access end.

5. A document access control device, characterized in that it includes: A memory, configured to store a computer program; A processor, configured to implement the steps of the document access control method according to any one of claims 1 to 2 when executing the computer program.

6. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the document access control method according to any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • Document online browsing method and system and storage medium

    CN110609814A