CN114741667A - Document display method and device and computer readable storage medium - Google Patents

Document display method and device and computer readable storage medium Download PDF

Info

Publication number
CN114741667A
CN114741667A CN202110018228.3A CN202110018228A CN114741667A CN 114741667 A CN114741667 A CN 114741667A CN 202110018228 A CN202110018228 A CN 202110018228A CN 114741667 A CN114741667 A CN 114741667A
Authority
CN
China
Prior art keywords
document
content
target
basic
authority
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110018228.3A
Other languages
Chinese (zh)
Inventor
赵娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110018228.3A priority Critical patent/CN114741667A/en
Publication of CN114741667A publication Critical patent/CN114741667A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/84Protecting input, output or interconnection devices output devices, e.g. displays or monitors

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Document Processing Apparatus (AREA)
  • Storage Device Security (AREA)

Abstract

The embodiment of the invention discloses a document display method, a document display device and a computer readable storage medium; the method comprises the steps of obtaining a target document corresponding to the identity identification of a current user, wherein the target document is a shared document which can provide simultaneous or non-simultaneous operation of at least two authorized users, identifying visible content and hidden content corresponding to the current user in the target document, wherein the visible content is content corresponding to the content visible authority of the role of the current user in a target organization, and then displaying the visible content in the target document.

Description

