Document preview method and apparatus, electronic device, and storage medium

By using document preview methods and devices, the current user can view the content of the target object as they are authorized, which solves the problem of unintended permission configuration in collaborative document management platforms, improves the accuracy of permission management and collaboration efficiency, and avoids information leakage.

CN117931759BActive Publication Date: 2026-08-04BEIJING ZITIAO NETWORK TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING ZITIAO NETWORK TECH CO LTD
Filing Date
2024-01-31
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

In collaborative document management platforms, administrators often struggle to promptly identify issues with user permission configurations that do not meet expectations. This can lead to a lack of accurate understanding of document access differences among other users or roles, impacting collaboration efficiency.

Method used

A document preview method and apparatus are provided, which allow the current user to view the document content corresponding to their permissions as the target object. The preview interface displays the document content and operation permissions of the target object, supports permission adjustment and diagnostic information acquisition, and ensures that the current user's permissions are not lower than those of the target object.

Benefits of technology

This enables current users to promptly identify discrepancies between document content and expectations, quickly adjust permission configurations, improve the accuracy and efficiency of collaborative document management platforms, and prevent information leaks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117931759B_ABST
    Figure CN117931759B_ABST
Patent Text Reader

Abstract

This disclosure provides a document preview method, apparatus, electronic device, and storage medium. A document preview method includes: receiving document permissions configured for at least one object; entering a document preview interface based on the document permissions, the preview interface corresponding to a target object among the at least one object; displaying document content corresponding to the permissions of the target object in the preview interface; wherein the target object is another target user different from the current user, or the target object is another target role different from the current role to which the current user belongs. This method can conveniently and promptly detect differences between the document content that the target object can see and the document content that the target object is expected to see, thereby enabling timely troubleshooting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and more particularly to a document preview method, apparatus, electronic device, and storage medium. Background Technology

[0002] In collaborative document management platforms, different document permissions can be set for different users. Each user can see and manipulate the document content within their own permissions. However, they cannot view or edit document content they do not have permission to access. Summary of the Invention

[0003] This disclosure provides a document preview method, apparatus, electronic device, and storage medium.

[0004] The following technical solution is adopted in this disclosure.

[0005] In some embodiments, this disclosure provides a document preview method, including:

[0006] Receive document permissions configured for at least one object;

[0007] Based on the document permissions, the document preview interface is accessed, and the preview interface corresponds to the target object among the at least one object; the document content corresponding to the permissions of the target object is displayed in the preview interface;

[0008] The target object is either another target user different from the current user, or the target object is another target role different from the current role to which the current user belongs.

[0009] In some embodiments, this disclosure provides a document preview device, including:

[0010] A control unit is configured to receive document permissions configured for at least one object, and based on the document permissions, enter a preview interface of a document, the preview interface corresponding to a target object among the at least one object;

[0011] The display unit is used to display document content corresponding to the permissions of the target object in the preview interface;

[0012] The target object is either another target user different from the current user, or the target object is another target role different from the current role of the current user.

[0013] In some embodiments, this disclosure provides an electronic device, including: at least one memory and at least one processor;

[0014] The memory is used to store program code, and the processor is used to call the program code stored in the memory to execute the above method.

[0015] In some embodiments, this disclosure provides a computer-readable storage medium for storing program code that, when executed by a processor, causes the processor to perform the methods described above.

[0016] The method provided in this disclosure allows a current user to select another user different from themselves, or a target role different from their current role (e.g., the current role is an administrator, and the target role is a senior user or a regular user). This allows the user to preview the document content that the other user or role can view and use. This preview interface enables the user to promptly identify discrepancies between the document content visible to the target and the expected content, facilitating timely troubleshooting. Attached Figure Description

[0017] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and elements are not necessarily drawn to scale.

[0018] Figure 1 This is a flowchart of a document preview method according to an embodiment of this disclosure.

[0019] Figures 2 to 6 This is a schematic diagram of the interface displayed during the execution of the document preview method according to an embodiment of this disclosure.

[0020] Figure 7 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. Detailed Implementation

[0021] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0022] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0023] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0024] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0025] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0026] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0027] It should be understood that the various steps described in the method embodiments of this disclosure can be performed in sequence and / or in parallel. Furthermore, method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0028] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0029] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0030] It should be noted that the use of the word "a" in this disclosure is illustrative rather than restrictive, and those skilled in the art should understand that it should be understood as "one or more" unless otherwise expressly indicated in the context.

[0031] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0032] The solutions provided by the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings.

[0033] In a collaborative document management platform, one or more documents are stored. Different users, with appropriate document permissions, can simultaneously view or edit the same document, or view or edit different documents simultaneously. To facilitate collaboration among different users, the platform assigns different document permissions based on their assigned roles (e.g., administrator, non-administrator). The ability of a user to edit and view different document content depends on their document permissions. For example, role A can see the records they created, while role B can edit a specific field within a record. If a user holds two roles, they have the permissions of both roles. For instance, if a user holds both roles A and B, they can simultaneously see and edit the records they created, including a specific field.

