A document display method, device and computer readable storage medium

By identifying and displaying document content based on user role permissions, the problem of low security in document display in the prior art is solved, and the secure collaborative editing of document content and effective protection of sensitive information is realized.

CN114741667BActive Publication Date: 2025-03-04TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110018228.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-07
Publication Date
2025-03-04
Estimated Expiration
2041-01-07

AI Technical Summary

Technical Problem

The existing document display methods have a risk of content coverage when multiple users collaboratively edit, and there is a risk of leaking sensitive information during the display process, resulting in low security of document display.

Method used

By obtaining the target document corresponding to the current user's identity, identifying the visible and hidden content corresponding to the current user, displaying the visible content in the target document according to the user's role permissions, avoiding unauthorized users from viewing or editing sensitive information.

Benefits of technology

It effectively avoids the risk of content coverage when multi-user collaborative editing, and ensures that sensitive information is only displayed to authorized users, improving the security of document display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114741667B_ABST
    Figure CN114741667B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention disclose a document display method, device and computer-readable storage medium; the embodiments of the present invention obtain a target document corresponding to the identity identifier of the current user, where the target document is a shared document that can provide at least two authorized users with simultaneous or non-simultaneous operations, and identify visible content and hidden content corresponding to the current user in the target document, where the visible content is content corresponding to the content visibility authority of the role of the current user in the target organization, and then display the visible content in the target document. This solution can improve the security of document display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a document display method, device and computer-readable storage medium. Background Art

[0002] In recent years, with the rapid development of Internet technology, online office has gradually emerged. In online office, some online documents can be displayed to other users, so that other users can view or edit the documents at any time. The existing document display method is to directly display the content of the document to the user.

[0003] In the process of research and practice on the prior art, the inventor of the present invention found that when the content of a document is directly displayed to the user, if multiple users jointly edit the same content of the document, there is a risk of multiple overwriting of the content. Moreover, if there is some sensitive information in the content, there is a risk of leakage of the sensitive information during the display process. Therefore, the security of the document display is greatly reduced. Summary of the invention

[0004] The embodiments of the present invention provide a document display method, device and computer-readable storage medium, which can improve the security of document display.

[0005] A document display method, comprising:

[0006] Acquire a target document corresponding to the identity identifier of the current user, wherein the target document is a shared document that can be operated by at least two authorized users simultaneously or non-simultaneously;

[0007] Visible content and hidden content corresponding to the current user are identified in the target document, where the visible content is content corresponding to the content visibility authority of the role of the current user in the target organization; and the visible content in the target document is displayed.

[0008] Optionally, the embodiment of the present invention may further provide another document display method, including:

[0009] Acquire a basic document and document permission setting information corresponding to the basic document, wherein the basic document includes at least one basic content area;

[0010] According to the document permission setting information, the basic content area is adjusted to obtain a basic document template;

[0011] When receiving a document display request sent by a terminal, filtering out the target content permission setting information corresponding to the identity identifier carried in the document display request from the document permission setting information;

[0012] According to the target content permission setting information, content permission is set for the basic document template to obtain a target document, and the target document is sent to the terminal so that the terminal can display the target document.

[0013] Accordingly, an embodiment of the present invention provides a document display device, including:

[0014] A first acquisition unit is used to acquire a target document corresponding to the identity identifier of the current user, wherein the target document is a shared document that can be operated by at least two authorized users simultaneously or non-simultaneously;

[0015] The identification unit may be specifically used to identify the visible content and hidden content corresponding to the current user in the target document, wherein the visible content is the content corresponding to the content visibility permission of the role of the current user in the target organization;

[0016] A display unit is used to display the visible content in the target document.

[0017] Optionally, the embodiment of the present invention may further provide another document display device, including:

[0018] A second acquisition unit, configured to acquire a basic document and document permission setting information corresponding to the basic document, wherein the basic document includes at least one basic content area;

[0019] An adjustment unit, configured to adjust the basic content area according to the document permission setting information to obtain a basic document template;

[0020] A screening unit, configured to, when receiving a document display request sent by a terminal, screen the document permission setting information to find the target content permission setting information corresponding to the identity identifier carried in the document display request;

[0021] The setting unit is used to set content permissions for the basic document template according to the target content permission setting information, obtain a target document, and send the target document to the terminal so that the terminal can display the target document.

[0022] Optionally, in some embodiments, the identification unit may be specifically configured to obtain content attribute information of the target document; and identify the visible content and hidden content in the target document according to the content attribute information.

[0023] Optionally, in some embodiments, the display unit can be specifically used to determine first area position information of a content visible area in the target document based on the content attribute information, where the content visible area is an area for displaying the visible content; based on the first area position information, the content visible area is screened out from the content area, and the content of the content visible area is used as the visible content; based on the visible content, the content to be hidden is determined in the target document to obtain the hidden content.

[0024] Optionally, in some embodiments, the display unit may be specifically configured to hide the hidden content in the target document to obtain a document to be displayed; and display the document to be displayed.

[0025] Optionally, in some embodiments, the display unit can be specifically used to obtain the second area position information of the hidden content in the target document; based on the second area position, filter out the invisible content area corresponding to the hidden content in the content area; hide the invisible content area to obtain the document to be displayed.

[0026] Optionally, in some embodiments, the document display device may further include a processing unit, which may be specifically used to display a content processing page of the visible content when the current user triggers the visible content, the content processing page including a content processing control; and process the visible content in response to the processing operation of the content processing control.

[0027] Optionally, in some embodiments, the processing unit can be specifically used to receive editing information of the visible content by the current user through the editing control when the content processing control is an editing control, and process the visible content according to the editing information; when the content processing control is an extended editing control, receive extended editing information of the visible content and the area corresponding to the visible content by the current user through the extended editing control, and process the visible content and the area corresponding to the visible content according to the extended editing information.

[0028] Optionally, in some embodiments, the document display device may further include a permission setting unit, which may be specifically used to display a document creation page, wherein the document creation page includes a document content input control and a document permission setting control; receiving document content input through the document content input control to obtain a basic document; in response to a setting operation of the document permission setting control, setting document permissions for the basic document to obtain document permission setting information of the basic document, and sending the basic document and the document permission setting information to a server; obtaining the target document corresponding to the identity identifier of the current user includes: obtaining the target document corresponding to the identity identifier of the current user from the server.

[0029] Optionally, in some embodiments, the permission setting unit can be specifically used to determine, in response to the setting operation of the document permission setting control, a target basic content area in the basic content area for which the user needs to set document permissions; display a document setting page corresponding to the target basic content area, the document setting page including a user permission setting control and a content permission setting control; determine user information corresponding to the target basic content area in response to the setting operation of the user permission setting control; determine content permission information corresponding to each user in the user information in response to the content permission setting control, and use the user information and content permission information as document permission setting information of the basic document.

[0030] Optionally, in some embodiments, the permission setting unit can be specifically used to obtain the user's applicant identity identifier in the document permission application request when a document permission application request is received; filter out the target content permission information corresponding to the applicant user identity identifier in the preset content permission information; and update the document permission setting information according to the applicant user identity identifier and the target content permission information, so that the user corresponding to the applicant user identity identifier has the permission corresponding to the target content permission information to the content in the basic document.

[0031] Optionally, in some embodiments, the adjustment unit can be specifically used to determine the area type of the basic content area and the content permissions corresponding to the basic content area according to the document permission setting information; adjust the basic content area based on a preset adjustment strategy corresponding to the area type to obtain an adjusted basic document; and lock the basic content area of ​​the adjusted basic document according to the content permissions to obtain the basic document template.

[0032] In addition, an embodiment of the present invention further provides an electronic device, including a processor and a memory, wherein the memory stores an application program, and the processor is used to run the application program in the memory to implement the document display method provided by the embodiment of the present invention.