Document display method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a document display method and device and a computer readable storage medium.
Background
In recent years, with the rapid development of internet technology, online office work has gradually appeared. In online offices, certain online documents may be presented to other users so that the other users may view or edit the documents at any time. The existing document display mode is to directly display the content of the document to a user.
In the process of research and practice of the prior art, the inventor of the present invention finds that directly displaying the content of a document to a user, if a plurality of users edit the same content of the document together, there is a risk that the content is covered for a plurality of times, and if some sensitive information exists in the content, there is a risk that the sensitive information is divulged in the displaying process, so that the security of document displaying is greatly reduced.
Disclosure of Invention
The embodiment of the invention provides a document display method, a document display device and a computer readable storage medium, which can improve the security of document display.
A document presentation method comprising:
acquiring a target document corresponding to the identity of the current user, wherein the target document is a shared document which can provide simultaneous or non-simultaneous operation of at least two users with permission;
identifying visible content and hidden content corresponding to the current user in the target document, wherein the visible content is content corresponding to content visible authority of a role of the current user in a target organization; and displaying the visible content in the target document.
Optionally, an embodiment of the present invention may further provide another document display method, including:
acquiring a basic document and document authority setting information corresponding to the basic document, wherein the basic document comprises at least one basic content area;
adjusting the basic content area according to the document authority setting information to obtain a basic document template;
when a document display request sent by a terminal is received, screening target content permission setting information corresponding to an identity carried in the document display request from the document permission setting information;
and setting the content authority of the basic document template according to the target content authority setting information to obtain a target document, and sending the target document to the terminal so that the terminal can display the target document.
Correspondingly, an embodiment of the present invention provides a document display apparatus, including:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a target document corresponding to an identity of a current user, and the target document is a shared document which can provide simultaneous or non-simultaneous operation of at least two authorized users;
the identification unit may be specifically configured to identify, in the target document, visible content and hidden content corresponding to the current user, where the visible content is content corresponding to a content visible right of a role of the current user in a target organization;
and the display unit is used for displaying the visible content in the target document.
Optionally, an embodiment of the present invention may further provide another document displaying apparatus, including:
a second acquisition unit configured to acquire a base document and document right setting information corresponding to the base document, the base document including at least one base content area;
the adjusting unit is used for adjusting the basic content area according to the document authority setting information to obtain a basic document template;
the screening unit is used for screening 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;
and the setting unit is used for setting the content authority of the basic document template according to the target content authority setting information to obtain a target document and sending the target document to the terminal so that the terminal can display the target document.
Optionally, in some embodiments, the identification unit may be specifically configured to obtain content attribute information of the target document; and identifying the visible content and the hidden content in the target document according to the content attribute information.
Optionally, in some embodiments, the presentation unit may be specifically configured to determine, according to the content attribute information, first area position information of a content visible area in the target document, where the content visible area is an area in which the visible content is presented; and screening the content visible region in the content region based on the first region position information, taking the content of the content visible region as the visible content, and determining the content to be hidden in the target document according to the visible content to obtain the hidden content.
Optionally, in some embodiments, the presentation unit may be specifically configured to hide the hidden content in the target document to obtain a document to be presented; and displaying the document to be displayed.
Optionally, in some embodiments, the presentation unit may be specifically configured to acquire position information of the hidden content in a second area of the target document; screening out a content invisible area corresponding to the hidden content from the content area according to the second area position; and hiding the invisible content area to obtain the document to be displayed.
Optionally, in some embodiments, the document presentation apparatus may further include a processing unit, where the processing unit is specifically configured to display a content processing page of the visible content when the visible content is triggered by the current user, where the content processing page includes a content processing control; and responding to the processing operation of the content processing control, and processing the visible content.
Optionally, in some embodiments, the processing unit may be specifically configured to receive, when the content processing control is an editing control, editing information of the current user on the visible content through the editing control, and process the visible content according to the editing information; and when the content processing control is an extended editing control, receiving extended editing information of the visible content and a region corresponding to the visible content, which is obtained by the current user through the extended editing control, and processing the visible content and the region corresponding to the visible content according to the extended editing information.
Optionally, in some embodiments, the document presentation apparatus may further include a permission setting unit, where the permission setting unit may be specifically configured to display a document creation page, and the document creation page includes a document content input control and a document permission setting control; receiving the document content input through the document content input control to obtain a basic document; setting the document authority of the basic document in response to the setting operation of the document authority setting control to obtain document authority setting information of the basic document, and sending the basic document and the document authority setting information to a server; the obtaining of the target document corresponding to the identity of the current user includes: and acquiring a target document corresponding to the identity of the current user from the server.
Optionally, in some embodiments, the authority setting unit may be specifically configured to, in response to a setting operation of the document authority setting control, determine, in the basic content area, a target basic content area where a user needs to perform document authority setting; displaying a document setting page corresponding to the target basic content area, wherein the document setting page comprises a user authority setting control and a content authority setting control; responding to the setting operation of the user permission setting control, and determining user information corresponding to the target basic content area; and responding to the content authority setting control, determining content authority information corresponding to each user in the user information, and taking the user information and the content authority information as document authority setting information of the basic document.
Optionally, in some embodiments, the authority setting unit may be specifically configured to, when a document authority application request is received, obtain an application user identity of a user in the document authority application request; screening target content authority information corresponding to the identity of the application user from preset content authority information; and updating the document authority setting information according to the application user identity identification and the target content authority information, so that the user corresponding to the application user identity identification has the authority corresponding to the target content authority information for the content in the basic document.
Optionally, in some embodiments, the adjusting unit may be specifically configured to determine, according to the document permission setting information, an area type of the basic content area and a content permission corresponding to the basic content area; adjusting the basic content area based on a preset adjusting strategy corresponding to the area type to obtain an adjusted basic document; and locking the basic content area of the adjusted basic document according to the content authority to obtain the basic document template.
In addition, the embodiment of the invention also provides electronic equipment which comprises a processor and a memory, wherein the memory stores an application program, and the processor is used for operating the application program in the memory to realize the document display method provided by the embodiment of the invention.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where multiple instructions are stored in the computer-readable storage medium, and the instructions are suitable for being loaded by a processor to perform steps in any one of the document presentation methods provided in the embodiment of the present invention.
The method comprises the steps of obtaining a target document corresponding to an identity identifier of a current user, wherein the target document is a shared document which can provide simultaneous or non-simultaneous operation of at least two authorized users, identifying visible content and hidden content corresponding to the current user in the target document, wherein the visible content is content corresponding to the content visible authority of a role of the current user in a target organization, and displaying the visible content in the target document; in the scheme, in the process of displaying the target document, the displayed visible content in the document is the content corresponding to the content visible authority of the role of the current user in the target organization, and the visible contents of the users corresponding to different roles in the target document are different, so that the risk that the same content is covered for multiple times is avoided, sensitive content can be guaranteed to be displayed only for the users with the authority, and the safety of document display can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic view of a document display method according to an embodiment of the present invention;
FIG. 2 is an interaction diagram of a document presentation method provided by an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a document presentation method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a display document set page provided by an embodiment of the present invention;
FIG. 5 is a diagram illustrating hiding hidden content according to an embodiment of the present invention;
FIG. 6 is a diagram of visible content corresponding to different roles provided by an embodiment of the invention;
FIG. 7 is a diagram illustrating processing rights of a target document according to an embodiment of the present invention;
FIG. 8 is another schematic flow chart of document presentation provided by an embodiment of the present invention;
FIG. 9 is a flowchart illustrating processing of a base document template according to an embodiment of the present invention;
FIG. 10 is a third flowchart of a document presentation provided by an embodiment of the invention;
FIG. 11 is a schematic structural diagram of a first document presenting apparatus according to an embodiment of the present invention;
FIG. 12 is another schematic structural diagram of a first document displaying apparatus according to an embodiment of the present invention;
FIG. 13 is a schematic diagram of a third structure of the first document displaying apparatus according to the embodiment of the present invention;
FIG. 14 is a schematic structural diagram of a second document presenting apparatus according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a document display method, a document display device and a computer-readable storage medium. The document display device may be integrated in an electronic device, and the electronic device may be a server or a terminal.
Specifically, the embodiment of the present invention provides a document presentation apparatus (may be referred to as a first document presentation apparatus for distinction) suitable for a first electronic device, and a document presentation apparatus (may be referred to as a second document presentation apparatus for distinction) suitable for a second electronic device. The first electronic device may be a terminal, and the terminal may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like, but is not limited thereto. The second electronic device may be a Network-side device such as a server, the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Network acceleration service (CDN), and a big data and artificial intelligence platform. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
In the embodiment of the present invention, a first electronic device is taken as a terminal, and a second electronic device is taken as a server, for example, referring to fig. 1, a document presentation system provided in the embodiment of the present invention includes a terminal 10 and a server 20, where the terminal 10 and the server 20 are connected through a network, for example, a wired or wireless network connection.
The terminal 10 may obtain the target document from the server 20, and specifically may be as follows:
the method comprises the steps of obtaining a target document corresponding to the identity identification of a current user, wherein the target document is a shared document which can provide simultaneous or non-simultaneous operation of at least two users with permission, identifying visible content and hidden content corresponding to the current user in the target document, and displaying the visible content in the target document, wherein the visible content is the content corresponding to the content visible permission of the role of the current user in a target organization.
The document may be a shared document that can provide simultaneous or non-simultaneous operations for users with at least two permissions, and may also be understood as an online document, where the document may include various viewable or editable document data such as a text document (word), a form document (excel), and a text-to-text document (PPT).
The visible content is content that can be seen in the process of displaying the target document, and the content may be content corresponding to the content visible right of the role of the current user in the target organization, for example, taking the target organization as a company organization and the role of the current user as a financial staff, the visible content may be content that can be viewed or edited by the content visible right owned by the financial staff in the target document. The content opposite to the hidden content can be hidden content, and the hidden content can also be understood as content which is not visible in the target document during the display process, and the current user cannot see the content in the target document.
The server 20 is configured to receive a document display request sent by the terminal, and send a target document to the terminal 10 according to the document display request, which may specifically be as follows:
the method comprises the steps of obtaining a basic document and document permission setting information, then adjusting the basic document according to the document permission setting information to obtain an adjusted document, screening content permission setting information corresponding to an identity carried in a document display request from the document permission setting information when the document display request sent by a terminal is received, then updating the content permission of a content area of the adjusted document according to the content setting information to obtain a target document, and sending the target document to the terminal.
When the terminal and the server interact with each other, the server may issue global data of a locally stored basic document when the role of the current user is an administrator, and may issue a target document corresponding to the identity of the current user when the role of the current user is a non-administrator, where the target document may have visible content and hidden content, and a specific interaction diagram may be as shown in fig. 2.
The following are detailed descriptions. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The present embodiment will be described from the perspective of a document presentation apparatus (i.e., a first document presentation apparatus) that may be specifically integrated in a terminal; the terminal may include a tablet Computer, a notebook Computer, a Personal Computer (PC), a wearable device, a virtual reality device, or other intelligent devices capable of displaying documents.
A document presentation method comprising:
the method comprises the steps of obtaining a target document corresponding to the identity identification of a current user, wherein the target document is a shared document which can provide simultaneous or non-simultaneous operation of at least two users with permission, identifying visible content and hidden content corresponding to the current user in the target document, and displaying the visible content in the target document, wherein the visible content is the content corresponding to the content visible permission of the role of the current user in a target organization.
As shown in fig. 3, the specific flow of the document presentation method is as follows:
101. and acquiring a target document corresponding to the identity of the current user.
The target document is a shared document which can provide simultaneous or non-simultaneous operation of at least two authorized users, and can also be understood as an online document which can be viewed or edited by multiple people.
For example, a target document may be obtained from a server, for example, a current user triggers generation of a document display request, an identity of the current user and a document identity of the target document to be displayed are added to the document display request, the document display request to which the identity and the document identity are added is sent to a second document display device, the second document display device returns the target document corresponding to the identity after receiving the document display request, and the first document display device may directly receive the target document returned by the second document display device. When the content of the target document is larger or more, the target document may also be received indirectly, for example, the second document presentation device sends the storage address of the target document to the first document presentation device, and the first document presentation device obtains the target document in a memory or a cache of the second document presentation device according to the storage address.
Optionally, before obtaining the target document corresponding to the identity, the document creation user may also create a base document corresponding to the target document, and set the document authority of the base document, so that the document presentation method further includes:
displaying a document creation page, wherein the document creation page comprises a document input control and a document authority setting control, receiving document content input through the document content input control to obtain a basic document, setting the document authority of the basic document in response to the setting operation of the document authority setting control to obtain document authority setting information of the basic document, and sending the basic document and the document authority setting information to a server, and the document creation page specifically comprises the following steps:
s1, displaying the document creating page.
The document creating page is a page for creating a document, a user can create an online document on the document creating page, and the document creating page comprises a content input control and a document authority setting control.
For example, a user may operate on a user operation page of the document client to trigger display of a document creation page of the document client, for example, a user may operate on a document search page to trigger display of a document creation page, for example, a document search page may trigger a document creation control to display a document creation page.
The document searching page can provide a page of document searching content for a user, the user can perform searching operation on the document searching page to search for a required document, and if the required document is not found on the searching page, the document creating control can be triggered to create the required document.
In the present embodiment, the representation form of the control is various, such as an input box, an icon, a button, and the like.
And S2, receiving the document content input through the document content input control to obtain a basic document.
For example, when the user performs an input operation 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, so as to obtain the basic document, for example, when the type of the basic document is a form document, the document creation page may include a blank form template, and the document content is filled into a position corresponding to the blank form template, so as to obtain the basic document created by the user, when the type of the basic document is a text document, the document creation page may include a blank text template, and the document content is added to a position corresponding to the blank text template, so as to obtain the basic document created by the user, when the type of the basic document is a teletext document, the document creation page may include a teletext template of the control, the method for creating the basic document is the same as the three types of documents for other types of documents, and the document contents are not repeated.
S3, responding to the setting operation of the document authority setting control, setting the document authority of the basic document to obtain the document authority setting information of the basic document, and sending the basic document and the document authority setting information to the server.
The basic document includes at least one basic content area, and the basic content area may be understood as a content editing area of a minimum unit in the basic document.
Wherein, in response to the condition or state indicating that the executed operation depends on, when the dependent condition or state is satisfied, the executed operation or operations may be in real time or may have a set delay; there is no restriction on the order of execution of the operations performed unless otherwise specified.
For example, in response to a setting operation of a document permission setting control, a target basic content area for determining that a user needs to perform document permission setting is set in the basic content area, a document setting page corresponding to the target basic content area is displayed, the document setting page includes a user permission setting control and a content permission setting control, in response to the 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 a basic document, and the basic document and the document permission setting information are sent to a server, which specifically includes:
(1) and responding to the setting operation of the document permission setting control, and outputting a target basic content area which determines that the user needs to set the document permission in the basic content area.
For example, when a user selects at least one basic content area needing to be subjected to document authority setting in a basic document and triggers a document authority setting control, a target basic content area needing to be subjected to document authority setting by the user is determined in the basic content area in response to setting operation of the document authority setting control, for example, taking the basic content area as a cell, when the user selects at least one cell needing to be subjected to document authority setting in the basic document and triggers the document authority setting control to perform setting operation by clicking a right mouse button or in other manners, a cell selected by the user can be determined in the cell of the basic document in response to setting operation of the document authority setting control, and a target cell is obtained.
(2) And displaying a document setting page corresponding to the target basic content area.
The document setting page is a page for a user to set document authority of document contents of a target basic area, and comprises a user authority setting control and a content authority setting control, wherein the user authority setting control is used for setting authority of the user to the target basic area, the content authority setting control is used for setting authority of the user with the authority to the document contents of the target basic area, and the document setting page can also be understood as setting attributes of the user to the document contents of the target basic area, and the attributes can comprise invisible, only viewing, editable, extensible editing and the like.
For example, when the user selects the target basic area and triggers the document authority setting control, and the first document presentation device determines the target basic area selected by the user in the basic document, the document setting page corresponding to the target basic content area may be displayed, and the document setting page may be displayed at any position near the target basic content area, for example, taking the basic document as a table document, a specific process of displaying the document setting page may be as shown in fig. 4.
(3) And determining user information corresponding to the target basic content area in response to the setting operation of the user permission setting control.
The user information may be information of a user having a visible right and an invisible right to the content of the target base content area, and the information may include information such as an identity of the user, an effective right time of the visible right or the invisible right, and/or a terminal identifier bound to the identity of the user. The user information may also include user level information of users having visible rights and invisible rights to the content of the target basic content area, where the user level information may be set to correspond to user levels, such as a primary user, a secondary user, a tertiary user, and the like, and then a level tag is added to the identity of the user having visible rights or invisible rights, so that the users of the same level may view the content of the target basic content area of the same area.
For example, in response to the setting operation of the user permission setting control, a user selection page is displayed, the user selection page may include a list of all users or a user level list of the target organization, in response to the user or the user level selected by the user in the user list, user information corresponding to the target base area is obtained, for example, when the user selection page includes the user list of the target organization, the user selects an identity of a user having a specific permission on the user list, so that user information of the user having the specific permission for the content of the target base area may be obtained, when the user selection page includes the user level list of the target organization, the user selects a user level having the specific permission on the user level list, in response to the selection operation of the user on the user level list, the level user selection page may be displayed, the hierarchical user selection page includes all or part of a candidate user list of a target organization, and a user selects a user corresponding to a specific user hierarchy in the candidate user list, so that user information corresponding to a target basic content area can be obtained.
(4) And responding to the content authority setting control, determining content authority information corresponding to each user in the user information, taking the user information and the content authority information as document authority setting information of the basic document, and sending the basic document and the document authority setting information to the server.
For example, in response to the content right setting control, a content right setting page is displayed, where the content right setting page includes a content right list corresponding to users or user levels with specific rights in the user information, and the user selects content rights of each user or user level in the user information in the content right list to determine content right information corresponding to each user in the user information, and the content rights in the content right list may include invisible, view-only, editable, extensible editing, sharable, and the like. For example, when the user selects the content right of the user a in the content right list to be invisible, it indicates that the user a is invisible for the content in the target basic content area, and when the user selects the content right of the first-level user in the content right list to be only viewed, it indicates that the user with the level tag being the first-level only views the content in the target basic content area, and cannot perform editing and extended editing, and after the user selects all the users or the content rights of the user level in the content right list, it may determine the content right information corresponding to each user with a specific right. And taking the user information and the content authority information as document authority setting information of the basic document, and sending the basic document and the document authority setting information to a server. For example, the information may be sent to the server directly or indirectly, for example, the storage address of the base document and the document right setting information is sent to the server, so that the server obtains the base document and the document right setting information in the memory or the cache of the first document presentation device according to the storage address.
Optionally, after setting the document right of the basic document to obtain the document right setting information of the basic document, the other users may further continue to apply for the right of the basic document, and therefore, the document display method further includes:
when a document authority application request is received, acquiring an application user identity of a user in the document authority application request, screening target content authority information corresponding to the application user identity from preset content authority information, and updating document authority setting information according to the application user identity and the target content authority information, so that the user corresponding to the application user identity has the authority corresponding to the target content authority information on the content in the basic document.
For example, when a new person or a user without the authority of the base document exists in the target organization and needs to apply for the authority of the base document, the user may trigger a document authority application request for generating the base document, add an application user identifier of the user to the document authority application request, send the document authority application to the first document presentation device or the second document presentation device, and if the document authority application request is sent to the second document presentation device, the second document presentation device may forward the document authority application request to the first document presentation device. When the first document display device receives the document authority application request, the identity of the application user of the user is obtained in the document authority application request, and target content authority information corresponding to the identity of the application user is screened out from preset content authority information. Updating the document authority setting information according to the application user identity and the target content authority information, so that the user corresponding to the application user identity has the authority corresponding to the target content authority information for the content in the basic document, for example, adding the application user identity to the user information in the document authority setting information, and adding the target content authority information to the content authority information corresponding to the user information, so that the user corresponding to the application user identity has specific authority for the content in the target basic content area, for example, adding the content authority information corresponding to the user a and the user a to the document authority setting information, so that the user a has editable authority for the content in the basic content area B in the basic document And (4) limiting.
102. Visible content and hidden content corresponding to the current user are identified in the target document.
The target document comprises visible content and hidden content, and the visible content is content corresponding to the content visible authority of the role of the current user in the target organization.
For example, content attribute information of the target document may be obtained, and visible content and hidden content may be identified in the target document according to the content attribute information, which may specifically be as follows:
(1) and acquiring the content attribute information of the target document.
The document attribute information may be information for prompting the current user of the content having the content visible right in the target document.
For example, the content attribute information of the target document may be directly obtained from the server, for example, a content attribute information obtaining request is sent to the server, and the content attribute information returned by the server according to the content attribute obtaining request is received. The content attribute information of the target document may also be obtained from the target document, for example, the document attribute information in the target document is obtained, and the content attribute information is screened from the document attribute information.
(2) Visible content and hidden content are identified in the target document according to the content attribute information.
The target document may further include at least one target content area, and taking the target document as a table as an example, the target content area may be a cell in the table document.
For example, according to the content attribute information, first region position information of a content visible region in the target document is determined, where the content visible region is a region in which visible content is displayed, for example, the position information of the visible content is identified in the content attribute information, and the first region position information of the first content visible region is obtained. And screening out a content visible area in the content area based on the first area position information, and taking the content in the content visible area as visible content.
According to the visible content, determining the content to be hidden in the target document to obtain the hidden content, for example, determining that the content except the visible content in the target document can be the content to be hidden, and taking the content to be hidden as the hidden content.
103. And displaying the visible content in the target document.
For example, hiding the hidden content in the target document to obtain a document to be displayed, for example, obtaining position information of the content to be hidden in a second region of the target document, screening out a content invisible region corresponding to the hidden content in the content region according to the position information of the second region, and hiding the content invisible region to obtain the document to be displayed, for example, adding a hidden mask to the content invisible region, where 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, and performing a blurring process on the content invisible region to make the hidden content invisible, so as to hide the hidden content, thereby obtaining the document to be displayed, where a specific process may be as shown in fig. 5, where the document to be displayed includes the visible content and the hidden content, but the hidden content is invisible. The document to be displayed is displayed, for example, the document to be displayed may be directly displayed at the document client, a document display page may also be generated, and the document to be displayed is added to the document display page.
The visible content in the document to be displayed is related to the identity of the current user, the current user has different roles and different visible contents in the current organization, taking the basic document as an revenue statistical form as an example, the visible contents of the administrator perspective, the financial perspective and the business perspective are different, and the administrator perspective can acquire the global information of the basic document, that is, the contents of the basic document are all visible contents, but the visible contents can only include the contents of the content visible right corresponding to the role in the financial perspective and the business perspective, which is specifically as shown in fig. 6.
It should be noted that, when the target document is displayed, not all users with specific rights include visible content and hidden content in the target document, and when the target document is displayed, the target document may only include visible content or hidden content. The visible content and the hidden content are displayed according to the content corresponding to the content visible authority of the role of the current user in the target organization, when the role of the user is an administrator and the content visible authority of the administrator is all the content of the basic document, only the visible content exists in the target document displayed by the user at this time, and the hidden content does not exist. When the role of the user does not have content visible right for the target document, the target document displayed by the user only has hidden content and does not have visible content.
Optionally, after the visible content of the target document is displayed, the user may further process the visible content of the target document, and the processing manner may be editing or extended editing, so that the document display method further includes:
when the current user triggers the visible content, displaying a content processing page of the visible content, where the content processing page includes a content processing control, and processing the visible content in response to a processing operation of the content processing control, where the content processing page may specifically be as follows:
(1) and when the current user triggers the visible content, displaying a content processing page of the visible content.
For example, when the current user triggers the visible content, a content processing page of the visible content is displayed according to the content attribute information, for example, whether the current user has a processing right for the visible content may be queried in the content attribute information, and when the current user has the processing right, the content processing page of the visible content is displayed, and the content processing page may include a content processing control, and the type of the content processing control corresponds to the processing right. The target content area corresponding to the visible content at this time is in a processable state. The processing right may include an editing right and an extended editing right, where the editing right is capable of editing the visible content, and the extended editing right is capable of editing the visible content and the region corresponding to the visible content, for example, taking the target document as a table document, and the extended editing right is an editing operation capable of inserting, deleting, or merging cells in the visible region of the table document. Thus, there may be some visible content in the target document that has processing rights and the remaining visible content that has no processing rights, only viewing rights, as shown in FIG. 7. When the user does not have the processing right for the visible content, the user triggers the visible area and does not display a content processing page, and at the moment, the target content area corresponding to the visible content is in a locked state.
(2) And processing the visible content in response to the processing operation of the content processing control.
For example, when the content processing control is an editing control, receiving editing information of the current user on the visible content through the editing control, for example, the user edits the visible content through the editing control, so as to receive editing information generated by editing operation of the user, processing the visible content according to the editing information, for example, the user modifies the visible content, receives modification information input by the user, and modifies the visible content according to the modification information. When the content processing control is an extended editing control, receiving extended editing information of a current user on visible content and a region corresponding to the visible content through the extended editing control, and processing the visible content and the region corresponding to the visible content according to the extended editing information, for example, taking a target document as a table document as an example, the user can edit cells corresponding to the visible content and the visible content through the extended editing control, such as performing operations of inserting/column, deleting and merging, thereby inputting the extended editing information, performing extended editing on the cells of the visible content and the visible content according to the extended editing operation information, specifically, inserting a column of CD columns in columns C and D of the user extended editing region, after the editing is completed in the region, nesting original $ C- $ D again, so that content permission information of other non-current users can be compatible, thereby completing the extended editing of the visible content.
Optionally, the processed target document obtained after processing the visible content may be returned to the second document presentation device, so that the second document presentation device updates the basic document template based on the processed target document, so that the next user obtains the target document, and performs presentation and processing on the target document.
The current user can perform a common editing operation, for example, editing the visible content, or perform an extended editing operation, for example, editing the visible content and the region of the visible content, by extending the editing control.
As can be seen from the above, in the embodiment of the present invention, a target document corresponding to an identity of a current user is obtained, where the target document is a shared document that can provide simultaneous or non-simultaneous operations for at least two authorized users, and then, a visible content and a hidden content corresponding to the current user are identified in the target document, where the visible content is a content corresponding to a content visible authority of a role of the current user in a target organization, and a visible content in the target document is displayed, where the visible content is a content corresponding to a content visible authority of a role of the current user in the target organization, and the visible contents of users corresponding to different roles are different in the target document in the display process of the target document in the scheme, so as to avoid a risk that the same content is covered for multiple times, and further ensure that a sensitive content is only displayed for authorized users, therefore, the safety of document display can be improved.
The embodiment will be described from the perspective of a second document presentation apparatus, which may be specifically integrated in an electronic device, and the electronic device may be a server or other devices; the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, Network acceleration service (CDN), big data and an artificial intelligence platform.
A document presentation method comprising:
the method comprises the steps of obtaining a basic document and document permission setting information corresponding to the basic document, wherein the basic document comprises at least one basic content area, adjusting the basic content area according to the document permission setting information to obtain a basic document template, screening target content permission setting information corresponding to an identity carried in a document display request from the document permission setting information when the document display request sent by a terminal is received, carrying out content permission setting on the basic document template according to the target content permission setting information to obtain a target document, and sending the target document to the terminal so that the terminal can display the target document.
As shown in fig. 8, the transaction information processing method specifically includes the following steps:
201. and acquiring the basic document and document authority setting information corresponding to the basic document.
The basic document includes at least one basic content area, and the basic content area may be one or more cells, taking the basic document as a table document as an example.
For example, the base document sent by the first document presentation device and the document right setting information corresponding to the base document may be directly obtained. When the memory of the basic document and the document authority setting information corresponding to the basic document is large or the content is large, the document authority setting information corresponding to the basic document and the basic document can be indirectly acquired, for example, the first document display device sends the storage address of the basic document and the document authority setting information to the second document display device, and the second document display device acquires the basic document and the document authority setting information corresponding to the basic document in the memory or the cache of the first document display device according to the storage address after receiving the storage address. The basic document and the document right setting information may be acquired in real time or may be acquired periodically.
202. And adjusting the basic content area according to the document authority setting information to obtain a basic document template.
For example, the region type of the base content region and the content right corresponding to the base content region may be determined according to the document right setting information, for example, the content right setting information corresponding to each base content region is extracted from the document right setting information, and the region type of the base content region and the content right corresponding to the base content region are determined according to the content right setting information, for example, taking the base content region as the cell a, if the user a only views the setting of the content right setting information of the cell a, it may be determined that the region type of the cell a may be the only-viewed region, and the content right of the cell is that the user a has only-viewed right to the content in the cell a. Adjusting the basic content area based on a preset adjustment strategy corresponding to the area type to obtain an adjusted basic document, wherein the adjustment of the basic content area can be regarded as secondary segmentation and stripping of the basic content area, for example, when the area type is an invisible area, a viewing-only area or an editing 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 the extended editing area, the extended editing area can be divided and stripped from the basic document, secondary processing is carried out on the extended editing area, a new initial position of the extended editing area is generated and recorded, and a user can conveniently carry out extended editing on the extended editing area. For example, content attribute information corresponding to the content authority is selected from preset content attribute information, and the initial distribution of the content authority of the basic content area can be completed by adding the content attribute information to the basic content area of the adjusted basic document.
203. When a document display request sent by a terminal is received, target content permission setting information corresponding to an identity carried in the document display request is screened from the document permission setting information.
For example, when a document display request sent by a terminal is received, an identity of a current user is obtained in the document display request, content permission setting information corresponding to the identity is screened out from the document permission setting information, for example, user information and content permission setting information of a basic document are extracted from the document permission setting information, whether the identity exists is inquired out from the user information, if so, target content permission setting information corresponding to the identity is screened out from the content permission setting information, and the target content permission setting information includes content permission of the current user in a basic content area of the basic document.
204. And according to the target content authority setting information, performing content authority setting on the basic document template to obtain a target document, and sending the target document to the terminal so as to display the target document by the terminal.
For example, based on the target content right setting information, the content right of the current user to the base content area of the base document can be determined. According to the content authority, a basic content area needing 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, for example, the content attribute information is set, so that the content authority of the basic content area is the content authority corresponding to the current user, and the target document can be obtained.
The target document is sent to the terminal so that the terminal can display the target document, for example, the target document can be directly sent to the terminal so that the terminal can display the target document, when the memory of the target document is large or the number of the target document is large, the target document can be indirectly sent to the terminal, for example, the storage address of the target document is sent to the terminal so that the terminal can obtain the target document in the memory or the cache of the second document display device according to the storage address. The terminal displays the received target document, and if the content authority of the current user to a part of the basic content area of the target document is a processing authority, for example, the content authority is an editing authority and an extended editing authority, the current user can also process the content of the target document.
Wherein, after the terminal displays and processes the target document, the terminal can also return the processed target document to a second document display device, the second document display device backs up the processed target document, updates the basic content area of the basic document template according to the processed target document, recalculates the content authority of the basic content area again to obtain an updated basic document template, when other users send document display requests, sets the content authority of the basic content area of the updated basic document template to obtain the target documents of other users, when the terminal returns the target documents processed by other users, returns to execute the step of backing up the processed document, and updates the updated basic document template again to ensure that the basic document template is always in the latest state processed by the users, the specific process may be as shown in fig. 9.
As can be seen from the above, after the basic document and the document permission setting information corresponding to the basic document are obtained, the basic document includes at least one basic content area, 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 an identity carried in the document display request is screened out from the document permission setting information, content permission setting is performed on 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; according to the scheme, the target content authority setting information corresponding to the identity of the user is screened out from the document authority setting information, and the authority setting is carried out on the basic document template according to the target content authority setting information, so that the user can only obtain the target document with the content authority corresponding to the identity, the risk that the same content is covered for many times is avoided, sensitive content can be guaranteed to be displayed only for the user with the authority, and therefore the document display safety can be improved.
The method described in the above examples is further illustrated in detail below by way of example.
In this embodiment, the first document presentation apparatus is taken as a terminal, the second document presentation apparatus is taken as a server, and the types of the base document and the target document are taken as form documents.
The terminal creates a basic document and sets the legal right of the basic document.
For example, a document creation page is displayed, where the document creation page includes a document input control and a document authority setting control, receives document content input through the document content input control, obtains a base document, sets a document authority of the base document in response to a setting operation of the document authority setting control, obtains document authority setting information of the base document, and sends the base document and the document authority setting information to a server, where the following may be specifically used:
(1) the terminal displays the document creation page.
For example, the user may operate on the document search page to trigger the document creation page to be displayed, for example, the user may trigger the document creation control on the document search page to display the document creation page on the terminal.
(2) And the terminal receives the document content input through the document content input control to obtain a basic document.
For example, when a user performs an input operation through a content input control of a document creation page, a terminal receives document content input by the user, and fills the document content to a position corresponding to a blank form template, so as to obtain a basic document created by the user
(3) And responding to the setting operation of the document authority setting control, setting the document authority of the basic document to obtain the document authority setting information of the basic document, and sending the basic document and the document authority setting information to the server.
For example, when a user selects at least one cell needing document authority setting in a basic document and triggers a document authority setting control to perform setting operation by clicking a right mouse button or in other ways, the cell selected by the user can be determined in the cells of the basic document in response to the setting operation of the document authority setting control, and a target cell is obtained. When a user selects a target cell and triggers the document authority 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 a user triggers the setting operation of the user authority setting control on the document setting page, responding to the setting operation of the user authority setting control, displaying a user selection page, wherein the user selection page can comprise all user lists or user level lists of a target organization, when the user selection page comprises the user lists of the target organization, the user selects the identity of a user with a specific authority on the user lists, so that the user information of the user with the specific authority to the content of the target basic area can be obtained, when the user selects the user level lists comprising the target organization on the user selection page, the user selects the user level with the specific authority on the user level lists, responding to the selection operation of the user on the user level lists, displaying a level user selection page, and the level user selection page comprises all or part of candidate user lists of the target organization, the user selects the user corresponding to the specific user grade in the candidate user list, so that the user information corresponding to the target cell can be obtained.
When a user triggers the setting operation of the content permission setting control on the document setting page, the content permission setting page is displayed in response to the content permission setting control, the content permission setting page comprises a content permission list corresponding to users with specific permission or user levels in user information, the user selects the content permission of each user or user level in the user information in the content permission list, so that the content permission information corresponding to each user in the user information is determined, and the content permission in the content permission list can comprise invisible, only viewing, editable, extensible editing, sharable and the like. And taking the user information and the content authority information as document authority setting information of the basic document, and sending the basic document and the document authority setting information to a server.
Optionally, when a new person or a user not assigned with the authority of the base document exists in the target organization and the user needs to apply for the authority of the base document, the user may trigger generation of a document authority application request of the base document, add an application user identity of the user to the document authority application request, send the document authority application to the terminal or the server through the client, and if the document authority application request is sent to the server, the server forwards the document authority application request to the terminal. When the terminal receives the document authority application request, the application user identification of the user is obtained in the document authority application request, and the target content authority information corresponding to the application user identification is screened out from the preset content authority information. And updating the document authority setting information according to the application user identity identification and the target content authority information, so that the user corresponding to the application user identity identification has the authority corresponding to the target content authority information for the content in the basic document.
And (II) the server receives the basic document and the document authority setting information corresponding to the basic document, and adjusts the basic document according to the document authority setting information to obtain a basic document template.
For example, the server may directly obtain the base document sent by the terminal and the document right setting information corresponding to the base document. When the basic document and the document authority setting information corresponding to the basic document have larger memory or more contents, the document authority setting information corresponding to the basic document and the basic document can be indirectly acquired. Extracting content authority setting information corresponding to each cell from the document authority setting information, determining the area type of the cell and the content authority corresponding to the cell according to the content authority setting information, and directly recording the position of the cell corresponding to the area type in the target document when the area type is an invisible area, a viewing-only area or an editing area. When the area type is the extended editing area, the extended editing area can be divided and stripped from the basic document, secondary processing is carried out on the extended editing area, a new initial position of the extended editing area is generated and recorded, and a user can conveniently carry out extended editing on the extended editing area. And selecting less content attribute information corresponding to the content authority from the preset content attribute information, and adding the content attribute information into the cell of the adjusted basic document, so that the initial distribution of the content authority of the cell can be completed, the locking of the cell is completed, and the basic document template is obtained.
And thirdly, the terminal acquires the target document corresponding to the identity mark from the server and displays the target document.
As shown in fig. 10, a document display method specifically includes the following processes:
301. and the terminal sends a document display request to the server.
For example, a current user triggers and generates a document display request, a terminal adds an identity of the current user and a document identifier of a target document to be displayed to the document display request, and the document display request added with the identity and the document identifier is sent to a server.
302. When a document display request sent by a terminal is received, the server screens target content permission setting information corresponding to an identity carried in the document display request from the document permission setting information.
For example, when a document display request sent by a terminal is received, a server acquires an identity of a current user in the document display request, extracts user information and content permission setting information of a basic document from the document permission setting information, inquires whether the identity exists in the user information, and screens target content permission setting information corresponding to the identity from the content permission setting information if the identity exists.
303. And the server sets the content authority of the basic document template according to the target content authority setting information to obtain a target document, and sends the target document to the terminal.
For example, the server can determine the content authority of the current user to the cell of the basic document according to the target content authority setting information. According to the content authority, identifying a cell needing to set the content authority in the basic document template, and according to the content attribute information in the cell, setting the content authority for the cell, thereby obtaining the target document. The server can directly send the target document to the terminal, so that the terminal can display the target document, and when the memory of the target document is large or the number of the target document is large, the target document can be indirectly sent to the terminal.
304. The terminal acquires content attribute information of the target document.
For example, the terminal sends a content attribute information acquisition request to the server, and receives content attribute information returned by the server according to the content attribute information acquisition request. The terminal can also obtain document attribute information in the target document and screen content attribute information from the document attribute information.
305. And the terminal identifies visible content and hidden content in the target document according to the content attribute information.
For example, the terminal identifies the position information of the visible content in the content attribute information, and obtains the first region position information of the first content visible region. And screening out a content visible area in the content area based on the first area position information, and taking the content in the content visible area as visible content. The contents except the visible contents determined in the target document can be the contents needing to be hidden, and the contents needing to be hidden are taken as the hidden contents.
306. And the terminal displays the visible content in the target document.
For example, the terminal obtains the position information of the hidden content in the second area of the target document, screens out the invisible content area corresponding to the hidden content in the content area according to the position information of the second area, and hides the invisible content area to obtain the document to be displayed. The terminal can directly display the document to be displayed at the document client, can also generate a document display page, and adds the document to be displayed to the document display page.
Optionally, the terminal may further 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, where the content processing page includes a content processing control, and the visible content is processed in response to the processing operation of the content processing control, which may specifically be as follows:
(1) and when the current user triggers the visible content, the terminal displays a content processing page of the visible content.
For example, when the current user triggers the visible content, the terminal may query whether the current user has a processing right for the visible content in the content attribute information, and when the current user has the processing right, a content processing page of the visible content is displayed, where the content processing page may include a content processing control, and the type of the content processing control corresponds to the processing right. The target content area corresponding to the visible content at this time is in a processable state.
(2) And the terminal responds to the processing operation of the content processing control and processes the visible content.
For example, when the content processing control is an editing control, the user edits the visible content through the editing control, so that editing information generated by editing operation of the user is received, the visible content is processed according to the editing information, when the content processing control is an extended editing control, extended editing information of the visible content and a region corresponding to the visible content, which is received by the current user through the extended editing control, is received, and the visible content and the region corresponding to the visible content are processed according to the extended editing information.
Wherein, after the current user processes the target document, the terminal returns the processed target document to the server, and the server processes the target document, updating the cell area of the basic document template again, calculating the content authority of the cell area to obtain an updated basic document template, when receiving the document display request sent by other users, setting information according to the content authority corresponding to the identity of other users, setting the content authority of the updated basic document template to obtain the target documents corresponding to other users, and returning the target document to the terminal corresponding to the other user, so that the other user can display and process the target document, and the like, after each process is completed, the processed target document needs to be returned to the server, the basic document template is updated, so that the problem of repeated coverage of the same area by other users is avoided.
As can be seen from the above, the terminal of this embodiment acquires a target document corresponding to the identity of the current user, where the target document is a shared document that can provide simultaneous or non-simultaneous operations for at least two authorized users, and then identifies a visible content and a hidden content corresponding to the current user in the target document, where the visible content is a content corresponding to the content visible authority of the role of the current user in the target organization, and displays the visible content in the target document; in the scheme, in the process of displaying the target document, the displayed visible content in the document is the content corresponding to the content visible authority of the role of the current user in the target organization, and the visible contents of the users corresponding to different roles in the target document are different, so that the risk that the same content is covered for multiple times is avoided, sensitive content can be guaranteed to be displayed only for the users with the authority, and the safety of document display can be improved.
In order to better implement the above method, an embodiment of the present invention further provides a document presentation apparatus (i.e., a first document presentation apparatus), where the first document presentation apparatus may be integrated in a terminal, and the terminal may include a smart phone, a tablet computer, a notebook computer, and/or a personal computer.
For example, as shown in fig. 11, the first document presenting apparatus may include a first acquiring unit 401, a recognizing unit 402, and a presenting unit 403 as follows:
(1) a first acquisition unit 401;
a first obtaining unit 401, configured to obtain a target document corresponding to an identity of a current user, where the target document is a shared document that can provide simultaneous or non-simultaneous operations of at least two authorized users.
For example, the first obtaining unit 401 may be specifically configured to trigger generation of a document display request by a current user, add an identity of the current user and a document identifier of a target document to be displayed to the document display request, send the document display request to which the identity and the document identifier are added to a server, and receive the target document corresponding to the identity of the current user and returned by the server.
(2) An identification unit 402;
an identifying unit 402, configured to identify visible content and hidden content corresponding to the current user in the target document.
For example, the identifying 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.
(3) A presentation unit 403;
and a presentation unit 403, configured to present visible content in the target document.
For example, the presentation unit 403 may be specifically configured to hide hidden content in a target document to obtain a document to be presented, and present the presented document.
Optionally, the first document presenting apparatus may further include a setting unit 404, as shown in fig. 12, which may specifically be as follows:
the setting unit 404 is configured to create a base document, and set a document authority of the base document, to obtain document authority setting information of the base document, where the base document is used to generate a target document.
For example, the setting unit may be specifically configured to display a document creation page, where the document creation page includes a document content input control and a document permission setting control, receive document content input through the document content input control, obtain a base document, set, in response to a setting operation of the document permission setting control, a document permission of the base document, obtain document permission setting information of the base document, and send the base document and the document permission setting information to the server.
Optionally, the first document presenting apparatus may further include a processing unit 405, as shown in fig. 13, which may specifically be as follows:
a processing unit 405, configured to process the visible content of the target document.
For example, the processing unit 405 may be specifically configured to display a content processing page of the visible content when the visible content is triggered by the current user, where the content processing page includes a content processing control, and process the visible content in response to a processing operation of the content processing control.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, in this embodiment, the first obtaining unit 401 obtains a target document corresponding to the identity of the current user, where the target document is a shared document that can provide simultaneous or non-simultaneous operations of at least two authorized users, the identifying unit 402 identifies, in the target document, a visible content and a hidden content corresponding to the current user, where the visible content is a content corresponding to the content visible authority of the role of the current user in the target organization, and then the displaying unit 403 displays the visible content in the target document; in the scheme, in the process of displaying the target document, the displayed visible content in the document is the content corresponding to the content visible authority of the role of the current user in the target organization, and the visible contents of the users corresponding to different roles in the target document are different, so that the risk that the same content is covered for multiple times is avoided, sensitive content can be guaranteed to be displayed only for the users with the authority, and the safety of document display can be improved.
In order to better implement the method, an embodiment of the present invention further provides a document display apparatus (i.e., a second document display apparatus), where the second document display apparatus may be integrated in a server, and the server may be a single server or a server cluster formed by multiple servers.
For example, as shown in fig. 14, the second document presentation apparatus may include a second acquisition unit 501, an adjustment unit 502, a filtering unit 503, and a setting unit 504, as follows:
(1) a second acquisition unit 501;
a second obtaining unit 501 is configured to obtain a base document and document right setting information corresponding to the base document, where the base document includes at least one base content area.
The second obtaining unit 501 may be specifically configured to directly obtain a basic document sent by the first document display apparatus and document right setting information corresponding to the basic document. When the basic document and the document authority setting information corresponding to the basic document have larger memory or more contents, the document authority setting information corresponding to the basic document and the basic document can be indirectly acquired.
(2) An adjustment unit 502;
an adjusting unit 502, configured to adjust the basic content area according to the document authority setting information, to obtain a basic document template.
For example, the adjusting unit 502 may be specifically configured to determine an area type of the basic content area and a content right corresponding to the basic content area according to the document right setting information, adjust the basic content area based on a preset adjustment policy 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 right to obtain the basic document template.
(3) A screening unit 503;
the screening unit 503 is configured to, when a document display request sent by a terminal is received, screen, from the document permission setting information, target content permission setting information corresponding to an identity carried in the document display request.
For example, the screening unit 503 may be specifically configured to, when a document display request sent by the terminal is received, obtain an identity of a current user in the document display request, and screen content permission setting information corresponding to the identity from the document permission setting information.
(4) A setting unit 504;
the setting unit 504 is configured to perform content permission setting on the basic document template according to the target content permission setting information to obtain a target document, and send the target document to the terminal, so that the terminal displays the target document.
For example, the setting unit 504 may be specifically configured to determine the content right of the current user to the base content area of the base document according to the target content right setting information. According to the content authority, a basic content area needing to be set with the content authority is identified in the basic document template, the content authority is set for the basic content area according to the content attribute information in the basic content area, and therefore the target document can be obtained and sent to the terminal, and the terminal can display the target document conveniently.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, in this embodiment, after the second obtaining unit 501 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, the adjusting unit 502 adjusts the basic content area according to the document permission setting information to obtain a basic document template, the screening unit 503 screens out, when receiving a document display request sent by a terminal, 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 performs content permission setting on the basic document template according to the target content permission setting information to obtain a target document, and sends the target document to the terminal so that the terminal can display the target document; according to the scheme, the target content authority setting information corresponding to the identity of the user is screened out from the document authority setting information, and the authority setting is carried out on the basic document template according to the target content authority setting information, so that the user can only obtain the target document with the content authority corresponding to the identity, the risk that the same content is covered for many times is avoided, sensitive content can be guaranteed to be displayed only for the user with the authority, and therefore the document display safety can be improved.
An embodiment of the present invention further provides an electronic device, as shown in fig. 15, which shows a schematic structural diagram of the electronic device according to the embodiment of the present invention, specifically:
the electronic device may include components such as a processor 601 of one or more processing cores, memory 602 of one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 15 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 601 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the electronic device. Optionally, processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 601.
The memory 602 may be used to store software programs and modules, and the processor 601 executes various functional applications and data processing by operating 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 program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.
The electronic device further comprises a power supply 603 for supplying power to the various components, and preferably, the power supply 603 may be logically connected to the processor 601 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The power supply 603 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 604, and the input unit 604 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 601 in the electronic device loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 601 runs the application program stored in the memory 602, thereby implementing various functions as follows:
the method comprises the steps of obtaining a target document corresponding to the identity identification of a current user, wherein the target document is a shared document which can provide simultaneous or non-simultaneous operation of at least two users with permission, identifying visible content and hidden content corresponding to the current user in the target document, and displaying the visible content in the target document, wherein the visible content is the content corresponding to the content visible permission of the role of the current user in a target organization.
Or
The method comprises the steps of obtaining a basic document and document permission setting information corresponding to the basic document, wherein the basic document comprises at least one basic content area, adjusting the basic content area according to the document permission setting information to obtain a basic document template, screening target content permission setting information corresponding to an identity carried in a document display request from the document permission setting information when the document display request sent by a terminal is received, carrying out content permission setting on the basic document template according to the target content permission setting information to obtain a target document, and sending the target document to the terminal so that the terminal can display the target document.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, in the embodiment of the present invention, a target document corresponding to an identity of a current user is obtained, where the target document is a shared document that can provide at least two authorized users for performing operations simultaneously or non-simultaneously, a visible content and a hidden content corresponding to the current user are identified in the target document, where the visible content is a content corresponding to a content visible authority of a role of the current user in a target organization, and then the visible content in the target document is displayed, where the displayed document includes the visible content and the hidden content in the display process of the target document in the scheme, and the visible content is a content corresponding to a content visible authority of a role of the current user in the target organization, and the visible contents of users corresponding to different roles are different in the target document, so as to avoid a risk that the same content is covered for multiple times, and further ensure that sensitive content is only displayed for authorized users, therefore, the safety of document display can be improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the document presentation generating methods provided by the embodiment of the present invention. For example, the instructions may perform the steps of:
the method comprises the steps of obtaining a target document corresponding to the identity identification of a current user, wherein the target document is a shared document which can provide simultaneous or non-simultaneous operation of at least two users with permission, identifying visible content and hidden content corresponding to the current user in the target document, and displaying the visible content in the target document, wherein the visible content is the content corresponding to the content visible permission of the role of the current user in a target organization.
Or
The method comprises the steps of obtaining a basic document and document permission setting information corresponding to the basic document, wherein the basic document comprises at least one basic content area, adjusting the basic content area according to the document permission setting information to obtain a basic document template, screening target content permission setting information corresponding to an identity carried in a document display request from the document permission setting information when receiving the document display request sent by a terminal, carrying out content permission setting on the basic document template according to the target content permission setting information to obtain a target document, and sending the target document to the terminal so as to display the target document by the terminal.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any document presentation method provided by the embodiment of the present invention, the beneficial effects that can be achieved by any document presentation method provided by the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
According to an aspect of the application, there is provided, among other things, a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the methods provided in the various alternative implementations of the document presentation aspect or the document processing aspect described above.
The document display method, apparatus, and computer-readable storage medium provided in the embodiments of the present invention are described in detail above, and specific examples are applied herein to explain the principles and implementations of the present invention, and the description of the above embodiments is only used to help understand the method and its core ideas of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (15)