[0034] In some scenarios, administrators can assign document permissions to other users (collaborating users). However, after assigning these permissions, the actual situation may not match their expectations. For example, it might be expected that certain users will be able to view or edit certain content, but this is not actually the case. In such cases, users need to adjust the permission assignments themselves or contact the responsible support team to provide relevant information, such as the source of the permissions and the context in which the problem arose, so that the support team can investigate.

[0035] This disclosure proposes a document preview method that can be applied to collaborative document management platforms, such as... Figure 1 As shown, Figure 1 This is a flowchart of a document preview method according to an embodiment of the present disclosure, which includes the following steps.

[0036] S11. Receive document permissions configured for at least one object.

[0037] S12. Based on the document permissions, enter the document preview interface, which corresponds to the target object among the at least one object.

[0038] S13. Display the document content corresponding to the permissions of the target object in the preview interface;

[0039] In some embodiments, the execution end of the method proposed in this disclosure can be a terminal, such as a mobile phone, tablet, or server. Specifically, the method proposed in this disclosure can be used to control the previewing of documents in a collaborative document management platform, where the documents are, for example, text documents, spreadsheets, dashboards, and data tables. Document permissions can be permissions automatically or manually assigned to different users or roles for documents in the collaborative document management platform, and the received document permissions can be document permissions set by the administrator. Document permissions can include, for example, "readable" or "viewable." There can be one or more documents in the collaborative document management platform; when there are multiple documents, document permissions can be document permissions for each individual document.

[0040] The document preview interface can refer to the preview interface of a collaborative document management platform, where all or part of the documents on the platform can be displayed. Entering the document preview interface can include one or more actions. You can enter the preview interface first and then select the target object, or vice versa. For example, such as... Figure 2 As shown, by performing the operation to enter the document preview mode, a preview interface will be displayed, where you can select which target document to view. Specifically, this can be triggered by a control in the document's permission settings interface within a collaborative document management platform. Figure 2 The document preview mode is accessed by clicking the "Preview" button in the lower right corner. Once in preview mode, a preview interface is displayed, allowing users to preview various documents within the collaborative document management platform. In other embodiments, such as... Figure 3 As shown, when the document is in non-preview mode, an options list can be brought up, and specific options can be triggered ( Figure 3 The document displays the users with permission to view it (e.g., "Who can view it"). After selecting a user, the document enters preview mode and displays the preview interface.

[0041] In some embodiments, the permissions of the target object refer to the document permissions possessed by the target object. The preview interface displays interactive document content, which users can view. Users can also trigger controls displayed in the preview interface if the target object has the permission to do so, or edit the document content (adding, modifying, deleting, etc.) if the target object has editing permissions. A collaborative document management platform can have multiple documents. By default, the preview interface can only display the content of one document, but users can open other documents by triggering their names. The target object is another target user different from the current user, or a target role different from the current user's current role. Roles can represent permission functions; for example, roles include administrators and non-administrators, and non-administrators can be further subdivided into ordinary users, advanced users, etc.

[0042] In some embodiments, the preview interface displays the document content corresponding to the target object's permissions, and only displays the document content that the target object has permission to view. This is equivalent to the current user seeing the document content that the target object can view when using the document. After the target object is identified, the document content displayed in the document preview interface is the same as the document content displayed when the target object uses the document. The operable controls in the preview interface are the same as the controls that the target object can operate when using the document. If the document contains document content that the current user has permission to view or control that the target object does not have permission to view the content or use the control, then when displaying document content corresponding to the target object's permissions in the preview interface, the content will not be displayed or the control will be unusable.

[0043] In some embodiments of this disclosure, the current user can select another user different from themselves, or another target role different from the current user's current role (e.g., the current role is an administrator, and the target role is a senior user or a regular user), to view the document content that the other user or role can view and use when using the collaborative document management platform in the preview interface. This allows for timely detection of discrepancies between the document content seen by the other party and the expected document content, thus facilitating timely troubleshooting. Specifically, the method may also include adjusting document permissions for the target object.