[0033] In addition, an embodiment of the present invention further provides a computer-readable storage medium, which stores a plurality of instructions, and the instructions are suitable for a processor to load to execute the steps in any document display method provided by the embodiment of the present invention.

[0034] The embodiment of the present invention obtains a target document corresponding to the identity identifier of the current user, where the target document is a shared document that can provide at least two authorized users with simultaneous or non-simultaneous operations, and then identifies visible content and hidden content corresponding to the current user in the target document, where the visible content is content corresponding to the content visibility permission of the role of the current user in the target organization, and then displays the visible content in the target document; since the target document in this scheme displays the visible content in the document during the display process, and the visible content is content corresponding to the content visibility permission of the role of the current user in the target organization, users corresponding to different roles have different visible content in the target document, thereby avoiding the risk of the same content being overwritten multiple times, and can also ensure that sensitive content is only displayed to authorized users, thereby improving the security of document display. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0036] Figure 1 is a scenario diagram of a document display method provided by an embodiment of the present invention;

[0037] Figure 2 is an interactive schematic diagram of a document display method provided by an embodiment of the present invention;

[0038] Figure 3 is a flowchart of a document display method provided by an embodiment of the present invention;

[0039] Figure 4 is a schematic diagram of displaying a document setting page provided by an embodiment of the present invention;

[0040] Figure 5 is a schematic diagram of hiding hidden content provided by an embodiment of the present invention;

[0041] Figure 6 is a schematic diagram of visible contents corresponding to different roles provided by an embodiment of the present invention;

[0042] Figure 7 is a schematic diagram of the processing authority of a target document provided by an embodiment of the present invention;

[0043] Figure 8 is another schematic diagram of a process of document display provided by an embodiment of the present invention;

[0044] Fig. 9 It is a schematic diagram of a process of processing a basic document template provided by an embodiment of the present invention;

[0045] Fig.10 is a third flow chart of document display provided by an embodiment of the present invention;

[0046] Fig.11 is a structural schematic diagram of a first document display device provided by an embodiment of the present invention;

[0047] Fig.12 is another structural schematic diagram of the first document display device provided by an embodiment of the present invention;

[0048] Fig.13 is a third structural schematic diagram of the first document display device provided by an embodiment of the present invention;

[0049] Fig.14 is a structural schematic diagram of a second document display device provided by an embodiment of the present invention;

[0050] Fig.15 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0052] The embodiment of the present invention provides a document display method, device and computer-readable storage medium. The document display device can be integrated in an electronic device, which can be a server or a terminal.

[0053] Specifically, an embodiment of the present invention provides a document display device suitable for a first electronic device (for the purpose of distinction, it can be referred to as a first document display device), and a document display device suitable for a second electronic device (for the purpose of distinction, it can be referred to as a second document display device). Among them, the first electronic device can be a terminal or other device, and the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited to this. The second electronic device can be a network-side device such as a server, and the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.

[0054] In the embodiment of the present invention, the first electronic device is taken as a terminal and the second electronic device is taken as a server. Figure 1 The document display system provided by the embodiment of the present invention includes a terminal 10 and a server 20, wherein the terminal 10 and the server 20 are connected via a network, for example, via a wired or wireless network connection.

[0055] The terminal 10 may obtain the target document from the server 20 as follows:

[0056] Get the target document corresponding to the identity of the current user, where the target document is a shared document that can provide at least two authorized users with simultaneous or non-simultaneous operations, identify the visible content and hidden content corresponding to the current user in the target document, where the visible content is the content corresponding to the content visibility permission of the current user's role in the target organization, and display the visible content in the target document.

[0057] Among them, the document can be a shared document that can provide at least two users with permissions to operate simultaneously or non-simultaneously, and can also be understood as an online document. The document can include various file materials that can be viewed or edited, such as text documents (word), spreadsheet documents (excel) and graphic documents (PPT).

[0058] Among them, visible content refers to the content that can be seen during the display of the target document. This content can be the content corresponding to the content visibility permission of the current user's role in the target organization. For example, if the target organization is a company organization and the current user's role is a financial personnel, the visible content can be the content that the financial personnel in the target document have the content visibility permission to view or edit. The opposite content can be hidden content. Hidden content can also be understood as content that is not visible during the display of the target document. The current user cannot see this part of the content in the target document.

[0059] The server 20 is used to receive a document display request sent by the terminal, and send the target document to the terminal 10 according to the document display request, which can be specifically as follows:

[0060] Obtain the basic document and document permission setting information, then adjust the basic document according to the document permission setting information to obtain the adjusted document. When receiving a document display request sent by the terminal, filter out the content permission setting information corresponding to the identity identifier carried in the document display request from the document permission setting information, then update the content permissions of the content area of ​​the adjusted document according to the content setting information to obtain the target document, and send the target document to the terminal.

[0061] When the terminal and the server interact, if the current user is an administrator, the server can send the global data of the basic document stored locally; if the current user is a non-administrator, the server can send the target document corresponding to the identity of the current user. The target document may contain visible content and hidden content. The specific interaction diagram can be as follows: Figure 2 shown.

[0062] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0063] This embodiment will be described from the perspective of a document display device (i.e., a first document display device), which can be specifically integrated in a terminal; wherein the terminal can include a tablet computer, a laptop computer, a personal computer (PC), a wearable device, a virtual reality device, or other smart devices that can display documents.

[0064] A document display method, comprising:

[0065] Get the target document corresponding to the identity of the current user, where the target document is a shared document that can provide at least two authorized users with simultaneous or non-simultaneous operations, identify the visible content and hidden content corresponding to the current user in the target document, where the visible content is the content corresponding to the content visibility permission of the current user's role in the target organization, and display the visible content in the target document.

[0066] like Figure 3 As shown, the specific process of the document display method is as follows:

[0067] 101. Obtain the target document corresponding to the identity identifier of the current user.

[0068] The target document is a shared document that can be operated by at least two authorized users simultaneously or non-simultaneously, and can also be understood as an online document that can be viewed or edited by multiple people.

[0069] For example, the target document can be obtained from the server. For example, the current user triggers the generation of a document display request, adds the identity of the current user and the document identifier of the target document to be displayed to the document display request, and sends the document display request with the identity and document identifier added to the second document display device. After receiving the document display request, the second document display device returns the target document corresponding to the identity identifier. The first document display device can directly receive the target document returned by the second document display device. When the content of the target document is large or more, the target document can also be received indirectly. For example, the second document display device sends the storage address of the target document to the first document display device, and the first document display device obtains the target document in the memory or cache of the second document display device according to the storage address.

[0070] Optionally, before obtaining the target document corresponding to the identity identifier, the document creating user may also create a basic document corresponding to the target document and set the document permission of the basic document. Therefore, the document display method further includes:

[0071] Display a document creation page, which includes a document input control and a document permission setting control, receives document content input through the document content input control, obtains a basic document, and in response to a setting operation of the document permission setting control, sets the document permission of the basic document, obtains document permission setting information of the basic document, and sends the basic document and the document permission setting information to the server, which may be specifically as follows:

[0072] S1. Display the document creation page.

[0073] The document creation page is a page used to create a document. A user can create an online document on the document creation page. The document creation page includes a content input control and a document permission setting control.

[0074] For example, a user can perform operations on the user operation page of the document client to trigger the display of the document creation page of the document client. For example, a user can perform operations on the document search page to trigger the display of the document creation page. For example, a document creation control can be triggered on the document search page to display the document creation page.

[0075] Among them, the document search page can provide users with a page for document search content. Users can perform search operations on the document search page to search for required documents. If the required documents are not found on the search page, the document creation control can be triggered to create the required documents.

[0076] Among them, in this embodiment, the control has various forms of expression, such as input box, icon, button and the like.

[0077] S2. Receive the document content input through the document content input control to obtain a basic document.