1. A document display method is characterized by comprising the following steps:
acquiring a target document corresponding to the identity of the current user, wherein the target document is a shared document which can provide simultaneous or non-simultaneous operation of at least two users with permission;
identifying visible content and hidden content corresponding to the current user in the target document, wherein the visible content is content corresponding to content visible authority of a role of the current user in a target organization;
and displaying the visible content in the target document.
2. The document display method of claim 1, wherein the identifying visible content and hidden content corresponding to the current user in the target document comprises:
acquiring content attribute information of the target document;
and identifying the visible content and the hidden content in the target document according to the content attribute information.
3. The document presentation method of claim 2, wherein the target document comprises at least one target content area, and wherein identifying the visible content and the hidden content in the target document according to the content attribute information comprises:
determining first area position information of a content visible area in the target document according to the content attribute information, wherein the content visible area is an area for displaying the visible content;
screening the content visible region in the content region based on the first region position information, and taking the content of the content visible region as visible content;
and determining the content to be hidden in the target document according to the visible content to obtain the hidden content.
4. The document presentation method of claim 2, wherein said presenting said visible content in said target document comprises:
hiding the hidden content in the target document to obtain a document to be displayed;
and displaying the document to be displayed.
5. The document presentation method according to claim 4, wherein the hiding the hidden content in the target document to obtain a document to be presented comprises:
acquiring the position information of the hidden content in a second area of the target document;
according to the second area position, a content invisible area corresponding to the hidden content is screened out from the content area;
and hiding the invisible content area to obtain the document to be displayed.
6. The document presentation method according to claim 1, further comprising, after said presenting said visible content in said target document:
when the current user triggers the visible content, displaying a content processing page of the visible content, wherein the content processing page comprises a content processing control;
and responding to the processing operation of the content processing control, and processing the visible content.
7. The document presentation method of claim 6, wherein said processing the visible content in response to the processing operation of the content processing control comprises:
when the content processing control is an editing control, receiving editing information of the current user on the visible content through the editing control, and processing the visible content according to the editing information;
and when the content processing control is an extended editing control, receiving extended editing information of the visible content and the region corresponding to the visible content, which is obtained by the current user through the extended editing control, and processing the visible content and the region corresponding to the visible content according to the extended editing information.
8. The document presentation method according to claim 1, wherein before obtaining the target document corresponding to the identity of the current user, the method comprises:
displaying a document creation page, wherein the document creation page comprises a document content input control and a document authority setting control;
receiving the document content input through the document content input control to obtain a basic document;
responding to the setting operation of the document authority setting control, setting the document authority of the basic document to obtain document authority setting information of the basic document, and sending the basic document and the document authority setting information to a server;
the obtaining of the target document corresponding to the identity of the current user includes: and acquiring a target document corresponding to the identity of the current user from the server.
9. The document display method of claim 8, wherein the base document includes at least one base content area, and the setting operation of the document permission setting control in response to the setting operation of the document permission setting control to set the document permission of the base document to obtain the document permission setting information of the base document comprises:
responding to the setting operation of the document authority setting control, and making a target basic content area which determines that a user needs to set the document authority in the basic content area;
displaying a document setting page corresponding to the target basic content area, wherein the document setting page comprises a user authority setting control and a content authority setting control;
responding to the setting operation of the user permission setting control, and determining user information corresponding to the target basic content area;
and responding to the content authority setting control, determining content authority information corresponding to each user in the user information, and taking the user information and the content authority information as document authority setting information of the basic document.
10. The document presentation method according to claim 8, wherein the setting of the document rights of the basic document to obtain the document rights setting information of the basic document further comprises:
when a document authority application request is received, acquiring an application user identity of a user in the document authority application request;
screening target content authority information corresponding to the identity of the application user from preset content authority information;
and updating the document authority setting information according to the application user identity identification and the target content authority information, so that the user corresponding to the application user identity identification has the authority corresponding to the target content authority information for the content in the basic document.
11. A document presentation method, comprising:
acquiring a basic document and document authority setting information corresponding to the basic document, wherein the basic document comprises at least one basic content area;
adjusting the basic content area according to the document authority setting information to obtain a basic document template;
when a document display request sent by a terminal is received, screening target content permission setting information corresponding to an identity carried in the document display request from the document permission setting information;
and setting the content authority of the basic document template according to the target content authority setting information to obtain a target document, and sending the target document to the terminal so that the terminal can display the target document.
12. The document presentation method according to claim 11, wherein the adjusting the basic content area according to the document right setting information to obtain a basic document template comprises:
determining the area type of the basic content area and the content authority corresponding to the basic content area according to the document authority setting information;
adjusting the basic content area based on a preset adjusting strategy corresponding to the area type to obtain an adjusted basic document;
and locking the basic content area of the adjusted basic document according to the content authority to obtain the basic document template.
13. A document presentation apparatus, comprising:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a target document corresponding to an identity of a current user, and the target document is a shared document which can provide simultaneous or non-simultaneous operation of at least two authorized users;
the identification unit may be specifically configured to identify, in the target document, visible content and hidden content corresponding to the current user, where the visible content is content corresponding to a content visible right of a role of the current user in a target organization;
and the display unit is used for displaying the visible content in the target document.
14. A document presentation apparatus, comprising:
a second acquisition unit configured to acquire a base document and document right setting information corresponding to the base document, the base document including at least one base content area;
the adjusting unit is used for adjusting the basic content area according to the document authority setting information to obtain a basic document template;
the screening unit is used for screening 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;
and the setting unit is used for setting the content authority of the basic document template according to the target content authority setting information to obtain a target document and sending the target document to the terminal so that the terminal can display the target document.
15. A computer-readable storage medium storing instructions adapted to be loaded by a processor to perform the steps of the document presentation method of any one of claims 1 to 12.
CN202110018228.3A 2021-01-07 2021-01-07 Document display method and device and computer readable storage medium Pending CN114741667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110018228.3A CN114741667A (en) 2021-01-07 2021-01-07 Document display method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110018228.3A CN114741667A (en) 2021-01-07 2021-01-07 Document display method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114741667A true CN114741667A (en) 2022-07-12