[0044] The following is a specific example, taking the current user as the document administrator. The current user can configure document permissions in the interface ( Figure 2Set document permissions for different roles (design judges, candidates, etc.), and set the users under each role. Figure 2 (e.g., Zhang Er, Zhang San, etc.) After configuring permissions in the permission configuration interface, a preview control is provided. Clicking the preview control allows access to the document's preview interface (e.g., ...). Figure 4 As shown, upon entering the preview interface, one can access the preview interface of a collaborative document management platform. This preview interface displays documents from the platform. Users view the preview interface as the current user, and it displays document content corresponding to their current permissions (e.g., documents the current user has permission to view). Users can select other users or roles as target objects within the preview interface. Once a target object is selected, the document content displayed in the preview interface will be identical to the content the target object can view. For example, if the target object lacks permission to view or edit a document (e.g., data in a cell), that document content will not be displayed in the preview interface, or editing will be disabled. If the target object has permission to view or edit a document, that document content will be displayed in the preview interface, or editing will be permitted within the preview interface. This allows the current user to promptly identify whether the desired document content matches the actual content seen by the target object, providing a basis for adjusting the target object's permissions without disturbing them.

[0045] In some embodiments of this disclosure, the document permissions of the target object differ from the document permissions of the current user. Specifically, the current user's document permissions are not lower than those of the target object. In some embodiments, the document content corresponding to the current user's permissions differs from the document content corresponding to the target object's permissions. In some embodiments, the document content corresponding to the current user's permissions includes the document content corresponding to the target object's permissions.

[0046] In some embodiments, the document content corresponding to the current user's permissions is the document content that the current user has permission to view, and the document content corresponding to the target object's permissions is the document content that the target object has permission to view. The document content that the current user has permission to view and the document content that the target object has permission to view are different, thus allowing the current user to know the document content that the target object can view. To prevent information leakage during previewing, the current user's document permissions are no lower than the target object's, and the current user has permission to view the document content that the target object can view. This avoids a situation where a user with lower permissions previews document content requiring higher permissions, thus preventing information leakage.

[0047] In some embodiments of this disclosure, entering a document preview interface based on the document permissions includes: in response to an operation to enter the preview interface, entering the document preview interface and displaying document content corresponding to the current user's permissions in the preview interface; in response to an object selection operation, determining the selected object as the target object; wherein, after determining the target object, the document content displayed in the preview interface is switched to document content corresponding to the permissions of the target object. In some embodiments, such as... Figure 4 As shown, after entering the document preview interface, the preview is first viewed from the current user's perspective, displaying the document content corresponding to the current user's permissions (document permissions). After selecting a target object, the preview is switched to the target object's perspective, displaying the document content corresponding to the target object's permissions. This allows the current user to easily compare the differences between the document content displayed in the preview.

[0048] In some embodiments of this disclosure, the preview interface displays permission adjustment controls. In response to operations on the permission adjustment controls, the document permissions of at least one object are adjusted. In some embodiments, the preview interface includes permission adjustment controls, which can be used to adjust the document permissions of an object. If the object whose document permissions are being adjusted is the target object, the document content corresponding to the adjusted permissions of the target object can be displayed in the preview interface after the adjustment.

[0049] In some embodiments of this disclosure, the preview interface may also display one or more of the following: selectable users, the roles to which the selectable users belong, permission adjustment controls, user search controls, prompts indicating that the current preview is in progress, and preview interface exit controls.

[0050] In some embodiments, such as Figure 4 As shown in the preview interface ( Figure 4 The right side displays an object selection area, which shows the selectable users ( Figure 4 The system displays permissions adjustment controls around selectable objects (e.g., Zhang Er, Zhang San, etc.) and the roles they belong to (e.g., design judges, candidates). This allows for easy and timely adjustment of permissions after selecting a target object and viewing the preview interface. Figure 4 As shown in the upper right corner, a search control is also displayed, allowing users to search for users. The preview interface can also display a prompt message to inform the user that they are currently in preview mode and provide a control to exit preview mode.

[0051] In some embodiments of this disclosure, displaying document content corresponding to the permissions of the target object in the preview interface includes: in the preview interface, in response to the target object not having editing permissions for the first content in the document content, locking the first content, or locking the first content and displaying a lock icon.

[0052] In some embodiments, such as Figure 5 As shown in (b), the preview interface schematically displays the first content, "Completed." The target object does not have editing permissions for this first content. Since the current user is viewing the preview interface as the target object, regardless of whether the current user has editing permissions for the first content, they cannot edit it in the document under the preview interface. Therefore, the first content is locked to prevent editing in the preview interface, and a lock icon is displayed. This way, the current user knows that the target object does not have permission to edit the first content, and the display is the same as when the target object is using the document.

[0053] In some embodiments of this disclosure, the method further includes: in the preview interface, in response to the current user's editing operation on the second content in the document content and the target object having editing permission on the second content in the document content, editing the second content as the target object and displaying the edited content.

[0054] In some embodiments, if the target object has editing permissions for the second content in the document displayed in the preview interface, it can edit it. The target object's permissions for the document content outside of preview mode are completely consistent with its permissions in preview mode. If the target object has editing permissions for the second content outside of preview mode, it will also have editing permissions for the second content in the preview interface in preview mode. When the current user edits the second content, it is done as if the target object were identified. This better reproduces the effect of the target object's editing. If the current user edited the second content, the displayed edited content might differ from the edited content displayed when the target object edited it, resulting in an inability to correctly reproduce the target object's perspective when using the document. In some embodiments, in the preview interface, in response to the editing operation on the document content, a prompt is displayed indicating that the edits will not be saved. This avoids the user mistakenly believing that the edits will take effect, causing misunderstanding.

[0055] In some embodiments of this disclosure, edits made to the document in the preview interface are not saved. In some embodiments, edits (e.g., adding, deleting, or modifying) made to the document content in the preview interface do not actually affect the document content and are not saved. Other users can access the document content normally while the current user is viewing the preview interface, and the document content viewed by other users will not change due to editing operations performed in the preview interface. When the current user's edits in the preview interface cause changes to the document content displayed in the preview interface, they only take effect within that preview interface. After exiting the preview interface, the editing operations performed in the preview interface will not take effect. In some embodiments, content from data sources other than the document displayed in the preview interface is not editable. In some embodiments, in response to a non-cooperative operation performed in the preview interface that calls content other than the document, the execution flow of the non-cooperative operation is terminated.

[0056] like Figure 5 As shown in (a), the document content may originate from other data sources. In this case, the document only displays the content by referencing it, and this content is not editable in preview mode. In some embodiments, collaboration requests issued in the preview interface will be disabled; in other embodiments, collaboration requests refer to requests requiring assistance from other users. To avoid accidental editing and confusion in preview mode, collaboration is not allowed, nor can other data sources be invoked. In some embodiments, the document content displayed in preview mode may be a copy of the document's content.

[0057] In some embodiments of this disclosure, the method further includes: in response to a first operation event on third content in the preview interface, obtaining diagnostic information of the third content; wherein the diagnostic information of the third content includes: location information of the third content.

[0058] In some embodiments, when the current user views the preview interface as the target object, they may find content that differs from their expectations. In such cases, support staff may be needed. To facilitate troubleshooting and quickly retrieve the context, such as... Figure 5 As shown in (c), an operation to bring up the option control (e.g., triggering a right-click) can be performed on the third content. By triggering the diagnostic control within it (copying diagnostic information), the diagnostic information of the third content is copied to the cache (a prompt can be displayed at this time to inform that the diagnostic information has been copied). Then, the diagnostic information can be pasted to support personnel. Because the diagnostic information contains the location of the third content, support personnel can quickly locate the third content through the diagnostic information. The location information of the third content can be the link information of the third content.

[0059] In some embodiments, the diagnostic information for the third content further includes: the server to which the third content belongs, the identifier of the current user, the identifier of the target object, the permissions of the target object to the third content, the source of the target object's permissions to the third content, the permissions of the current user to the third content, and the source of the current user's permissions to the third content. By including the server to which the content belongs, the identifiers of the current user and the target object, and the methods by which they obtained their permissions in the diagnostic information, support personnel can better determine the cause of the problem. The source of permissions may include inheriting permissions from a group, user, or department, being assigned permissions by other users, or obtaining permissions through application.

[0060] In some embodiments of this disclosure, after the target object is determined, if the target object does not have permission to access the target object, only a preset interface can be displayed. The preset interface may not contain the document content in the document, and some prompt information may be displayed to inform the user of the reason for not displaying the document content.

[0061] In some embodiments of this disclosure, in response to an operation to view a fourth piece of content in the preview interface, and the permissions of the fourth piece of content are controlled by the fourth piece of content itself, a preset placeholder is displayed in the preview interface instead of displaying the fourth piece of content, and / or, a control for opening the fourth piece of content outside the preview interface after being triggered is displayed in the preview interface. In some embodiments, such as... Figure 6 As shown, the preview interface allows you to select the file you want to open. Figure 6(You can choose from the left side of the middle section), the fourth content can be... Figure 6 The selected document 1 (the fourth content) may have its permissions set to be controlled by the document 1 itself rather than by the collaborative document management platform. In this case, it is not supported to view the document content in the preview mode. Preset placeholders and controls to open the document 1 can be displayed, so that the document 1 can be opened outside of the preview mode.

[0062] In some embodiments of this disclosure, in response to the operation of viewing a fifth piece of content on the preview interface, where the fifth piece of content is a data dashboard, data collection table, data questionnaire, or data query page, and the target object has administrator privileges, a preset placeholder is displayed on the preview interface instead of the fifth piece of content.

[0063] In some implementations, the data dashboard typically aggregates various data sets. Viewing the dashboard requires administrator privileges, who can see all data and perform all operations. If the target object selected by the current user has administrator privileges, they can interact with external systems to edit the dashboard configuration-related documentation. This process contradicts the non-collaborative setting in preview mode and is therefore disabled. However, users can be reminded that administrators can perform all operations, and the user experience of all administrator users can be inferred from the direct user experience. Furthermore, displaying data in the data dashboard could lead to data leakage. If the target object has non-administrator privileges, the current user can select the target object and enter the preview interface. At this point, they can view the content accessible to the target object and perform drill-down operations. If an entry point exists in the preview interface that calls data outside of the documentation, that entry point will be disabled. Similarly, for data collection tables, data files, and data query pages, even if the selected target object is an administrator, preview viewing is not possible. When a user selects to view these contents, a preset placeholder is displayed in the preview interface to prevent data leakage and to prevent modifications to specific configuration content from being triggered in preview mode through interaction with external systems.

[0064] In some embodiments of this disclosure, displaying document content corresponding to the permissions of the target object in the preview interface includes: injecting target parameters into the application entry point of the collaborative document management platform, the target parameters including parameters representing the preview interface and parameters representing the target object; and displaying the document content as if the target object accessed the document according to the target parameters. In some embodiments, the collaborative document management platform receives target parameters at its application layer without requiring other modules different from the collaborative document management platform to perceive related implementations. This eliminates the need to modify other modules, thereby reducing code modification and facilitating integration with existing systems.

[0065] In some embodiments of this disclosure, before displaying the document content corresponding to the permissions of the target object in the preview interface, the method further includes: determining whether the current user has administrator privileges; and if the current user has administrator privileges, then performing the step of displaying the document content corresponding to the permissions of the target object in the preview interface. In some embodiments, as long as the administrator has permission to enter the preview mode, before viewing the preview interface from the perspective of the target object, the current user can be authenticated to determine that they are an administrator, and after authentication, the document content that the target object can view is returned.

[0066] In some embodiments, the collaborative document management platform has an interface for obtaining document content from the document for a preview interface; the data structure of the document content returned by this interface is the same as the data structure of the same document content obtained for a non-preview interface. In some embodiments, when previewing as a target object, the document content that the target object can access is simulated according to the different target objects transmitted. The document content displayed in preview mode is completely consistent with the data structure of the document content in non-preview mode. Because the data displayed in the preview interface is injected from outside the document, by setting it in a consistent way, the interface used in the non-preview interface can be replaced. In this way, the underlying logic does not need to be aware of whether it is currently in the preview interface, because the data structures of the two are the same. Therefore, the underlying logic does not need to design a special data structure for the preview interface and can use the data used in the non-preview interface, thereby reducing development costs.

[0067] In some embodiments of this disclosure, the current user is allowed to preview all data interfaces in the collaborative document management platform as the target object. The preview portion allows for viewing and editing without interfering with the actual data. Relevant contextual parameters for determining the authorization source can be quickly obtained as diagnostic information within the preview interface. Users can directly observe the target object's actual experience after permission configuration, perform real operations, and experience the impact of related settings on specific members. Operations in the preview interface do not affect the state of the actual data. If the seen document content does not meet expectations, the context can be quickly found through diagnostic data to confirm the cause and make adjustments, followed by another preview. Since no data structure is modified and parameter injection is used, subsequent feature iterations do not require special consideration of the preview module logic, resulting in low development and maintenance costs.

[0068] This disclosure also proposes a document preview device, comprising:

[0069] A control unit is configured to receive document permissions configured for at least one object, and based on the document permissions, enter a preview interface of a document, the preview interface corresponding to a target object among the at least one object;

[0070] The display unit is used to display document content corresponding to the permissions of the target object in the preview interface;

[0071] The target object is either another target user different from the current user, or the target object is another target role different from the current role of the current user.

[0072] In some embodiments, the current user's document permissions are not lower than the target object's document permissions; and / or,

[0073] The document content corresponding to the current user's permissions includes the document content corresponding to the target object's permissions.

[0074] In some embodiments, accessing the document preview interface based on the document permissions includes:

[0075] In response to the operation of entering the preview interface, the document preview interface is entered and the document content corresponding to the current user's permissions is displayed in the preview interface; in response to the object selection operation, the selected object is determined to be the target object; wherein, after the target object is determined, the document content displayed in the preview interface is switched to the document content corresponding to the permissions of the target object.

[0076] In some embodiments, the preview interface displays a permission adjustment control, and the control unit is further configured to adjust the document permissions of the objects in the at least one object in response to an operation on the permission adjustment control.

[0077] In some embodiments, the preview interface may also display one or more of the following: selectable users, the roles to which the selectable users belong, a user search control, a prompt message indicating that the current preview is in progress, and a preview interface exit control.

[0078] In some embodiments, the control unit is further configured to: in the preview interface, in response to the target object not having editing permission for the first content in the document content, lock the first content, or lock the first content and display a lock icon;

[0079] In some embodiments, the control unit is further configured to: in the preview interface, in response to the current user's editing operation on the second content in the document content and the target object having editing permission on the second content in the document content, edit the second content as the target object and display the edited content.

[0080] In some embodiments, edits made to the document in the preview interface are not saved.

[0081] In some embodiments, the document content displayed in the preview interface from data sources other than the document itself is not editable.

[0082] In some embodiments, collaboration requests issued in the preview interface will be turned off;

[0083] In some embodiments, the control unit is further configured to: terminate the execution flow of the non-cooperative operation in response to a non-cooperative operation performed in the preview interface and the non-cooperative operation calling other content besides the document;

[0084] In some embodiments, the control unit is also configured to: in the preview interface, in response to an editing operation performed on the document, prompt that the edits made will not be saved.

[0085] In some embodiments, the control unit is further configured to: in response to a first operation event on third content in the preview interface, acquire diagnostic information of the third content;

[0086] The diagnostic information of the third content includes: the location information of the third content.

[0087] In some embodiments, the diagnostic information of the third content further includes: the server to which the third content belongs, the identifier of the current user, the identifier of the target object, the permissions of the target object to the third content, the source of the permissions of the target object to the third content, the permissions of the current user to the third content, and the source of the permissions of the current user to the third content.

[0088] In some embodiments, the control unit is further configured to: in response to an operation of viewing a fourth piece of content in the preview interface and the permissions of the fourth piece of content are controlled by the fourth piece of content itself, display a preset placeholder in the preview interface instead of displaying the fourth piece of content, and / or display a control in the preview interface for opening the fourth piece of content outside the preview interface after being triggered;

[0089] In some embodiments, the control unit is further configured to: in response to an operation of viewing a fifth piece of content on the preview interface, wherein the fifth piece of content is a data dashboard, data collection table, data questionnaire, or data query page, and the target object has administrator privileges, display a preset placeholder on the preview interface instead of displaying the fifth piece of content.

[0090] In some embodiments, displaying document content corresponding to the permissions of the target object in the preview interface includes: injecting target parameters into the application entry of the collaborative document management platform, the target parameters including parameters representing the preview interface and parameters representing the target object; and displaying the document content that would be displayed when the target object accesses the document according to the target parameters.

[0091] In some embodiments, the control unit is further configured to: determine whether the current user has administrator privileges before displaying the document content corresponding to the permissions of the target object in the preview interface; and in response to the current user having administrator privileges, the display unit performs the step of displaying the document content corresponding to the permissions of the target object in the preview interface.

[0092] In some embodiments, the collaborative document management platform has an interface for obtaining document content from the document for a preview interface; the data structure of the document content returned by the interface is the same as the data structure of the same document content obtained in a document not in a preview interface.

[0093] For embodiments of the apparatus, since they basically correspond to the method embodiments, relevant details can be found in the descriptions of the method embodiments. The apparatus embodiments described above are merely illustrative, and the modules described as separate modules may or may not be separate. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0094] The methods and apparatus of this disclosure have been described above based on embodiments and application examples. Furthermore, this disclosure also provides an electronic device and a computer-readable storage medium, which are described below.

[0095] The following is for reference. Figure 7 The figure illustrates a structural schematic of an electronic device (e.g., a terminal device or server) 800 suitable for implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in the figure is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present disclosure.

[0096] Electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 802 or a program loaded from storage device 808 into random access memory (RAM) 803. RAM 803 also stores various programs and data required for the operation of electronic device 800. The processing device 801, ROM 802, and RAM 803 are interconnected via bus 804. Input / output (I / O) interface 805 is also connected to bus 804.

[0097] Typically, the following devices can be connected to I / O interface 805: input devices 806 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 807 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 808 including, for example, magnetic tapes, hard disks, etc.; and communication devices 809. Communication device 809 allows electronic device 800 to communicate wirelessly or wiredly with other devices to exchange data. Although an electronic device 800 with various devices is shown in the figure, it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0098] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by a processing device 801, it performs the functions defined in the methods of embodiments of this disclosure.

[0099] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0100] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0101] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0102] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods of the present disclosure.