[0078] For example, when a user performs input operations through the content input control of the document creation page, the document content input by the user is received, the document type of the document is created as needed, and the document content is added to the basic document template corresponding to the document type, thereby obtaining a basic document. For example, when the type of the basic document is a table document, the document creation page can include a blank table template, and the document content is filled into the position corresponding to the blank table template to obtain the basic document created by the user. When the type of the basic document is a text document, the document creation page can include a blank text template, and the document content is added to the position corresponding to the blank text template to obtain the basic document created by the user. When the type of the basic document is a graphic document, the document creation page can include a graphic template of the control, and the document content is added to the position corresponding to the blank graphic template to obtain the basic document created by the user. For other types of documents, the method of creating a basic document is the same as the above three types of documents, which will not be repeated here.

[0079] S3. In response to the setting operation of the document permission setting control, the document permission of the basic document is set, the document permission setting information of the basic document is obtained, and the basic document and the document permission setting information are sent to the server.

[0080] The basic document includes at least one basic content area. The so-called basic content area can be understood as the content editing area of ​​the smallest unit in the basic document. Taking the basic document as a table document as an example, the basic content area can be a cell.

[0081] Among them, the response is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed can be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.

[0082] For example, in response to a setting operation of a document permission setting control, a target basic content area for which a user needs to set document permission is determined in the basic content area, a document setting page corresponding to the target basic content area is displayed, and the document setting page includes a user permission setting control and a content permission setting control. In response to a setting operation of the user permission setting control, user information corresponding to the target basic content area is determined. In response to the content permission setting control, content permission information corresponding to each user in the user information is determined. The user information and the content permission information are used as document permission setting information of the basic document, and the basic document and the document permission setting information are sent to the server. Specifically, the following can be performed:

[0083] (1) In response to a setting operation of a document permission setting control, a target basic content area for which the user needs to set document permissions is determined in the basic content area.

[0084] For example, when a user selects at least one basic content area in a basic document that requires document permission setting and triggers the document permission setting control, in response to the setting operation of the document permission setting control, a target basic content area in which the user requires document permission setting is determined in the basic content area. For example, taking the basic content area as a cell as an example, when a user selects at least one cell in a basic document that requires document permission setting and triggers the document permission setting control to perform a setting operation by clicking the right mouse button or by other means, in response to the setting operation of the document permission setting control, the cell selected by the user can be determined in the cells of the basic document to obtain the target cell.

[0085] (2) Display the document setting page corresponding to the target basic content area.

[0086] Among them, the document setting page is a page for users to set document permissions for the document content of the target basic area. The document setting page includes a user permission setting control and a content permission setting control. The user permission setting control is used to set the user's permissions for the target basic area, and the content permission setting control is used to set the permissions of the user with permissions for the document content of the target basic area. It can also be understood as setting the user's attributes for the document content of the target basic area. The attributes may include invisible, view only, editable, and extensible editing, etc.

[0087] For example, when a user selects a target basic area and triggers a document permission setting control, the first document display device can display a document setting page corresponding to the target basic content area after determining the target basic area selected by the user in the basic document. The document setting page can be displayed at any position near the target basic content area. For example, taking the basic document as a table document as an example, the specific process of displaying the document setting page can be as follows: Figure 4 shown.

[0088] (3) In response to a setting operation of the user authority setting control, user information corresponding to the target basic content area is determined.

[0089] The user information may be information of users who have visible authority and invisible authority to the content of the target basic content area, and the information may include information such as the user's identity, the effective authority time of the visible authority or invisible authority, and / or the terminal identity bound to the user's identity. The user information may also include user level information of users who have visible authority and invisible authority to the content of the target basic content area, and the user level information may be used to set the corresponding user level, such as first-level user, second-level user, and third-level user, etc. Then, the level tag may be added to the identity of the user with visible authority or invisible authority, so that users of the same level can view the content of the target basic content area of ​​the same area.

[0090] For example, in response to a setting operation of a user permission setting control, a user selection page is displayed, which may include a list of all users or a list of user levels of the target organization. In response to a user or user level selected by the user in the user list, user information corresponding to the target basic area is obtained. For example, when the user selection page includes a user list of the target organization, the user selects an identity identifier of a user with specific permissions on the user list, thereby obtaining user information of a user with specific permissions to the content of the target basic area. When the user selection page includes a user level list of the target organization, the user selects a user level with specific permissions on the user level list. In response to the user's selection operation on the user level list, A level user selection page can be displayed, which includes all or part of the candidate user list of the target organization. The user selects the user corresponding to the specific user level in the candidate user list, thereby obtaining the user information corresponding to the target basic content area. For example, the user selects the user level with specific permissions as a second-level user in the user level list, then at least one user actually included in the second-level users under the target organization can be selected from the candidate user list, and a second-level user tag can be added to the user. In this way, all second-level users in the target organization can have specific permissions in the target basic content area, and the user level and user identity information of the selected second-level user can be used as the user information corresponding to the target basic content area.

[0091] (4) In response to the content permission setting control, determine the content permission information corresponding to each user in the user information, use the user information and the content permission information as the document permission setting information of the basic document, and send the basic document and the document permission setting information to the server.

[0092] For example, in response to the content permission setting control, a content permission setting page is displayed, which includes a content permission list corresponding to users or user levels with specific permissions in the user information. The user selects the content permission of each user or user level in the user information in the content permission list, thereby determining the content permission information corresponding to each user in the user information. The content permission in the content permission list may include invisible, view-only, editable, extensible editing, and shareable. For example, when the user selects the content permission of user A as invisible in the content permission list, it means that user A is invisible to the content in the target basic content area. When the user selects the content permission of the first-level user as view-only in the content permission list, it means that the user with the level label of the first level can only view the content in the target basic content area and cannot edit or extend the content. After the user selects the content permission of all users or user levels in the content permission list, the content permission information corresponding to each user with specific permissions can be determined. The user information and content permission information are used as the document permission setting information of the basic document, and the basic document and the document permission setting information are sent to the server. For example, it can be sent directly to the server or indirectly to the server, for example, the storage address of the basic document and document permission setting information is sent to the server, so that the server obtains the basic document and document permission setting information in the memory or cache of the first document display device according to the storage address.

[0093] Optionally, after setting the document permission of the basic document and obtaining the document permission setting information of the basic document, other users can continue to apply for the permission of the basic document. Therefore, the document display method further includes:

[0094] When a document permission application request is received, the user's applicant user identity identifier is obtained in the document permission application request, the target content permission information corresponding to the applicant user identity identifier is filtered out in the preset content permission information, and the document permission setting information is updated based on the applicant user identity identifier and the target content permission information, so that the user corresponding to the applicant user identity identifier has the permission corresponding to the target content permission information to the content in the basic document.

[0095] For example, when there are new personnel or users who are not assigned permissions to the basic document in the target organization, and the user needs to apply for permissions to the basic document, the user can trigger the generation of a document permission application request for the basic document, add the user's application user identity to the document permission application request, and send the document permission application to the first document display device or the second document display device. If it is sent to the second document display device, the second document display device will forward the document permission application request to the first document display device. When the first document display device receives the document permission application request, it obtains the user's application user identity in the document permission application request, and filters out the target content permission information corresponding to the application user identity in the preset content permission information. The document permission setting information is updated according to the applicant user identity and the target content permission information, so that the user corresponding to the applicant user identity has the permission corresponding to the target content permission information to the content in the basic document. For example, the applicant user identity is added to the user information in the document permission setting information, and the target content permission information is added to the content permission information corresponding to the user information. In this way, the user corresponding to the applicant user identity has specific permissions to the content in the target basic content area. For example, taking the applicant user identity as user A, and the content permission corresponding to user A as the permission to edit the content in basic content area B in the basic document, adding user A and the content permission information corresponding to user A to the document permission setting information can enable user A to have the permission to edit the content in basic content area B in the basic document.

[0096] 102. Identify visible content and hidden content corresponding to the current user in the target document.

[0097] The target document includes visible content and hidden content, and the visible content is the content corresponding to the content visibility permission of the role of the current user in the target organization.