Family

ID=82274282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110018228.3A Pending CN114741667A (en) 2021-01-07 2021-01-07 Document display method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114741667A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115408358A (en) * 2022-10-31 2022-11-29 天津联想协同科技有限公司 Network disk online file management method and device, network disk and storage medium
CN116248961A (en) * 2023-03-03 2023-06-09 深圳市达浩科技有限公司 LED display screen encryption method and system
CN116319646A (en) * 2023-01-10 2023-06-23 阿里巴巴(中国)有限公司 Information processing, storing, displaying, sharing, shared information processing and checking method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160253055A1 (en) * 2013-11-26 2016-09-01 Huawei Technologies Co., Ltd. Document Presentation Method and User Terminal
US20170364499A1 (en) * 2016-06-20 2017-12-21 International Business Machines Corporation Concealment of content in a shared document
US20190132481A1 (en) * 2017-10-31 2019-05-02 Kyocera Document Solutions Inc. Document management system
CN110597774A (en) * 2019-09-13 2019-12-20 腾讯科技(深圳)有限公司 File sharing method, system, device, computing equipment and terminal equipment
CN111723558A (en) * 2020-07-17 2020-09-29 腾讯科技(深圳)有限公司 Document display method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160253055A1 (en) * 2013-11-26 2016-09-01 Huawei Technologies Co., Ltd. Document Presentation Method and User Terminal
US20170364499A1 (en) * 2016-06-20 2017-12-21 International Business Machines Corporation Concealment of content in a shared document
US20190132481A1 (en) * 2017-10-31 2019-05-02 Kyocera Document Solutions Inc. Document management system
CN110597774A (en) * 2019-09-13 2019-12-20 腾讯科技(深圳)有限公司 File sharing method, system, device, computing equipment and terminal equipment
CN111723558A (en) * 2020-07-17 2020-09-29 腾讯科技(深圳)有限公司 Document display method and device, electronic equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115408358A (en) * 2022-10-31 2022-11-29 天津联想协同科技有限公司 Network disk online file management method and device, network disk and storage medium
CN115408358B (en) * 2022-10-31 2023-04-11 天津联想协同科技有限公司 Network disk online file management method and device, network disk and storage medium
CN116319646A (en) * 2023-01-10 2023-06-23 阿里巴巴(中国)有限公司 Information processing, storing, displaying, sharing, shared information processing and checking method
CN116319646B (en) * 2023-01-10 2023-11-14 阿里巴巴(中国)有限公司 Information processing, sharing, shared information processing and viewing method
CN116248961A (en) * 2023-03-03 2023-06-09 深圳市达浩科技有限公司 LED display screen encryption method and system