[0103] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0104] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0105] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.

[0106] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0107] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0108] According to one or more embodiments of this disclosure, a document preview method is provided, comprising:

[0109] Receive document permissions configured for at least one object;

[0110] Based on the document permissions, the document preview interface is accessed, and the preview interface corresponds to the target object among the at least one object;

[0111] The preview interface displays the document content corresponding to the permissions of the target object;

[0112] The target object is either another target user different from the current user, or the target object is another target role different from the current role to which the current user belongs.

[0113] According to one or more embodiments of this disclosure, a document preview method is provided, wherein the current user's document permissions are not lower than the document permissions of the target object; and / or,

[0114] The document content corresponding to the current user's permissions includes the document content corresponding to the target object's permissions.

[0115] According to one or more embodiments of this disclosure, a document preview method is provided, which, based on the document permissions, accesses a document preview interface, including:

[0116] In response to the operation of entering the preview interface, the document preview interface is entered and the document content corresponding to the current user's permissions is displayed in the preview interface; in response to the object selection operation, the selected object is determined to be the target object; wherein, after the target object is determined, the document content displayed in the preview interface is switched to the document content corresponding to the permissions of the target object.

[0117] According to one or more embodiments of this disclosure, a document preview method is provided, further comprising:

[0118] The preview interface displays a permission adjustment control. In response to the operation of the permission adjustment control, the document permissions of the objects in the at least one object are adjusted.

[0119] According to one or more embodiments of this disclosure, a document preview method is provided, wherein the preview interface further displays one or more of the following:

[0120] Selectable users, the roles of the selectable users, a user search control, a prompt message indicating that the user is currently in preview mode, and a preview exit control.

[0121] According to one or more embodiments of this disclosure, a document preview method is provided, further comprising:

[0122] In the preview interface, in response to the target object not having editing permission for the first content in the document content, the first content is locked, or the first content is locked and a lock icon is displayed;

[0123] And / or; in the preview interface, in response to the current user's editing operation on the second content in the document content and the target object having editing permission on the second content in the document content, the second content is edited as the target object and the edited content is displayed.

[0124] According to one or more embodiments of this disclosure, a document preview method is provided in which edits made to the document in the preview interface are not saved.

[0125] According to one or more embodiments of this disclosure, a document preview method is provided that satisfies at least one of the following:

[0126] Content from data sources other than the document displayed in the preview interface is not editable;

[0127] Collaboration requests made in the preview interface will be turned off;

[0128] In response to a non-cooperative operation performed in the preview interface that invokes content other than the document, the execution flow of the non-cooperative operation is terminated.

[0129] In response to editing operations performed on the document in the preview interface, a message is displayed indicating that the edits will not be saved.

[0130] According to one or more embodiments of this disclosure, a document preview method is provided, the method further comprising:

[0131] In response to a first operation event on the third content in the preview interface, diagnostic information of the third content is obtained;

[0132] The diagnostic information of the third content includes: the location information of the third content.

[0133] According to one or more embodiments of this disclosure, a document preview method is provided, wherein the diagnostic information of the third content further includes: the server to which the third content belongs, the identifier of the current user, the identifier of the target object, the permissions of the target object to the third content, the source of the permissions of the target object to the third content, the permissions of the current user to the third content, and the source of the permissions of the current user to the third content.

[0134] According to one or more embodiments of this disclosure, a document preview method is provided that satisfies at least one of the following:

[0135] In response to an operation to view a fourth piece of content in the preview interface, and the permissions of the fourth piece of content are controlled by the fourth piece of content itself, a preset placeholder is displayed in the preview interface in place of the fourth piece of content, and / or a control is displayed in the preview interface for opening the fourth piece of content outside the preview interface after being triggered;

[0136] In response to the operation of viewing the fifth content in the preview interface, where the fifth content is a data dashboard, data collection table, data questionnaire, or data query page, and the target object has administrator privileges, a preset placeholder is displayed in the preview interface instead of the fifth content.

[0137] According to one or more embodiments of this disclosure, a document preview method is provided, wherein document content corresponding to the permissions of the target object is displayed in the preview interface, including:

[0138] Inject target parameters into the application entry point of the collaborative document management platform. The target parameters include parameters representing the preview interface and parameters representing the target object.

[0139] The document simulates the document content displayed when the target object accesses the document according to the target parameters.

[0140] According to one or more embodiments of this disclosure, a document preview method is provided that satisfies at least one of the following:

[0141] Before displaying the document content corresponding to the permissions of the target object in the preview interface, the method further includes: determining whether the current user has administrator privileges; if the current user has administrator privileges, then performing the step of displaying the document content corresponding to the permissions of the target object in the preview interface.

[0142] The collaborative document management platform has an interface for obtaining document content from the document for the preview interface; the data structure of the document content returned by the interface is the same as the data structure of the same document content obtained for the document in a non-preview interface.

[0143] According to one or more embodiments of this disclosure, a document preview device is provided, comprising:

[0144] A control unit is configured to receive document permissions configured for at least one object, and based on the document permissions, enter a preview interface of a document, the preview interface corresponding to a target object among the at least one object;

[0145] The display unit is used to display document content corresponding to the permissions of the target object in the preview interface;

[0146] The target object is either another target user different from the current user, or the target object is another target role different from the current role of the current user.

[0147] According to one or more embodiments of the present disclosure, an electronic device is provided, including: at least one memory and at least one processor;

[0148] The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute the method described in any one of the above.

[0149] According to one or more embodiments of the present disclosure, a computer-readable storage medium is provided for storing program code that, when executed by a processor, causes the processor to perform the methods described above.

[0150] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0151] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0152] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A document preview method, characterized in that, include: Receive document permissions configured for at least one object; Based on the document permissions, the document preview interface is accessed, and the preview interface corresponds to the target object among the at least one object; The preview interface displays document content corresponding to the permissions of the target object, which is the content displayed after the document is opened; Wherein, the target object is another target user different from the current user, or the target object is another target role different from the current role to which the current user belongs; The method further includes: In the preview interface, in response to the target object not having editing permission for the first content in the document content, the first content is locked, or the first content is locked and a lock icon is displayed; In the preview interface, in response to the current user's editing operation on the second content in the document content and the target object having editing permission on the second content in the document content, the second content is edited as the target object and the edited content is displayed.

2. The method according to claim 1, characterized in that, The current user's document permissions are not lower than the target object's document permissions; and / or, The document content corresponding to the current user's permissions includes the document content corresponding to the target object's permissions.

3. The method according to claim 1, characterized in that, Based on the document permissions, access the document preview interface, including: In response to the operation of entering the preview interface, the document preview interface is entered and the document content corresponding to the current user's permissions is displayed in the preview interface; in response to the object selection operation, the selected object is determined to be the target object; wherein, after the target object is determined, the document content displayed in the preview interface is switched to the document content corresponding to the permissions of the target object.

4. The method according to claim 1, characterized in that, Also includes: The preview interface displays a permission adjustment control. In response to the operation of the permission adjustment control, the document permissions of the objects in the at least one object are adjusted.

5. The method according to claim 1, characterized in that, The preview interface also displays one or more of the following: Selectable users, the roles of the selectable users, a user search control, a prompt message indicating that the user is currently in preview mode, and a preview exit control.

6. The method according to claim 1, characterized in that, Edits made to the document in the preview interface will not be saved.

7. The method according to claim 1, characterized in that, It satisfies at least one of the following: The document content displayed in the preview interface that comes from data sources other than the document itself is not editable; Collaboration requests made in the preview interface will be turned off; In response to a non-cooperative operation performed in the preview interface that invokes content other than the document, the execution flow of the non-cooperative operation is terminated. In response to editing operations performed on the document in the preview interface, a message is displayed indicating that the edits will not be saved.

8. The method according to claim 1, characterized in that, The method further includes: In response to a first operation event on the third content in the preview interface, diagnostic information of the third content is obtained; The diagnostic information of the third content includes: the location information of the third content.

9. The method according to claim 8, characterized in that, The diagnostic information for the third content also includes: the server to which the third content belongs, the identifier of the current user, the identifier of the target object, the permissions of the target object to the third content, the source of the permissions of the target object to the third content, the permissions of the current user to the third content, and the source of the permissions of the current user to the third content.

10. The method according to claim 1, characterized in that, It satisfies at least one of the following: In response to an operation to view a fourth piece of content in the preview interface, and the permissions of the fourth piece of content are controlled by the fourth piece of content itself, a preset placeholder is displayed in the preview interface in place of the fourth piece of content, and / or a control is displayed in the preview interface for opening the fourth piece of content outside the preview interface after being triggered; In response to the operation of viewing the fifth content in the preview interface, where the fifth content is a data dashboard, data collection table, data questionnaire, or data query page, and the target object has administrator privileges, a preset placeholder is displayed in the preview interface instead of the fifth content.

11. The method according to claim 1, characterized in that, The preview interface displays document content corresponding to the permissions of the target object, including: Inject target parameters into the application entry point of the collaborative document management platform. The target parameters include parameters representing the preview interface and parameters representing the target object. The document simulates the document content displayed when the target object accesses the document according to the target parameters.

12. The method according to any one of claims 1-11, characterized in that, It satisfies at least one of the following: Before displaying the document content corresponding to the permissions of the target object in the preview interface, the method further includes: determining whether the current user has administrator privileges; if the current user has administrator privileges, then performing the step of displaying the document content corresponding to the permissions of the target object in the preview interface. The collaborative document management platform has an interface for retrieving document content from the document for the preview interface; the data structure of the document content returned by this interface is the same as the data structure of the same document content retrieved in a non-preview interface.

13. A document preview device, characterized in that, include: A control unit is configured to receive document permissions configured for at least one object, and based on the document permissions, enter a preview interface of a document, the preview interface corresponding to a target object among the at least one object; The display unit is used to display document content corresponding to the permissions of the target object in the preview interface, wherein the document content is the content displayed after the document is opened; Wherein, the target object is another target user different from the current user, or the target object is another target role different from the current role of the current user; The control unit is further configured to: in the preview interface, in response to the target object not having editing permission for the first content in the document content, lock the first content, or lock the first content and display a lock icon; The control unit is further configured to: in the preview interface, in response to the current user's editing operation on the second content in the document content and the target object having editing permission on the second content in the document content, edit the second content as the target object and display the edited content.

14. An electronic device, comprising: At least one memory and at least one processor; The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute the method of any one of claims 1 to 12.

15. A computer-readable storage medium for storing program code that, when executed by a processor, causes the processor to perform the method of any one of claims 1 to 12.