[0098] For example, the content attribute information of the target document may be obtained, and the visible content and the hidden content in the target document may be identified according to the content attribute information, as follows:

[0099] (1) Obtain content attribute information of the target document.

[0100] The document attribute information may be information indicating that the current user has content visibility permission in the target document.

[0101] For example, the content attribute information of the target document can be directly obtained from the server, such as sending a content attribute information acquisition request to the server and receiving the content attribute information returned by the server according to the content attribute acquisition request. The content attribute information of the target document can also be obtained in the target document, such as obtaining the document attribute information in the target document and filtering out the content attribute information in the document attribute information.

[0102] (2) Based on the content attribute information, the visible content and hidden content are identified in the target document.

[0103] The target document may further include at least one target content area. Taking the target document as a table as an example, the target content area may be a cell in the table document.

[0104] For example, according to the content attribute information, the first area position information of the content visible area in the target document is determined, and the content visible area is an area where visible content is displayed. For example, the position information of the visible content is identified in the content attribute information to obtain the first area position information of the first content visible area. Based on the first area position information, the content visible area is screened out in the content area, and the content of the content visible area is used as the visible content.

[0105] According to the visible content, the content to be hidden is determined in the target document to obtain the hidden content. For example, it is determined in the target document that all the content other than the visible content is the content to be hidden, and the content to be hidden is used as the hidden content.

[0106] 103. Display the visible content in the target document.

[0107] For example, the hidden content is hidden in the target document to obtain the document to be displayed. For example, the position information of the second area of ​​the target document to be hidden is obtained. According to the position information of the second area, the invisible area corresponding to the hidden content is screened out in the content area, and the invisible area is hidden to obtain the document to be displayed. For example, a hidden mask can be added to the invisible area to hide the hidden content. In this way, the hidden content can be hidden to obtain the document to be displayed. The invisible area can also be blurred to make the hidden content invisible, thereby hiding the hidden content to obtain the document to be displayed. The specific process can be as follows: Figure 5 As shown, the document to be displayed includes visible content and hidden content, but the hidden content is not visible. The document to be displayed is displayed, for example, the document to be displayed can be directly displayed on the document client, and a document display page can be generated to add the document to the document display page.

[0108] The visible content in the document to be displayed is related to the identity of the current user. The visible content is different depending on the role of the current user in the current organization. Taking the revenue statistics table as the basic document as an example, the visible content from the administrator perspective, the financial perspective, and the business perspective are all different. From the administrator perspective, the global information of the basic document can be obtained, that is, all the contents of the basic document are visible content. However, from the financial perspective and the business perspective, the visible content can only include the content with the visible permission corresponding to the role. The details can be as follows: Figure 6 shown.

[0109] It should be noted that not all users with specific permissions will include visible content and hidden content in the target document when displaying the target document. It is also possible that the target document will only contain visible content or hidden content when displaying the target document. Displaying visible content and hidden content depends on the content corresponding to the content visibility permission of the current user's role in the target organization. When the user's role is an administrator, and the administrator's content visibility permission is the entire content of the basic document, then only visible content will exist in the target document displayed by the user, and no hidden content will exist. When the user's role does not have content visibility permission for the target document, only hidden content will exist in the target document displayed by the user, and no visible content will exist.

[0110] Optionally, after displaying the visible content of the target document, the user may also process the visible content of the target document by editing or extended editing. Therefore, the document display method further includes:

[0111] When the current user triggers the visible content, a content processing page of the visible content is displayed. The content processing page includes a content processing control. In response to the processing operation of the content processing control, the visible content is processed. Specifically, it can be as follows:

[0112] (1) When the current user triggers visible content, the content processing page of the visible content is displayed.

[0113] For example, when the current user triggers visible content, the content processing page of the visible content is displayed according to the content attribute information. For example, it can be queried in the content attribute information whether the current user has the processing authority for the visible content. When the user has the processing authority, the content processing page of the visible content is displayed. The content processing page may include a content processing control, and the type of the content processing control corresponds to the processing authority. At this time, the target content area corresponding to the visible content is in a processable state. Among them, the processing authority may include editing authority and extended editing authority. The editing authority allows the user to edit the visible content, and the extended editing authority allows the user to edit the visible content and the area corresponding to the visible content. For example, taking the target document as a table document, the extended editing authority allows the user to insert, delete, or merge cells in the visible area of ​​the table document. Therefore, in the target document, some visible content may have processing authority, and the remaining visible content may not have processing authority but only viewing authority, such as Figure 7 When the user does not have the processing authority for the visible content, the user triggers the visible area and the content processing page is not displayed. At this time, the target content area corresponding to the visible content is in a locked state.

[0114] (2) In response to the processing operation of the content processing control, the visible content is processed.

[0115] For example, when the content processing control is an editing control, it receives the editing information of the visible content through the editing control by the current user. For example, the user edits the visible content through the editing control, thereby receiving the editing information generated by the user's editing operation, and processing the visible content according to the editing information. For example, the user modifies the visible content, receiving the modification information input by the user, and modifying the visible content according to the modification information. When the content processing control is an extended edit control, it receives the extended edit information of the current user on the visible content and the area corresponding to the visible content through the extended edit control, and processes the visible content and the area corresponding to the visible content according to the extended edit information. For example, taking the target document as a table document, the user can edit the visible content and the cells corresponding to the visible content through the extended edit control, such as inserting, deleting and merging rows / columns, thereby entering the extended edit information, and performing extended editing on the visible content and the cells of the visible content according to the extended edit operation information. Specifically, the user extends the editing area C and D to insert a column CD. After completing the editing in this area, it is nested again like the original $C~$D, which can be compatible with the content permission information of other users other than the current user, thereby completing the extended editing of the visible content.

[0116] Optionally, the processed target document obtained after processing the visible content can also be returned to the second document display device, so that the second document display device updates the basic document template based on the processed target document, so that the next user can obtain the target document, and display and process the target document.

[0117] The current user can perform common editing operations, such as editing visible content, through the extended editing control, and can also perform extended editing operations, such as editing visible content and areas of visible content.

[0118] From the above, it can be seen that the embodiment of the present invention obtains the target document corresponding to the identity identifier of the current user, and the target document is a shared document that can provide at least two authorized users with simultaneous or non-simultaneous operations. Then, the visible content and hidden content corresponding to the current user are identified in the target document, and the visible content is the content corresponding to the content visibility permission of the role of the current user in the target organization. The visible content in the target document is displayed during the display process of the target document in the scheme, and the visible content is the content corresponding to the content visibility permission of the role of the current user in the target organization. Users corresponding to different roles have different visible content in the target document, thereby avoiding the risk of the same content being overwritten multiple times, and can also ensure that sensitive content is only displayed to authorized users. Therefore, the security of document display can be improved.

[0119] This embodiment will be described from the perspective of a second document display device, which can be specifically integrated in an electronic device, which can be a server or other device; wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms.

[0120] A document display method, comprising:

[0121] A basic document and document permission setting information corresponding to the basic document are obtained, where the basic document includes at least one basic content area, and the basic content area is adjusted according to the document permission setting information to obtain a basic document template. When a document display request sent by a terminal is received, target content permission setting information corresponding to the identity identifier carried in the document display request is filtered out from the document permission setting information, and content permission is set for the basic document template according to the target content permission setting information to obtain a target document, and the target document is sent to the terminal so that the terminal can display the target document.

[0122] like Figure 8 As shown, the transaction information processing method has the following specific process:

[0123] 201. Obtain a basic document and document permission setting information corresponding to the basic document.

[0124] The basic document includes at least one basic content area. Taking the basic document as a table document as an example, the basic content area may be one or more cells.

[0125] For example, the basic document sent by the first document display device and the document permission setting information corresponding to the basic document can be directly obtained. When the memory of the basic document and the document permission setting information corresponding to the basic document is large or the content is large, the basic document and the document permission setting information corresponding to the basic document can also be indirectly obtained. For example, the first document display device sends the storage address of the basic document and the document permission setting information to the second document display device. After receiving the storage address, the second document display device obtains the basic document and the document permission setting information corresponding to the basic document in the memory or cache of the first document display device according to the storage address. The basic document and the document permission setting information can be obtained in real time or periodically.

[0126] 202. According to the document permission setting information, the basic content area is adjusted to obtain a basic document template.

[0127] For example, the area type of the basic content area and the content permission corresponding to the basic content area can be determined according to the document permission setting information. For example, the content permission setting information corresponding to each basic content area is extracted from the document permission setting information, and the area type of the basic content area and the content permission corresponding to the basic content area are determined according to the content permission setting information. For example, taking the basic content area as cell A as an example, if user A sets the content permission setting information of cell A to view only, it can be determined that the area type of cell A can be a view-only area, and the content permission of the cell is that user A has the view-only permission to the content in cell A. Based on the preset adjustment strategy corresponding to the area type, the basic content area is adjusted to obtain the adjusted basic document. Adjusting the basic content area can be regarded as a secondary segmentation and stripping of the basic content area. For example, when the area type is an invisible area, a view-only area or an edit area, the position of the basic content area corresponding to the area type in the target document is directly recorded. When the area type is an extended edit area, the extended edit area can be segmented and stripped out in the basic document, and the extended edit area is processed twice to generate and record a new starting position of the extended edit area, so that the user can perform extended editing on the extended edit area. According to the content permissions, the basic content area of ​​the adjusted basic document is locked to obtain a basic document template. For example, content attribute information corresponding to the content permissions is selected from the preset content attribute information, and the content attribute information is added to the basic content area of ​​the adjusted basic document, so that the initial allocation of content permissions to the basic content area can be completed. At this time, the basic content area can be allocated with multiple content permissions. For example, for a basic content area, there may be multiple users with different content permissions to the basic content area. Therefore, when adding content attribute information, the content attribute information corresponding to all content permissions of the basic content area is added to complete the locking of the basic content area, thereby obtaining a basic document template.

[0128] 203. When a document display request sent by a terminal is received, target content permission setting information corresponding to the identity carried in the document display request is filtered out from the document permission setting information.

[0129] For example, when a document display request is received from a terminal, the identity identifier of the current user is obtained from the document display request, and the content permission setting information corresponding to the identity identifier is filtered out from the document permission setting information. For example, the user information and content permission setting information of the basic document are extracted from the document permission setting information, and a query is made in the user information to determine whether the identity identifier exists. If so, the target content permission setting information corresponding to the identity identifier is filtered out from the content permission setting information. The target content permission setting information includes the content permissions of the current user in the basic content area of ​​the basic document.

[0130] 204. According to the target content permission setting information, content permission is set for the basic document template to obtain the target document, and the target document is sent to the terminal so that the terminal can display the target document.

[0131] For example, based on the target content permission setting information, the content permission of the current user to the basic content area of ​​the basic document can be determined. Based on the content permission, the basic content area for which the content permission needs to be set is identified in the basic document template, and the content permission is set for the basic content area based on the content attribute information in the basic content area. For example, the content attribute information is set so that the content permission of the basic content area is the content permission corresponding to the current user, so that the target document can be obtained.

[0132] The target document is sent to the terminal so that the terminal can display the target document. For example, the target document can be sent directly to the terminal so that the terminal can display the target document. When the memory of the target document is large or the number is large, the target document can also be sent to the terminal indirectly, for example, the storage address of the target document is sent to the terminal so that the terminal obtains the target document in the memory or cache of the second document display device according to the storage address. The terminal displays the received target document. If the current user has the processing authority for the content of part of the basic content area of ​​the target document, for example, the content authority is the editing authority and the extended editing authority, the current user can also process the content of the target document.

[0133] Among them, after the terminal displays and processes the target document, it can also return the processed target document to the second document display device. The second document display device backs up the processed target document, and updates the basic content area of ​​the basic document template according to the processed target document, and recalculates the content permissions of the basic content area again to obtain the updated basic document template. When other users send document display requests, the content permissions are set for the basic content area of ​​the updated basic document template to obtain the target documents of other users. When the terminal returns the processed target document of other users, it returns to execute the step of backing up the processed document, and updates the updated basic document template again, so that the basic document template is always in the latest state after the user's processing. The specific process can be as follows: Fig. 9 shown.

[0134] As can be seen from the above, after the embodiment of the present invention obtains the basic document and the document permission setting information corresponding to the basic document, the basic document includes at least one basic content area. According to the document permission setting information, the basic content area is adjusted to obtain a basic document template. When a document display request sent by a terminal is received, the target content permission setting information corresponding to the identity carried in the document display request is filtered out from the document permission setting information, and the content permission is set for the basic document template according to the target content permission setting information to obtain the target document, and the target document is sent to the terminal so that the terminal can display the target document. Since the scheme filters out the target content permission setting information corresponding to the user's identity in the document permission setting information, and sets the permission for the basic document template according to the target content permission setting information, the user can only obtain the target document with the content permission corresponding to the identity, thereby avoiding the risk of the same content being overwritten multiple times, and can also ensure that sensitive content is only displayed to authorized users, therefore, the security of document display can be improved.

[0135] According to the method described in the above embodiment, the following is further described in detail with examples.

[0136] In this embodiment, the first document display device is a terminal, the second document display device is a server, and the types of the basic document and the target document are table documents.

[0137] (I) The terminal creates a basic document and sets the file permissions for the basic document.

[0138] For example, a document creation page is displayed, the document creation page includes a document input control and a document permission setting control, document content input through the document content input control is received, a basic document is obtained, and in response to a setting operation of the document permission setting control, document permission of the basic document is set to obtain document permission setting information of the basic document, and the basic document and the document permission setting information are sent to the server, which may be specifically as follows:

[0139] (1) The terminal displays the document creation page.

[0140] For example, a user may perform an operation on a document search page to trigger the display of a document creation page. For example, a user may trigger a document creation control on a document search page, and the terminal displays the document creation page.

[0141] (2) The terminal receives the document content input through the document content input control and obtains the basic document.

[0142] For example, when a user performs input operation through the content input control of the document creation page, the terminal receives the document content entered by the user and fills the document content into the corresponding position of the blank table template, and the basic document created by the user can be obtained.

[0143] (3) In response to the setting operation of the document permission setting control, the document permission of the basic document is set, the document permission setting information of the basic document is obtained, and the basic document and the document permission setting information are sent to the server.

[0144] For example, when a user selects at least one cell in a basic document that needs to be set for document permissions, and triggers a document permission setting control by clicking the right mouse button or by other means to perform a setting operation, in response to the setting operation of the document permission setting control, the cell selected by the user can be determined in the cells of the basic document to obtain a target cell. When the user selects a target cell and triggers the document permission setting control, the terminal can display a document setting page corresponding to the target basic content area after determining the target cell selected by the user in the basic document. When the user triggers the setting operation of the user permission setting control on the document setting page, in response to the setting operation of the user permission setting control, a user selection page is displayed, and the user selection page may include a list of all users or a list of user levels of the target organization. When the user selection page includes the user list of the target organization, the user selects the identity of the user with specific permissions on the user list, thereby obtaining the user information of the user with specific permissions to the content of the target basic area. When the user selection page includes the user level list of the target organization, the user selects the user level with specific permissions on the user level list. In response to the user's selection operation on the user level list, a level user selection page may be displayed. The level user selection page includes all or part of the candidate user list of the target organization. The user selects the user corresponding to the specific user level in the candidate user list, thereby obtaining the user information corresponding to the target cell.

[0145] When the user triggers the setting operation of the content permission setting control on the document setting page, in response to the content permission setting control, the content permission setting page is displayed, which includes a content permission list corresponding to users or user levels with specific permissions in the user information. The user selects the content permission of each user or user level in the user information in the content permission list, thereby determining the content permission information corresponding to each user in the user information. The content permission in the content permission list may include invisible, view only, editable, extensible editing, and shareable, etc. The user information and content permission information are used as document permission setting information of the basic document, and the basic document and the document permission setting information are sent to the server.

[0146] Optionally, when there are new personnel or users who are not assigned permissions to the basic document in the target organization, and the user needs to apply for permissions to the basic document, the user can trigger the generation of a document permission application request for the basic document, add the user's application user identity to the document permission application request, and send the document permission application to the terminal or server through the client. If it is sent to the server, the server will forward the document permission application request to the terminal. When the terminal receives the document permission application request, it obtains the user's application user identity in the document permission application request, and filters out the target content permission information corresponding to the application user identity in the preset content permission information. Based on the application user identity and the target content permission information, the document permission setting information is updated so that the user corresponding to the application user identity has the permission corresponding to the target content permission information to the content in the basic document.

[0147] (2) The server receives the basic document and the document permission setting information corresponding to the basic document, and adjusts the basic document according to the document permission setting information to obtain a basic document template.

[0148] For example, the server can directly obtain the basic document sent by the terminal and the document permission setting information corresponding to the basic document. When the memory of the basic document and the document permission setting information corresponding to the basic document is large or the content is large, the basic document and the document permission setting information corresponding to the basic document can also be indirectly obtained. The content permission setting information corresponding to each cell is extracted from the document permission setting information, and the area type of the cell and the content permission corresponding to the cell are determined according to the content permission setting information. When the area type is an invisible area, a view-only area or an edit area, the position of the cell corresponding to the area type in the target document is directly recorded. When the area type is an extended edit area, the extended edit area can be split and stripped out from the basic document, and the extended edit area is processed twice to generate and record the new starting position of the extended edit area, so that the user can extend the edit area. In the preset content attribute information, the content attribute information corresponding to the content permission is selected less, and the content attribute information is added to the cell of the adjusted basic document, so that the initial allocation of the content permission of the cell can be completed, and the locking of the cell can be completed, thereby obtaining the basic document template.

[0149] (3) The terminal obtains the target document corresponding to the identity identifier from the server and displays the target document.

[0150] like Fig.10 As shown, a document display method, the specific process is as follows:

[0151] 301. The terminal sends a document display request to the server.

[0152] For example, the current user triggers the generation of a document display request, the terminal adds the identity of the current user and the document identifier of the target document to be displayed to the document display request, and sends the document display request with the added identity and document identifier to the server.

[0153] 302. When receiving a document display request sent by a terminal, the server filters out target content permission setting information corresponding to the identity carried in the document display request from the document permission setting information.

[0154] For example, when receiving a document display request sent by a terminal, the server obtains the identity of the current user in the document display request, extracts the user information and content permission setting information of the basic document from the document permission setting information, and queries whether the identity exists in the user information. If so, the target content permission setting information corresponding to the identity is filtered out in the content permission setting information.

[0155] 303. The server sets content permissions for the basic document template according to the target content permission setting information, obtains the target document, and sends the target document to the terminal.

[0156] For example, the server can determine the current user's content permissions for the cells of the basic document based on the target content permission setting information. Based on the content permissions, the cells that need to set content permissions are identified in the basic document template, and the content permissions are set for the cells based on the content attribute information in the cells, thereby obtaining the target document. The server can directly send the target document to the terminal so that the terminal displays the target document. When the target document has a large memory or a large number of documents, the target document can also be sent to the terminal indirectly.

[0157] 304. The terminal obtains content attribute information of the target document.

[0158] For example, the terminal sends a content attribute information acquisition request to the server, and receives the content attribute information returned by the server according to the content attribute acquisition request. The terminal can also obtain document attribute information in the target document, and filter out the content attribute information from the document attribute information.

[0159] 305. The terminal identifies visible content and hidden content in the target document according to the content attribute information.

[0160] For example, the terminal identifies the position information of the visible content in the content attribute information, and obtains the first area position information of the first content visible area. Based on the first area position information, the content visible area is screened out in the content area, and the content of the content visible area is used as the visible content. It is determined in the target document that all the content other than the visible content is content that needs to be hidden, and the content that needs to be hidden is used as hidden content.

[0161] 306. The terminal displays visible content in the target document.

[0162] For example, the terminal obtains the second area position information of the hidden content in the target document, and according to the second area position information, selects the invisible content area corresponding to the hidden content in the content area, and performs hiding processing on the invisible content area to obtain the document to be displayed. For example, a hidden mask can be added to the invisible content area, and the hidden mask is used to hide the hidden content, so that the hidden content can be hidden to obtain the document to be displayed. The invisible content area can also be blurred to make the hidden content invisible, thereby hiding the hidden content and obtaining the document to be displayed. The terminal can directly display the document to be displayed on the document client, and can also generate a document display page and add the document to be displayed to the document display page.

[0163] Optionally, the terminal may also process the visible content of the target document. For example, when the current user triggers the visible content, a content processing page of the visible content is displayed. The content processing page includes a content processing control. In response to the processing operation of the content processing control, the visible content is processed. Specifically, the processing may be as follows:

[0164] (1) When the current user triggers visible content, the terminal displays the content processing page of the visible content.

[0165] For example, when the current user triggers visible content, the terminal can query whether the current user has processing authority for the visible content in the content attribute information, and when the current user has processing authority, the terminal displays the content processing page of the visible content, which may include content processing controls, and the type of the content processing controls corresponds to the processing authority. At this time, the target content area corresponding to the visible content is in a processable state.

[0166] (2) The terminal processes the visible content in response to the processing operation of the content processing control.

[0167] For example, when the content processing control is an editing control, the user edits the visible content through the editing control, thereby receiving the editing information generated by the user's editing operation, and processing the visible content according to the editing information; when the content processing control is an extended editing control, it receives the extended editing information of the visible content and the area corresponding to the visible content by the current user through the extended editing control, and processes the visible content and the area corresponding to the visible content according to the extended editing information.

[0168] Among them, after the current user processes the target document, the terminal returns the processed target document to the server. The server updates the cell area of ​​the basic document template again according to the processed target document, and calculates the content permissions of the cell area to obtain the updated basic document template. When receiving a document display request sent by other users, the content permissions of the updated basic document template are set according to the content permission setting information corresponding to the identity identifier of the other user, and the target document corresponding to the other user is obtained. The target document is returned to the terminal corresponding to the other user, so that the other user can display and process the target document. After each processing is completed, the processed target document needs to be returned to the server to update the basic document template, thereby avoiding the problem of repeated coverage of the same area by other users.

[0169] From the above, it can be seen that the terminal of this embodiment obtains the target document corresponding to the identity identification of the current user, and the target document is a shared document that can provide at least two authorized users with simultaneous or non-simultaneous operations. Then, the visible content and hidden content corresponding to the current user are identified in the target document, and the visible content is the content corresponding to the content visibility permission of the role of the current user in the target organization, and the visible content in the target document is displayed; because the target document in this scheme displays the visible content in the document during the display process, and the visible content is the content corresponding to the content visibility permission of the role of the current user in the target organization, the visible content in the target document for users corresponding to different roles is different, thereby avoiding the risk of the same content being overwritten multiple times, and can also ensure that sensitive content is displayed only to authorized users, thereby improving the security of document display.

[0170] In order to better implement the above method, an embodiment of the present invention further provides a document display device (i.e., a first document display device), which can be integrated in a terminal, and the terminal can include a smart phone, a tablet computer, a laptop computer and / or a personal computer, etc.

[0171] For example, Fig.11 As shown, the first document display device may include a first acquisition unit 401, an identification unit 402 and a display unit 403, as follows:

[0172] (1) a first acquisition unit 401;

[0173] The first acquisition unit 401 is used to acquire a target document corresponding to the identity of the current user, where the target document is a shared document that can be operated by at least two authorized users simultaneously or non-simultaneously.

[0174] For example, the first acquisition unit 401 can be specifically used to trigger the current user to generate a document display request, add the current user's identity identifier and the document identifier of the target document to be displayed to the document display request, send the document display request with the added identity identifier and document identifier to the server, and receive the target document corresponding to the current user's identity identifier returned by the server.

[0175] (2) identification unit 402;

[0176] The identification unit 402 is used to identify the visible content and hidden content corresponding to the current user in the target document.

[0177] For example, the identification unit 402 may be specifically configured to obtain content attribute information of the target document, and identify visible content and hidden content in the target document according to the content attribute information.

[0178] (3) display unit 403;

[0179] The display unit 403 is used to display the visible content in the target document.

[0180] For example, the display unit 403 may be specifically used to hide hidden content in the target document, obtain the document to be displayed, and display the display document.

[0181] Optionally, the first document display device may further include a setting unit 404, such as Fig.12 As shown, the specific details can be as follows:

[0182] The setting unit 404 is used to create a basic document and set the document permission of the basic document to obtain the document permission setting information of the basic document. The basic document is used to generate the target document.

[0183] For example, the setting unit can be specifically used to display a document creation page, which includes a document content input control and a document permission setting control, receives document content input through the document content input control, obtains a basic document, sets document permissions for the basic document in response to a setting operation of the document permission setting control, obtains document permission setting information of the basic document, and sends the basic document and the document permission setting information to the server.

[0184] Optionally, the first document display device may further include a processing unit 405, such as Fig.13 As shown, the specific details can be as follows:

[0185] The processing unit 405 is used to process the visible content of the target document.

[0186] For example, the processing unit 405 may be specifically configured to display a content processing page of the visible content when the current user triggers the visible content. The content processing page includes a content processing control, and processes the visible content in response to a processing operation of the content processing control.

[0187] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

[0188] As can be seen from the above, in this embodiment, the first acquisition unit 401 acquires the target document corresponding to the identity identifier of the current user, and the target document is a shared document that can provide at least two authorized users with simultaneous or non-simultaneous operations. The identification unit 402 identifies the visible content and hidden content corresponding to the current user in the target document, and the visible content is the content corresponding to the content visibility permission of the role of the current user in the target organization. Then, the display unit 403 displays the visible content in the target document; because the target document in this scheme displays the visible content in the document during the display process, and the visible content is the content corresponding to the content visibility permission of the role of the current user in the target organization, the visible content in the target document for users corresponding to different roles is different, thereby avoiding the risk of the same content being covered multiple times, and can also ensure that sensitive content is displayed only to authorized users, thereby improving the security of document display.

[0189] In order to better implement the above method, an embodiment of the present invention further provides a document display device (ie, a second document display device), which can be integrated in a server, and the server can be a single server or a server cluster composed of multiple servers.

[0190] For example, Fig.14 As shown, the second document display device may include a second acquisition unit 501, an adjustment unit 502, a screening unit 503 and a setting unit 504, as follows:

[0191] (1) a second acquisition unit 501;

[0192] The second acquisition unit 501 is used to acquire a basic document and document permission setting information corresponding to the basic document, where the basic document includes at least one basic content area.

[0193] The second acquisition unit 501 can be used to directly acquire the basic document and the document permission setting information corresponding to the basic document sent by the first document display device. When the memory of the basic document and the document permission setting information corresponding to the basic document is large or the content is large, the basic document and the document permission setting information corresponding to the basic document can also be acquired indirectly.

[0194] (2) adjustment unit 502;

[0195] The adjustment unit 502 is used to adjust the basic content area according to the document permission setting information to obtain a basic document template.

[0196] For example, the adjustment unit 502 can be specifically used to determine the area type of the basic content area and the content permissions corresponding to the basic content area according to the document permission setting information, adjust the basic content area based on the preset adjustment strategy corresponding to the area type to obtain the adjusted basic document, and lock the basic content area of ​​the adjusted basic document according to the content permissions to obtain a basic document template.

[0197] (3) screening unit 503;

[0198] The screening unit 503 is configured to screen out target content permission setting information corresponding to the identity carried in the document display request from the document permission setting information when receiving the document display request sent by the terminal.

[0199] For example, the screening unit 503 may be specifically configured to, when receiving a document display request sent by a terminal, obtain the identity of the current user in the document display request, and screen out the content permission setting information corresponding to the identity in the document permission setting information.

[0200] (4) Setting unit 504;

[0201] The setting unit 504 is used to set the content permission of the basic document template according to the target content permission setting information, obtain the target document, and send the target document to the terminal so that the terminal can display the target document.

[0202] For example, the setting unit 504 can be specifically used to determine the content authority of the current user to the basic content area of ​​the basic document according to the target content authority setting information. According to the content authority, the basic content area that needs to set the content authority is identified in the basic document template, and the content authority is set for the basic content area according to the content attribute information in the basic content area, so that the target document can be obtained and sent to the terminal so that the terminal can display the target document.

[0203] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

[0204] As can be seen from the above, in this embodiment, after the second acquisition unit 501 acquires the basic document and the document permission setting information corresponding to the basic document, the basic document includes at least one basic content area, the adjustment unit 502 adjusts the basic content area according to the document permission setting information to obtain a basic document template, and when the screening unit 503 receives the document display request sent by the terminal, it screens out the target content permission setting information corresponding to the identity carried in the document display request from the document permission setting information, and the setting unit 504 sets the content permission for the basic document template according to the target content permission setting information to obtain the target document, and sends the target document to the terminal so that the terminal displays the target document; because the scheme screens out the target content permission setting information corresponding to the user's identity in the document permission setting information, and sets the permission for the basic document template according to the target content permission setting information, so that the user can only obtain the target document with the content permission corresponding to the identity, thereby avoiding the risk of the same content being covered multiple times, and can also ensure that sensitive content is only displayed to authorized users, so that the security of document display can be improved.

[0205] The embodiment of the present invention further provides an electronic device, such as Fig.15 As shown, it shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present invention, specifically:

[0206] The electronic device may include components such as a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will appreciate that Fig.15 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0207] The processor 601 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, it executes various functions of the electronic device and processes data, thereby performing overall detection of the electronic device. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.

[0208] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.

[0209] The electronic device also includes a power supply 603 for supplying power to each component. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 603 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0210] The electronic device may further include an input unit 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0211] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 601 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 will run the application programs stored in the memory 602, thereby realizing various functions, as follows:

[0212] Get the target document corresponding to the identity of the current user, where the target document is a shared document that can provide at least two authorized users with simultaneous or non-simultaneous operations, identify the visible content and hidden content corresponding to the current user in the target document, where the visible content is the content corresponding to the content visibility permission of the current user's role in the target organization, and display the visible content in the target document.

[0213] or

[0214] A basic document and document permission setting information corresponding to the basic document are obtained, where the basic document includes at least one basic content area, and the basic content area is adjusted according to the document permission setting information to obtain a basic document template. When a document display request sent by a terminal is received, target content permission setting information corresponding to the identity identifier carried in the document display request is filtered out from the document permission setting information, and content permission is set for the basic document template according to the target content permission setting information to obtain a target document, and the target document is sent to the terminal so that the terminal can display the target document.

[0215] The specific implementation of the above operations can be found in the previous embodiments and will not be described in detail here.

[0216] From the above, it can be seen that the embodiment of the present invention obtains the target document corresponding to the identity identifier of the current user, and the target document is a shared document that can provide at least two authorized users with simultaneous or non-simultaneous operations. The visible content and hidden content corresponding to the current user are identified in the target document, and the visible content is the content corresponding to the content visibility permission of the role of the current user in the target organization. Then, the visible content in the target document is displayed. Since the target document in this scheme includes visible content and hidden content in the displayed document during the display process, and the visible content is the content corresponding to the content visibility permission of the role of the current user in the target organization, the visible content in the target document for users corresponding to different roles is different, thereby avoiding the risk of the same content being overwritten multiple times, and can also ensure that sensitive content is only displayed to authorized users. Therefore, the security of document display can be improved.

[0217] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0218] To this end, an embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the document display generation methods provided in the embodiments of the present invention. For example, the instructions can execute the following steps:

[0219] Get the target document corresponding to the identity of the current user, where the target document is a shared document that can provide at least two authorized users with simultaneous or non-simultaneous operations, identify the visible content and hidden content corresponding to the current user in the target document, where the visible content is the content corresponding to the content visibility permission of the current user's role in the target organization, and display the visible content in the target document.

[0220] or

[0221] A basic document and document permission setting information corresponding to the basic document are obtained, where the basic document includes at least one basic content area, and the basic content area is adjusted according to the document permission setting information to obtain a basic document template. When a document display request sent by a terminal is received, target content permission setting information corresponding to the identity identifier carried in the document display request is filtered out from the document permission setting information, and content permission is set for the basic document template according to the target content permission setting information to obtain a target document, and the target document is sent to the terminal so that the terminal can display the target document.

[0222] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0223] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0224] Since the instructions stored in the computer-readable storage medium can execute the steps in any document display method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any document display method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0225] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in various optional implementations of the above-mentioned document display aspect or document processing aspect.

[0226] The document display method, device and computer-readable storage medium provided in the embodiments of the present invention are introduced in detail above. The principles and implementation methods of the present invention are explained in this article using specific examples. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A document display method, characterized in that: Applied to terminals, including: Sending a document display request generated by the current user to the server, wherein the document display request includes the identity identifier of the current user and the document identifier of the target document to be displayed; Acquire a target document corresponding to the identity identifier of the current user from the server, wherein the target document is a shared document that can be operated by at least two authorized users simultaneously or non-simultaneously; Acquire content attribute information of the target document; According to the content attribute information, visible content and hidden content are identified in the target document, wherein the visible content is content corresponding to the content visibility permission of the role of the current user in the target organization; Hiding the hidden content in the target document to obtain a document to be displayed; Displaying the document to be displayed; When the current user triggers the visible content, querying in the content attribute information whether the current user has processing authority for the visible content, and if the current user has processing authority, displaying a content processing page for the visible content, wherein the content processing page includes a content processing control; In response to the processing operation of the content processing control, the visible content is processed.

2. The document display method according to claim 1, characterized in that: The target document includes at least one target content area, and identifying the visible content and the hidden content in the target document according to the content attribute information includes: Determine, according to the content attribute information, first area position information of a content visible area in the target document, the content visible area being an area where the visible content is displayed; Based on the first area position information, the content visible area is screened out in the target content area, and the content of the content visible area is used as visible content; According to the visible content, content to be hidden is determined in the target document to obtain the hidden content.

3. The document display method according to claim 2, characterized in that: The step of hiding the hidden content in the target document to obtain a document to be displayed includes: Acquire the location information of the hidden content in the second area of ​​the target document; According to the position of the second area, a content invisible area corresponding to the hidden content is screened out in the target content area; The invisible content area is hidden to obtain the document to be displayed.

4. The document display method according to claim 1, characterized in that: The processing of the visible content in response to the processing operation of the content processing control includes: When the content processing control is an editing control, receiving editing information of the visible content by the current user through the editing control, and processing the visible content according to the editing information; When the content processing control is an extended editing control, extended editing information of the visible content and the area corresponding to the visible content by the current user through the extended editing control is received, and the visible content and the area corresponding to the visible content are processed according to the extended editing information.

5. The document display method according to claim 1, characterized in that: Before obtaining the target document corresponding to the identity identifier of the current user, the method includes: Display a document creation page, wherein the document creation page includes a document content input control and a document permission setting control; Receiving document content input through the document content input control to obtain a basic document; In response to the setting operation of the document permission setting control, the document permission of the basic document is set, the document permission setting information of the basic document is obtained, and the basic document and the document permission setting information are sent to the server.

6. The document display method according to claim 5, characterized in that: The basic document includes at least one basic content area, and in response to the setting operation of the document permission setting control, setting the document permission of the basic document to obtain the document permission setting information of the basic document includes: In response to a setting operation of the document permission setting control, determining a target basic content area in the basic content area for which the user needs to set document permissions; Displaying a document setting page corresponding to the target basic content area, the document setting page including a user authority setting control and a content authority setting control; In response to a setting operation of the user authority setting control, determining user information corresponding to the target basic content area; In response to the content permission setting control, content permission information corresponding to each user in the user information is determined, and the user information and content permission information are used as document permission setting information of the basic document.

7. The document display method according to claim 5, characterized in that: After setting the document permission of the basic document and obtaining the document permission setting information of the basic document, the method further includes: When receiving a document permission application request, obtaining the user identity identifier of the user applying for the document permission application request; Filtering the target content permission information corresponding to the applicant user identity from the preset content permission information; The document permission setting information is updated according to the applicant user identity and the target content permission information, so that the user corresponding to the applicant user identity has the permission corresponding to the target content permission information on the content in the basic document.

8. A document display method, characterized in that: Applicable to servers, including: Acquire a basic document and document permission setting information corresponding to the basic document, wherein the basic document includes at least one basic content area; According to the document permission setting information, the basic content area is adjusted to obtain a basic document template; When receiving a document display request sent by a terminal, filtering out the target content permission setting information corresponding to the identity identifier carried in the document display request from the document permission setting information; According to the target content permission setting information, content permission is set for the basic document template to obtain a target document, and the target document is sent to the terminal so that the terminal can display the target document. The terminal is used to execute the document display method according to any one of claims 1 to 7.

9. The document display method according to claim 8, characterized in that: The step of adjusting the basic content area according to the document permission setting information to obtain a basic document template includes: Determining, according to the document permission setting information, the area type of the basic content area and the content permission corresponding to the basic content area; Based on a preset adjustment strategy corresponding to the area type, the basic content area is adjusted to obtain an adjusted basic document; According to the content authority, the basic content area of ​​the adjusted basic document is locked to obtain the basic document template.

10. A document display device, characterized in that: include: A first acquisition unit is configured to send a document display request generated by a current user to a server, wherein the document display request includes an identity identifier of the current user and a document identifier of a target document to be displayed, and acquire a target document corresponding to the identity identifier of the current user from the server, wherein the target document is a shared document that can be operated by at least two authorized users simultaneously or non-simultaneously; The identification unit may be specifically used to obtain content attribute information of the target document, and identify visible content and hidden content in the target document according to the content attribute information, wherein the visible content is content corresponding to the content visibility permission of the role of the current user in the target organization; A display unit, used for hiding the hidden content in the target document, obtaining a document to be displayed, and displaying the document to be displayed; A processing unit is used to query whether the current user has processing authority for the visible content in the content attribute information when the current user triggers the visible content, and when the current user has processing authority, display a content processing page for the visible content, wherein the content processing page includes a content processing control, and the visible content is processed in response to a processing operation of the content processing control.

11. A document display device, characterized in that: include: A second acquisition unit, configured to acquire a basic document and document permission setting information corresponding to the basic document, wherein the basic document includes at least one basic content area; An adjustment unit, configured to adjust the basic content area according to the document permission setting information to obtain a basic document template; A screening unit, configured to, when receiving a document display request sent by a terminal, screen the document permission setting information to find the target content permission setting information corresponding to the identity identifier carried in the document display request; a setting unit, configured to set content permissions for the basic document template according to the target content permission setting information, obtain a target document, and send the target document to the terminal so that the terminal can display the target document; The terminal is used to execute the document display method according to any one of claims 1 to 7.

12. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores an application program, and the processor is used to run the application program in the memory to execute the steps in the document display method according to any one of claims 1 to 9.

13. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the document display method described in any one of claims 1 to 9 are implemented.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the document display method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Concealment of content in a shared document

    US20170364499A1