Similar Documents

Publication Publication Date Title
CN110443010B (en) Authority visual configuration control method, device, terminal and storage medium in information system
CN114741667A (en) Document display method and device and computer readable storage medium
AU2017387668B2 (en) Content management features for messaging services
CN112632919B (en) Document editing method and device, computer equipment and storage medium
US20190050587A1 (en) Generating electronic agreements with multiple contributors
US10685006B2 (en) Content management system and method for synchronizing content translations
JP2002140323A (en) Information management method and device
US11030390B2 (en) Sharing content between electronic documents
US11036918B2 (en) Multimodal sharing of content between documents
CN112068923B (en) Interface updating method and device
US10721305B2 (en) Presenting content using decoupled presentation resources
CN107710202A (en) With the primary document of cloud of old Tool integration
US8725521B2 (en) System and method for designing secure business solutions using patterns
US10977428B2 (en) Content transformations
JP5661449B2 (en) File name creation device
US10528229B2 (en) Mandatory comment on action or modification
CN113515336B (en) Live room joining method, creation method, device, equipment and storage medium
JP2009237863A (en) Electronic file management device and virtual shop management device
JP2011180635A (en) File access control device and method, and program
CN115248891A (en) Page display method and device, electronic equipment and storage medium
CN115220618A (en) Form generation method and device
KR20160106808A (en) Method and system for providing contents service based dynamic data base
CN115407992A (en) Configuration method and device of data query menu, electronic equipment and storage medium
JP2008033961A (en) Document management method and document management device
JP2009237862A (en) Electronic file management device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination