File authorization processing method and device, electronic equipment and storage medium
By detecting operations and managing file permissions, the cumbersome authorization management in cross-file references are solved, dynamic updates of file contents and fine permission control are realized, and user permission requirements are simplified.
Patent Information
- Application Number
- CN202411209331.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-10
AI Technical Summary
In cross-file or cross-table references, the prior art requires users to have the permissions of two files to update the content, resulting in cumbersome authorization management.
By detecting operations and determining the permission grant between files, it is allowed to update the content of the second file into the first file without requiring each user to have dual permissions, including the permission management module of the client and the server to implement the Dynamic update of file content.
The file authorization process is simplified, the user's permission requirements for each file are reduced, the efficiency and flexibility of file content updates are improved, and more refined permission control is achieved.
Smart Images

Figure CN119106010A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to but is not limited to the field of file processing technology, and in particular to a method and device for processing file authorization, an electronic device, and a storage medium. Background Art
[0002] At present, when people use files, tables and other applications, they often encounter situations where they need to reference other files, tables and other applications; for example, cross-file or cross-table references.
[0003] Currently, in cross-file or cross-table references, for example, when one file references another file, the authorization method usually requires that the user account has permissions for both files before the content of the other file can be updated to the one file; this makes authorization management more cumbersome. Summary of the invention
[0004] The embodiments of the present disclosure provide a method and device for processing file authorization, an electronic device, and a storage medium.
[0005] A first aspect of the present disclosure provides a method for processing file authorization, which is executed by a client and includes:
[0006] A first operation is detected;
[0007] In response to the first operation, the granting of the permission of the first file to the second file is determined; wherein, when the permission of the first file to the second file is granted, the content change of the second file can be updated and displayed in the first file.
[0008] In some embodiments, before determining the granting of the permission of the first file to the second file, the method further includes:
[0009] When the user accessing the first file is the first user, a first request initiated by the first user is sent, the first request is used to grant the first file permission for the second file, and the first user has permission to access the first file and the second file.
[0010] In some embodiments, the method further comprises:
[0011] In a case where it is determined that the user accessing the first file is the second user, wherein the second user does not have permission to access the second file;
[0012] When it is determined that the first file has been granted permission for the second file, trigger an update of content in the first file related to content that has been changed based on content in the second file, and / or display the first file, where the first file displays content related to content that has been changed based on content in the second file.
[0013] In some embodiments, the method further comprises:
[0014] Determining that a user accessing the first file is a first user or a second user, wherein the first user has permission to access the first file and the second file, and the second user does not have permission to access the second file;
[0015] When it is determined that the first file is not granted permission for the second file, the first file is displayed, and the content in the first file related to the referenced second file content is displayed as first information, where the first information is used to indicate the referenced second file content.
[0016] In some embodiments, the method further comprises:
[0017] Determining that the only user accessing the first file is the second user, wherein the second user does not have permission to access the second file;
[0018] In the case where it is determined that the first file is not granted the authority for the second file, the first file is displayed, and the first file is displayed with content related to the historical content based on the second file.
[0019] In some embodiments, the method further comprises:
[0020] Determining that users accessing the first file are a first user and a second user, wherein the first user has permission to access the first file and the second file, and the second user does not have permission to access the second file;
[0021] When it is determined that the first file is not granted permission for the second file, the first file is displayed, wherein the first file displays content related to content modified based on content of the second file, and the content related to content modified based on content of the second file is triggered to be generated by the first user.
[0022] In some embodiments, before sending the first request initiated by the first user, the method further includes: obtaining prompt information, wherein the prompt information is used to prompt the first file to grant permission to the second file;
[0023] Sending a first request initiated by a first user includes: sending the first request initiated by the first user based on the prompt information.
[0024] In some embodiments, the permission of the first file to the second file includes one of the following:
[0025] A first sub-right, wherein the first sub-right is used to indicate the permission of the first file to the entire content of the second file;
[0026] The second sub-right is used to indicate the permission of the first file to a predetermined portion of the content of the second file.
[0027] A second aspect of the disclosed embodiment provides a method for processing file authorization, which is executed by a server and includes:
[0028] Determine whether to grant the first file permission to the second file;
[0029] When it is determined that the first file has been granted permission for the second file, the content related to the content in the first file that is modified based on the content of the second file is updated.
[0030] In some embodiments, the method further includes: obtaining a first request, wherein the first request is used to grant the first file permission to the second file; wherein the first request is initiated by a first user, and the first user has permission to access the first file and the second file;
[0031] Determining whether to grant the first file permission for the second file includes: determining, based on the first request, to grant the first file permission for the second file.
[0032] In some embodiments, the method further includes: when it is determined that the user accessing the first file is a second user, updating the relevant content of the first file based on the content modified in the second file, wherein the second user does not have permission to access the second file.
[0033] In some embodiments, the method further comprises:
[0034] Determining that a user accessing the first file is a first user or a second user, wherein the first user has permission to access the first file and the second file, and the second user does not have permission to access the second file;
[0035] When it is determined that the first file is not granted permission for the second file, the content in the first file related to the reference to the content of the second file is updated to first information, where the first information is used to indicate the referenced content of the second file.
[0036] In some embodiments, the method further comprises:
[0037] Determining that the only user accessing the first file is the second user, wherein the second user does not have permission to access the second file;
[0038] When it is determined that the first file is not granted the authority for the second file, the content in the first file that is related to the historical content of the second file is updated.
[0039] In some embodiments, the method further comprises:
[0040] Determining that users accessing the first file are a first user and a second user, wherein the first user has permission to access the first file and the second file, and the second user does not have permission to access the second file;
[0041] When it is determined that the first file is not granted permission for the second file, content related to the content in the first file that is modified based on the content of the second file is updated, and the update of the content related to the content that is modified based on the content of the second file is triggered by the first user.
[0042] In some embodiments, the method further includes: in a case where it is determined that the first file is not granted permission for the second file, sending a prompt message, wherein the prompt message is used to prompt that the second file is granted permission for the first file.
[0043] In some embodiments, the permission of the first file on the second file includes one of the following:
[0044] A first sub-right, wherein the first sub-right is used to indicate the permission of the first file to the entire content of the second file;
[0045] The second sub-right is used to indicate the permission of the first file to a predetermined portion of the content of the second file.
[0046] A third aspect of the present disclosure provides a device for processing file authorization, including:
[0047] A detection module, configured to detect a first operation;
[0048] The first processing module is configured to determine, in response to the first operation, the granting of permissions of the first file to the second file; wherein, when the permissions of the first file to the second file are granted, the content changes of the second file can be updated and displayed in the first file.
[0049] A fourth aspect of the present disclosure provides a file authorization processing device, including:
[0050] A second processing module is configured to determine whether to grant the first file permission for the second file;
[0051] The update module is configured to update the content related to the content in the first file that is modified based on the content of the second file when it is determined that the first file has been granted permission for the second file.
[0052] A fifth aspect of the present disclosure provides an electronic device, including:
[0053] processor;
[0054] a memory for storing processor-executable instructions;
[0055] The processor is configured to implement any file authorization processing method of the embodiment of the present disclosure when running executable instructions.
[0056] A sixth aspect of an embodiment of the present disclosure provides a computer-readable storage medium, which stores an executable program. When the executable program is executed by a processor, the processing method for file authorization of any embodiment of the present disclosure is implemented.
[0057] A seventh aspect of the embodiments of the present disclosure provides a computer program product, which includes a computer program or instructions. When the computer program product or instructions are executed by a processor, any file authorization processing method of the embodiments of the present disclosure is implemented.
[0058] In the disclosed embodiment, the client detects a first operation; in response to the first operation, it is determined to grant the first file permission for the second file; wherein, in the case where the first file is granted permission for the second file, changes to the content of the second file can be updated and displayed in the first file. In this way, the disclosed embodiment can grant the first file permission for the second file, so that any user can update the changes to the content of the second file to the first file when accessing the first file; in this way, there is no need to authorize each user for the first file and the second file, reducing the cumbersome process of file authorization.
[0059] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0061] Figure 1 The figure is a flowchart of a first method for processing file authorization according to an exemplary embodiment.
[0062] Figure 2 The figure is a flowchart of a second method for processing file authorization according to an exemplary embodiment.
[0063] Figure 3 It is a flowchart of a third method for processing file authorization according to an exemplary embodiment.
[0064] Figure 4 It is a flowchart of a fourth method for processing file authorization according to an exemplary embodiment.
[0065] Figure 5 It is a flowchart of a fifth method for processing file authorization according to an exemplary embodiment.
[0066] Figure 6 It is a flowchart of a sixth method for processing file authorization according to an exemplary embodiment.
[0067] Figure 7 It is a flowchart of a seventh method for processing file authorization according to an exemplary embodiment.
[0068] Figure 8 The figure is a schematic diagram of the structure of a device for processing file authorization according to an exemplary embodiment.
[0069] Fig. 9 The figure is a schematic diagram of the structure of a device for processing file authorization according to an exemplary embodiment.
[0070] Fig.10 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0071] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the embodiments of the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present disclosure as detailed in the appended claims.
[0072] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0073] like Figure 1 As shown, the present disclosure provides a method for processing file authorization, comprising the following steps:
[0074] Step 11: Detecting a first operation;
[0075] Step 12: In response to the first operation, determine to grant the first file permission for the second file; wherein, when the first file is granted permission for the second file, changes to the content of the second file can be updated and displayed in the first file.
[0076] The method for processing file authorization provided by the embodiment of the present disclosure can be executed by various terminals or electronic devices; the terminal or electronic device is a terminal or electronic device used as a client. Optionally, the terminal or electronic device may include but is not limited to at least one of the following: a computer, a server, a tablet computer, a smart wearable device, a vehicle-mounted device, a smart home device, and a smart office device. Exemplarily, the method for processing file authorization provided by the embodiment of the present disclosure is executed by a client.
[0077] In some embodiments, the first file and the second file may be files of various types.
[0078] Exemplarily, the first file and / or the second file may be a table-type file. For example, both the first file and the second file may be a spreadsheet. A spreadsheet, also known as an electronic data table, is a file supported by a computer program that simulates a calculation table on paper. It displays a grid consisting of a series of rows and columns. Numerical values, calculation formulas, or texts may be stored in cells. For example, both the first file and the second file may be spreadsheets supported by EXCEL or WPS.
[0079] Exemplarily, the first file and / or the second file may be files including a table. For example, the first file and the second file may be files of a presentation type and / or a document type, and the first file and the second file may include a spreadsheet or the like.
[0080] Exemplarily, the first file and / or the second file may be a non-table type document. For example, the first file and the second file may be a presentation type and / or document type file, and the first file and the second file may contain text, graphics, audio and / or video files. Optionally, the first file and the second file may include links and / or areas with cell formats; links and / or areas with cell formats in one file may be used to reference content in another file.
[0081] In some embodiments, the first file and the second file may be online files or offline files. Exemplarily, both the first file and the second file may be online table files.
[0082] Here, online files are usually files stored on the server side, which can be accessed and operated through the network, and can also be set to allow multiple users to access and modify the file content at the same time. Offline files refer to files stored locally on the client side, which can be directly accessed without going through the network. When multiple users access the same offline file, they cannot view each other's changes to the file in real time.
[0083] Furthermore, the state of the online file may include an online state and an offline state. The online state means that there is a client accessing the online file through the network. The offline state means that there is no client accessing the online file through the network.
[0084] In some embodiments, an offline file may have an associated online file. When the offline file is opened using a client, the offline file may be switched to an online file associated with the offline file, so that the online file is in an online state. The online file may be accessed and operated through the network, and may be set to allow multiple users to access and modify the file content at the same time. Furthermore, after the online file is saved, the offline file associated with the online file may be synchronized based on the online file.
[0085] In some embodiments, step 11 includes: detecting a first operation when the first file references the second file. Here, both the first file and the second file are online; or the first file is online and the second file is offline.
[0086] Optionally, the first file quoting the second file may include: at least part of the content of the first file quoting at least part of the content of the second file. For example, the entire content of the first file quoting the entire or partial content of the second file, and in another example, part of the content of the first file quoting the entire or partial content of the second file. Exemplarily, the first content of the first file quoting the second content of the second file; wherein the first content may be the entire or partial content of the first file; and the second content may be the entire or partial content of the second file.
[0087] Optionally, when both the first file and the second file are table files or files including tables, the first file and the second file may each include at least one cell. Exemplarily, one or more cells of one file may reference one or more cells of another file.
[0088] Optionally, the first file and the second file may each include at least one region. Exemplarily, one or more regions of one file may reference one or more regions of another file; the region may include region data.
[0089] Optionally, the first file may include at least one first content; the second file may include at least one second content. Here, one first content may be at least one cell of the first file or may be the content of an area of the first file; one second content may be at least one cell of the second file or may be the content of an area of the second file.
[0090] Optionally, the manner in which the first file references the second file includes at least one of the following manners:
[0091] Method 1: Acquire the second content of the second file referenced by the first file, and display the first content in the first file as the second content.
[0092] Exemplarily, the content of the second cell of the second file is obtained, and the content of the second cell is the second content; and the content of the first cell in the first file is displayed as the content of the second cell, and the content of the first cell is the first content. Specifically, if the formula "=$AAA$BBB" is written in the first cell of the first file, where "$AAA" represents the address of the second file and "$BBB" represents the address of the second cell, then the first cell of the first file can reference the second cell of the second file. The above reference method of the address of the second file, the address of the second cell, and the formula is only an example, and the specific representation method is not limited.
[0093] Method 2: Obtain the second content of the second file referenced by the first file, and perform preset processing on the second content; display the first content in the first file as the second content after preset processing, wherein the preset processing may include at least one of the following: format processing, content processing.
[0094] Exemplarily, the format processing may include: adjusting the format of the second content to a format that matches the first content, and adjusting the format of the second content to a preset format.
[0095] Among them, format processing may include text format processing, image format conversion, text format processing, etc. Exemplarily, text format processing may include font selection, font size selection, etc. of text; for example, the second content of the second file may be displayed in the first file, and the second content may be adjusted to a font and / or font size that matches the first content. Exemplarily, image format conversion may include converting an image into a format such as JPEG or GIF; for example, the first content in the first file is displayed as a second image in a predetermined JPEG format, and the second image is the second content of the second file and is displayed in a GIF format in the second file. Exemplarily, text format processing may include page margin adjustment, line spacing adjustment, special paragraph format adjustment, etc.; for example, the second content of the second file is displayed in the first file, and the second content is adjusted to the same line spacing and / or page spacing as the first content.
[0096] Exemplarily, the content processing may include at least one of the following: formula calculation processing, content generation processing, and the like.
[0097] Among them, the formula calculation processing can be processed by a formula calculation service; the formula calculation service can calculate at least the second content according to the formula corresponding to the first content to obtain the calculated second content as the output result of the formula calculation service. Exemplarily, the formula corresponding to the first content can be: a formula configured for the first content. For example, the content displayed in the first cell of the first file is the first content, and the first formula is set in the first cell. The first formula is used to calculate the sum of the squares of the contents of the second cell to the sixth cell of the second file, wherein the contents of the second cell to the sixth cell of the second file are the second content; the formula calculation service calculates the sum of the squares of the contents of the second cell to the sixth cell of the second file, and displays the sum of the squares as the first content in the first cell of the first file.
[0098] Among them, the content generation process can be processed by a content generation service; the content generation service is a service that can automatically generate content, and the generated content can include text, rich text, etc. Specifically, the content generation service is integrated with preset functions related to content processing. This function can be implemented by a neural network model or a preset content processing rule. Exemplarily, the neural network model can be a large language model, a generative adversarial model, an encoder and / or a decoder, etc., which can be used to implement functions related to content processing such as proofreading text errors, detecting sensitive words, summaries or document polishing. The preset content processing rule can be a rule for proofreading text errors, detecting sensitive words or document polishing, so as to implement content processing functions such as proofreading text errors, detecting sensitive words or document polishing. In a specific embodiment, the content generation service can process the received content with the corresponding function and then output the result. For example, the second content can be used as the input content of the content generation service, and the content generation service generates the processed second content after processing the input second content as the output result of the content generation service.
[0099] Method three: obtaining the second content of the second file referenced by the first file, and displaying the first content in the first file as first information indicating the second content, wherein the first information may include at least one of the following: a link, a formula, a character string, an icon, etc.
[0100] The displaying of the first content of the first file as the first information indicating the second content may be performed without granting the first file permission for the second file.
[0101] In some embodiments, when it is determined that the first file is granted permission to access the second file, changes to the content of the second file can be updated and displayed in the first file.
[0102] In some embodiments, when it is determined that the first file is granted permission to the second file, if both the first file and the second file are online, a subscription between the first file and the second file can be established; through the subscription, changes to the content of the second file can be updated and displayed in the first file.
[0103] Optionally, the first file subscribing to the second file means that the first file subscribes to the update of the second file (content modification of the second file). Subscription between files may include: file-level subscription and content-level subscription.
[0104] The file-level subscription refers to subscription based on the file dimension. For example, when a first file subscribes to a second file at the file-level, any changes to the content of the second file can be updated in the first file accordingly.
[0105] Content-level subscription refers to subscribing to part of the content in a file. For example, when the first file subscribes to the second file at the content level, the second file will be updated in the first file only when the content subscribed by the first file changes; even if the content not subscribed by the first file changes, it cannot be updated in the first file.
[0106] Optionally, a prerequisite for establishing a subscription between the first file and the second file may be: the first file is related to the second file, and the first file and the second file are online.
[0107] Optionally, the prerequisite for establishing a subscription between the first file and the second file may be: the first file is related to the second file, the first file and the second file are online, and the first file authorizes the second file.
[0108] Optionally, the prerequisite for establishing a subscription between the first file and the second file may be: the first file is related to the second file, the first file and the second file are online, and the user accessing the first file has the authority to access the first file and the second file.
[0109] Here, the relevance between the first file and the second file means that the content of the first file is changed as the content of the second file is changed, which may include but is not limited to: there is a reference relationship between the first file and the second file.
[0110] In some embodiments, the subscription between the first file and the second file may include: a subscription between the first file and part or all of the content of the second file.
[0111] Optionally, the subscription between the first file and part or all of the contents of the second file may include: in the case where there is at least one group of related contents between the first file and the second file, the subscription between at least part of the related contents may be implemented.
[0112] The following is a detailed description using the example of the relevant content being the content having a reference relationship.
[0113] Exemplarily, the first file may include a first first content and a second first content; the second file may include a first second content and a second second content; it is assumed that: the first first content of the first file may reference the first second content of the second file, and the second first content of the first file may reference the second second content of the second file.
[0114] At this time, a method for implementing the subscription between the first file and part or all of the content of the second file can be: the server establishes a subscription between the first file and the entire content of the second file; for example, a subscription is established between the first first content of the first file and the first second content of the second file, and a subscription is established between the second first content of the first file and the second second content of the second file. If the first second content of the second file is changed, the changed content of the first second content in the second file is updated in the first first content of the first file; or, if the second content of the second file is changed, the changed content of the second second content in the second file is updated in the second first content of the first file.
[0115] Another way to implement the subscription between the first file and part or all of the content of the second file may be: the server establishes a subscription between the first file and part of the content of the second file; for example, a subscription is established between the first first content of the first file and the first second content of the second file, or a subscription is established between the second first content of the first file and the second second content of the second file. For example, if the first first content of the first file subscribes to the first second content of the second file; if the first second content of the second file is changed, the changed content of the first second content of the second file is updated in the first first content of the first file; or, if the changed content of the second content of the second file is changed, if the second first content of the first file does not subscribe to the second second content of the second file, the second second content of the first file is not updated.
[0116] In the case of establishing a subscription between the first file and part of the content of the second file, it can be determined whether to establish a subscription between the contents based on the aforementioned different subscription preconditions. For example, the subscription precondition includes that the user accessing the first file has access rights to the first file and the second file. In the above embodiment, if the user has access rights including: allowing access to the first first content of the first file, allowing access to the second first content of the first file, allowing access to the first second content of the second file, and not allowing access to the second second content of the second file, then in the case where the first first content references the first second content and the second first content references the second second content, since the user has access rights to the first first content and the first second content, a subscription between the first first content and the first second content can be established; since the user does not have access rights to the second second content, a subscription between the second first content and the second second content cannot be established.
[0117] In some other embodiments, establishing a subscription between a first file and part or all of the contents of a second file means that the subscription of the first file to the second file is a content-level subscription or a file-level subscription.
[0118] In some embodiments, the first operation is a related operation for initiating granting the first file permission to the second file.
[0119] Optionally, the first operation may be various operations such as clicking, selecting, right-clicking, double-clicking or sliding.
[0120] Optionally, the first operation may be any operation that initiates authorization, or the first operation may be an operation that can affect the authorization content through an application. The authorization content may be content that implements the authorization of the first file to the second file; for example, the authorization content may be an interface, an interface, a setting entry or a program that can provide whether to authorize the first file to the second file. Here, authorization means granting permission.
[0121] Optionally, the client sends a first request to the server, the first request being used to request that the first file be granted permission for the second file. Here, sending the first request may be considered as a first operation or a request triggered by the first operation; that is, the first operation may also be at least two consecutive operations.
[0122] Optionally, the first request is used to request the server to grant the first file permission for the second file.
[0123] In other embodiments, the client may also determine to grant the first file permission to the second file based on the authorization relationship, wherein the authorization relationship at least indicates that the first file has permission to the second file. Optionally, the authorization relationship may be obtained from the server; here, the server performs the authorization operation of the first file to the second file and sends the authorization relationship to the client, so that the client knows the authorization status of the first file to the second file.
[0124] Optionally, the permissions of the first file for the second file can be considered as file permissions rather than simple user permissions. Granting the first file permissions for the second file means that the server can bypass the user permission judgment for accessing the first file and the second file, and when the first file has permissions for the second file, the content of the first file can be updated based on the changes in the second file. Currently, the premise for granting the first file permissions for the second file is that the user logged in by the client initiating the first request is the first user, and the first user has permissions to access the first file and the second file. In other words, in the embodiment of the present disclosure, the user permissions are actually judged in advance, and there is no need to judge the user permissions again during the file update stage, which improves the efficiency of file updates and reduces the frequency of updates being blocked.
[0125] In some embodiments, the content change of the second file in step 12 can be updated and displayed in the first file, which may include: displaying content related to the content changed based on the content of the second file in the first file. Optionally, the content change of the second file includes at least a partial content change of the second file.
[0126] Optionally, the second file includes a second content, and the second content of the second file is processed to obtain a third content, and the third content is: content in which the content of the second file is modified. Exemplarily, processing the second content of the second file to obtain the third content may include: performing a first operation on the second content of the second file to obtain the third content; wherein the first operation may include but is not limited to at least one of the following: adding, deleting, modifying, etc. at least part of the second content.
[0127] In some embodiments, the method further includes: when it is determined that the first file is granted permission to the second file, obtaining a first file version in which the content of the second file has been changed; and updating or displaying content related to the content of the second file that has been changed in the first file based on the first file version.
[0128] Optionally, the first file version includes at least one of the following: changed content in the second file, that is, changed content in the second file; the second file after the content is changed; content in the second file related to the first file; changed content in the second file related to the first file.
[0129] The modified content may refer to the modified content, the modified operation and / or the identifier of the modified content. For example, when the modification of the second file is to perform the first operation on the second content of the second file to obtain the third content, the third content is the modified content, the first operation is the modified operation, and the identifier of the second content is the identifier of the modified content. Then, the modified content may refer to at least one of the third content, the first operation, and the identifier of the second content.
[0130] The following is a detailed description using the modified content as an example.
[0131] For example, when the first file version is the entire second file, the first file version may include: the second file with modified content. The first file may update the part of the first file related to the second file based on the first file version having the entire content of the second file.
[0132] For another example, when the first file version is part of the second file, the first file version may include: the modified part of the second file, such as the modified content in the second file, or the modified content in the second file related to the first file.
[0133] For another example, when the first file version is part of the second file, the first file version may include: the part of the second file related to the first file, such as the content in the second file related to the first file, and the modified content of the content in the second file related to the first file.
[0134] For another example, when the first file version is part of the second file, the first file version may include: the part of the second file related to the first file, and the modified part of the second file, such as the modified content of the content in the second file related to the first file.
[0135] Exemplarily, the changed content in the second file may be: a snapshot of the changed content in the second file, etc. For example, if the content in the second to sixth cells in the second file is changed, the first file version may include the changed second to sixth cells in the second file.
[0136] Here, a snapshot refers to a copy or a replica of data reproduction; for example, for a file, a snapshot of the file may refer to an instant copy of the file, which includes all information of the file at the time when the snapshot is generated.
[0137] Exemplarily, the second file after the content is changed may be: a snapshot of the second file after the content is changed, etc. For example, if the content in the second to sixth cells in the second file is changed, the first file version may include the second file, and the second to sixth cells in the second file display the changed content.
[0138] Exemplarily, the content in the second file related to the first file may be: a snapshot of the content in the second file related to the first file; for example, the content in the second file related to the first file may be: a snapshot of the content of the part of the second file referenced by the first file.
[0139] Exemplarily, the changed content of the content related to the first file in the second file may be: a snapshot of the changed content of the content related to the first file in the second file; for example, the changed content of the content related to the first file in the second file may be: a snapshot of the changed content of the part of the content in the second file referenced by the first file, the second file has a first second content and a second second content, both of which are referenced by the first file, but only the second second content is changed, then the changed content is a snapshot of the modified second second content.
[0140] In this way, the first file version with the content of the second file changed can be obtained by obtaining a snapshot or the like, that is, the first file version can be obtained in a variety of file formats to adapt to more application scenarios.
[0141] In this way, when the content of the second file is changed, only the changed content and / or the changed content related to the first file can be obtained, thereby reducing data transmission, saving power consumption, etc. Alternatively, the entire second file including the changed content or all content related to the first file can be obtained, so there is no need to extract the changed content of the second file, which facilitates the operation of the service of the second file and reduces the amount of calculation of the service of the second file.
[0142] In some embodiments, the permission of the first file to the second file includes one of the following:
[0143] A first sub-right, wherein the first sub-right is used to indicate the permission granted to the first file for all contents of the second file;
[0144] The second sub-right is used to indicate the right granted to the first file for a predetermined portion of content of the second file.
[0145] For example, if it is determined that the first file is granted the first sub-rights for the second file, when any content of the second file is modified, the content related to the second file can be updated in the first file.
[0146] Exemplarily, if it is determined that the first file is granted the second sub-rights for the second file, such as granting the first file the second sub-rights for the first second content of the second file, but not granting the second sub-rights for the second second content of the second file; then when the first second content of the second file is changed, the content related to the first second content of the second file can be updated in the first file; and when the second second content of the second file is changed, the content related to the second second content of the second file cannot be updated in the first file. Here, the first second content of the second file is a predetermined part of the content. Optionally, the first second content and the second second content of the second file can both be considered as sub-files of the second file.
[0147] Exemplarily, the first second content and the second second content of the second file in the above example can both be considered as subfiles of the second file. For example, the first second content and the second second content of the second file can be divided into the first subfile and the second subfile of the second file respectively, and the first subfile and the second subfile can be two files stored in the same storage location; if the first file is granted permission for the first subfile and the first file is not granted permission for the second file, then in the case of a change in the first subfile, the content related to the changed content of the first subfile can be updated in the first file, and / or, in the case of a change in the second subfile, the changed content of the second subfile cannot be updated in the first file.
[0148] In the embodiments of the present disclosure, the first file can authorize the entire second file, or the first file can authorize part of the content of the second file; if the first file authorizes part of the content of the second file, smaller granularity authorization management can be achieved.
[0149] In the embodiments of the present disclosure, when a user account has multiple files, at least some of the files can be open to the public and / or at least some of the files can be kept confidential, or at least some of the content in a file can be open to the public and / or at least some of the content can be kept confidential, thereby flexibly achieving effective permission management over the data of multiple files.
[0150] In some embodiments, the permission of the first file to the second file may include a subscription permission. Optionally, both the first sub-permission and the second sub-permission may refer to a subscription permission.
[0151] The first sub-rights may refer to the right to grant the first file to subscribe to the entire contents of the second file; that is, the first sub-rights are file-level subscription rights. For example, if the first file is granted the first sub-rights for the second file, the first file or part of the first file's contents may subscribe to the entire contents of the second file.
[0152] The second sub-rights may refer to the right to grant the first file to subscribe to a predetermined part of the content of the second file; that is, the second sub-rights may be a content-level right. For example, the second file includes a first second content and a second second content; if the first file is granted the second sub-rights for the second file, and the first second content is a predetermined part of the content, then the part of the content of the first file may subscribe to the first second content of the second file; or, if the first file is granted the second sub-rights for the second file, and the second second content is a predetermined part of the content, then the part of the content of the first file may subscribe to the second second content of the second file.
[0153] Optionally, a prerequisite for the first file or part of the first file's content to subscribe to the entire content of the second file may be: the first file or part of the first file's content is relevant to the entire content of the second file, and the first file and the second file are online.
[0154] Optionally, a prerequisite for the first file or part of the content of the first file to subscribe to the entire content of the second file may be: the first file or part of the content of the first file is related to the entire content of the second file, and the first file authorizes the second file.
[0155] Optionally, a prerequisite for the first file or part of the content of the first file to subscribe to the entire content of the second file may be: the first file or part of the content of the first file is relevant to the entire content of the second file, the first file and the second file are online files, and the user accessing the first file has access rights to the first file and the second file.
[0156] Optionally, a prerequisite for the partial content of the first file (for example, the first content) to subscribe to the predetermined partial content of the second file may be that the partial content of the first file (for example, the first content) is relevant to the predetermined partial content of the second file, and the first file and the second file are online.
[0157] Optionally, a prerequisite for the partial content of the first file (such as the first content) to subscribe to the permission of the predetermined partial content of the second file may be: the partial content of the first file (such as the first content) is relevant to the predetermined partial content of the second file, and the first file authorizes the second file.
[0158] Optionally, a prerequisite for the partial content of the first file (e.g., the first content) to subscribe to the permission of the predetermined partial content of the second file may be: the partial content of the first file (e.g., the first content) is related to the predetermined partial content of the second file, the first file and the second file are online, and the user accessing the first file has access rights to the first file and the second file.
[0159] In some embodiments, granting the first file permission for the second file may include: granting at least one first file permission for the second file. Optionally, granting multiple first files permission for the second file. In this way, granting multiple files to one file can be achieved.
[0160] In some other embodiments, granting the first file permission for the second file may include: granting a first file permission for at least one second file.
[0161] Optionally, the first file is granted permissions for multiple second files, so that one file can grant permissions to multiple files.
[0162] Optionally, the first file is granted permission for the first part of the content of the first second file, and the first file is granted permission for the second part of the content of the second second file. In this way, the granting control of one file for different parts of the content of multiple files can be achieved.
[0163] Optionally, the first file is granted the first sub-rights for some of the second files among the multiple second files and the second sub-rights for the other parts of the second files. Exemplarily, the first file is granted the rights for three second files; wherein, the first file is granted the first sub-rights for the first second file, the first file is granted the second sub-rights for the first part of the content of the second second file, and the first file is granted the second sub-rights for the second part of the content of the third second file. In this way, one file can be authorized to the entire contents of some files among multiple files and / or to the partial contents of some files, thereby achieving more flexible file authorization management and control.
[0164] In some embodiments, the method further includes: in a case where it is determined that the first file is granted permission for the second file, displaying content in the first file that is related to content that has been modified based on content of the second file.
[0165] Optionally, in the case where the first file is granted permission for the second file, when any user opens the first file, the first file can display content related to the content that has changed based on the content of the second file. In some technical solutions, if a user needs to open the first file, no matter which user it is, it is necessary to grant the user access rights for the second file so that the changes in the second file referenced by the first file can be updated and displayed in the first file; if there are multiple users, it is necessary to authorize access rights for the second file to multiple users, making the process very cumbersome, or the changes in the second file cannot be updated in time to the first file. In the embodiment of the present disclosure, it is not necessary to set access rights for the second file for each user. It is only necessary to grant the first file access rights for the second file, so that the content of the second file referenced by the first file or the changes in the content can be updated in the first file, which reduces the cumbersome process of file authorization, and can achieve the technical effect that the changes in the second file cannot be updated in time to the first file.
[0166] Optionally, any user may be a first user and / or a second user, etc.; the first user has the authority to access the first file and the second file; the second user does not have the authority to access the second file. Here, the first user may be a file manager; the second user may be a collaborator.
[0167] In the disclosed embodiment, the client detects the first operation; in response to the first operation, it is determined to grant the first file permission to the second file; in the case of granting the first file permission to the second file, the content changes of the second file can be updated and displayed in the first file. In this way, the disclosed embodiment can grant the first file permission to the second file, so that any user can update the content changes of the second file to the first file when accessing the first file; in this way, there is no need to grant each user access rights to the first file and the second file, which reduces the cumbersome process of file authorization.
[0168] In some embodiments, before determining in step 12 that the first file is granted permission for the second file, it may include: when the first file is accessed by the first user, sending a first request initiated by the first user, wherein the first request is used to grant the first file permission for the second file, and the first user has permission to access the first file and the second file. In the disclosed embodiment, it can be considered that once the client sends the first request for requesting the first authorization for the second file to the server, the server will perform the operation of granting the first file permission for the second file. If the server performs the authorization successfully, it can send a message to the client indicating that the authorization is successful, so that the client can determine that the first file has been granted permission for the second file based on the message.
[0169] In some other embodiments, determining in step 12 whether to grant the first file permission to the second file may include: sending a first request initiated by the first user when the first file is accessed by the first user, wherein the first request is used to grant the first file permission to the second file, and the first user has permission to access the first file and the second file; and determining to grant the first file permission to the second file when the first file displays content related to content that has been modified based on the content of the second file. In the disclosed embodiment, it can be considered that after the client logged in by the first user sends the first request for requesting grant, if the client can display content related to the content change of the second file in the first file, it determines that the first file is granted permission to the second file.
[0170] For example, Figure 2 As shown, in some embodiments, step 12 may include:
[0171] Step 121: When the user accessing the first file is the first user, a first request initiated by the first user is sent, where the first request is used to grant the first file permission for the second file, and the first user has permission to access the first file and the second file;
[0172] Step 122: When displaying the first file, determine the permission granted to the first file for the second file, wherein the first file updates or displays content related to content modified based on the content of the second file.
[0173] Optionally, the access rights of the first user and the second user to the file may be considered as user rights.
[0174] Optionally, sending the first request initiated by the first user in step 121 may include: sending the first request initiated by the first user to the server, so that the server determines to grant the first file permission for the second file.
[0175] It should be noted that since the second user does not have permission to access the second file, he cannot initiate the first request, or the server rejects the first request initiated by the second user, or the server determines not to grant the first file permission to the second file in response to the first request initiated by the second user.
[0176] In the embodiment of the present disclosure, since the first user can access the first file and the second file, the first user can be directly authorized with the first file for the second file, so that when the first file is accessed by the first user, the referenced second file can be displayed, thereby realizing the intercommunication of data between files.
[0177] like Figure 3 As shown, in some implementations, the method further includes:
[0178] Step 13: Determine that the user accessing the first file is the second user, wherein the second user does not have permission to access the second file;
[0179] Step 14: When it is determined that the first file has been granted permission for the second file, trigger an update of content in the first file related to content that has been modified based on content in the second file, and / or display the first file, where the first file displays content related to content that has been modified based on content in the second file.
[0180] In an optional embodiment, a method for processing file authorization may include: step 13 and step 14.
[0181] Exemplarily, the first content of the first file references the second content of the second file; the client has confirmed that the server has granted the first file permission for the second file. When the first file is accessed by the second user, the second content of the second file or the related content processed based on the second content is displayed in the first content of the first file; or, if the second content of the second file is changed, the changed content of the second content of the second file or the content processed based on the changed content of the second content is displayed in the first content of the first file.
[0182] In some embodiments, when the first file is granted permission for the second file, any user with access rights to the first file accesses the first file, which can trigger the first file to update the content related to the second file. In order to save server resources, optionally, in the case where there is no user accessing the first file, the update of the first file is not triggered. In the case where the first file is not granted permission for the second file, only the first user can trigger the first file to update the content related to the second file, and the first user is a user with access rights to the first file and the second file.
[0183] Further, after the triggering of the first file to update the content related to the second file is completed, the updated content related to the second file in the first file can be set to display in different ways.
[0184] Optionally, the first display method is: any user with access rights to the first file, regardless of whether or not he has access rights to the second file, can view the content related to the first file and the second file. Since granting the first file permission to the second file means that the server can bypass the user permission judgment for accessing the first file and the second file, when the first file has permission to the second file, the content of the first file can be updated based on the changes in the second file; in this way, even if the second user does not have access rights to the second file, since the first file is granted permission to the second file, the changes in the second file can be updated to the first file, thereby realizing effective management based on file-level authorization.
[0185] The second display method is: the content related to the second file updated in the first file is displayed based on the user's access rights to the second file. For example, if the user has access rights to the first file but does not have access rights to the second file, the user cannot view the content related to the second file in the first file. In this way, the corresponding content can be displayed when accessing the first file based on the first file's permissions to the second file and / or whether the user has access rights to the referenced second file, so that non-private data can be displayed externally and private data is strictly kept confidential, reducing the risk of private data being leaked while achieving effective permission control.
[0186] The third display mode is: the content related to the content of the second file referenced in the first file is displayed as the first information, and the first information is used to indicate the referenced content of the second file. In this way, the content that is not granted with file permissions will not be referenced and displayed, thereby improving the security of private data.
[0187] In some embodiments, when the first file is granted permission for the second file, the first display mode is adopted. When the first file is not granted permission for the second file, the third display mode is adopted.
[0188] In a specific embodiment, the method further comprises:
[0189] Determining that a user accessing the first file is a first user or a second user, wherein the first user has permission to access the first file and the second file, and the second user does not have permission to access the second file;
[0190] When it is determined that the first file is not granted permission for the second file, the first file is displayed, and the content related to the content of the second file referenced in the first file is displayed as first information, where the first information is used to indicate the referenced content of the second file.
[0191] Optionally, the first information may include at least one of the following: a link, a formula, a character string, and an icon.
[0192] Exemplarily, the first content of the first file references the second content of the second file; when the client determines that the first file has not been granted permission for the second file, the first content of the first file is displayed as a link or a formula, and the link or formula is used to indicate the second content of the referenced second file. For example, if the second content of the second file is determined based on the first formula, the first formula is displayed in the first content of the first file. For another example, if the first content of the first file references the second content of the second file through a first link, the first link is displayed in the first content of the first file.
[0193] Exemplarily, when it is determined that the first file is not granted permission for the second file, the portion of the first file that references the content of the second file is not updated in the first file regardless of whether the first user or the second user accesses the first file.
[0194] In the disclosed embodiment, when it is determined that the first file is not granted permission to the second file, neither the first user who has access rights to the second file nor the second user who does not have permission to the second file can access the first file, so that the referenced second file content is displayed in the first file, and only the first information indicating the second file content can be displayed, so that the content for which the file permission is not granted is not referenced and displayed, thereby improving the security of private data.
[0195] In the above embodiment, whether the first file is granted permission to the second file can be used to determine whether the referenced second file content is displayed when accessing the first file, so that non-private data can be displayed externally and private data is strictly kept confidential, thereby reducing the risk of private data being leaked and achieving effective permission control.
[0196] In some embodiments of the first display mode, the method further includes:
[0197] Determining that the only user accessing the first file is the second user, wherein the second user does not have permission to access the second file;
[0198] In the case where it is determined that the first file is not granted the authority for the second file, the first file is displayed, and the first file is displayed with content related to the historical content based on the second file.
[0199] Optionally, the historical content of the second file may be previously stored in the first file, the second file, the server or the client. The historical content of the second file may be open to the first file, or the historical content of the second file may have been updated in the first file.
[0200] In the disclosed embodiment, based on the second user accessing the first file, if it is determined that the first file is not granted permission for the second file, the client displays content related to the historical content of the second file in the first file; since the second user has no permission to access the second file and the client determines that the first file is not granted permission for the second file, it is set that the content related to the changes in the content of the second file cannot be displayed in the first file, thereby reducing the risk of the content of the second file being leaked. Since the historical content of the second file is not as confidential as the latest changed content, it may be content that has been opened to the first file or has been displayed in the first file before, so displaying content related to the historical content of the second file in the first file does not increase the risk of the existing changed content of the second file being leaked.
[0201] In some embodiments, the method further comprises:
[0202] Determining that users accessing the first file are a first user and a second user, wherein the first user has permission to access the first file and the second file, and the second user does not have permission to access the second file;
[0203] When it is determined that the first file is not granted permission for the second file, the first file is displayed, wherein the first file displays content related to content modified based on content of the second file, and the content related to content modified based on content of the second file is triggered to be generated by the first user.
[0204] Optionally, the generation is triggered by the first user and can be generated by: after the first user opens the first file, triggering the server to update the content related to the second file in the first file.
[0205] Optionally, the generation triggered by the first user may be: generated by a second operation of the first user, wherein the second operation may be in response to the program opening the first file, and the second operation may be various operations such as opening, double-clicking or right-clicking.
[0206] In the disclosed embodiment, when the first user accesses the first file, although the first file is not granted permission to access the second file, since the first user has permission to access the first file and the second file, the content related to the content modified based on the content of the second file can also be displayed in the first file. Here, the second file is data that can be made public to the first user, so the risk of private data leakage will not be increased.
[0207] In some embodiments, before sending the first request initiated by the first user, the method further includes: obtaining prompt information, wherein the prompt information is used to prompt the first file's permission on the second file;
[0208] Sending a first request initiated by a first user includes: sending the first request initiated by the first user based on the prompt information.
[0209] Optionally, obtaining prompt information includes: receiving prompt information sent by the server.
[0210] In the embodiment of the present disclosure, when the first file has not yet been granted permission to the second file, a first request of the first file to the second file can be determined based on the prompt information, so that the server can implement control over the first file to the second file.
[0211] In other embodiments, the method further includes: obtaining prompt information when it is determined that the first file is not granted permission for the second file, wherein the prompt information is used to prompt that the first file is granted permission for the second file; and after receiving the prompt information, sending a first request. In this way, after obtaining the prompt information indicating that the first file is not granted permission for the second file, the client can initiate a first request requesting granting, so that the server can execute the granting of the first file for the second file.
[0212] The following is a processing method for file granting executed by the server, which is similar to the description of the processing method for file granting executed by the client mentioned above; for technical details and beneficial effects not disclosed in the embodiment of the processing method for file granting executed by the server in the disclosed embodiment, please refer to the description of the embodiment of the processing method for file granting executed by the client in the disclosed embodiment, which will not be repeated here.
[0213] like Figure 4 As shown, the second aspect of the embodiment of the present disclosure provides a method for processing file authorization, including:
[0214] Step 21: Determine whether to grant the first file permission for the second file;
[0215] Step 22: When it is determined that the first file has been granted permission to access the second file, update the first file with content related to the content that has been modified based on the content of the second file.
[0216] The method for processing file authorization in the embodiment of the present disclosure may be executed by a terminal or an electronic device, which is a terminal or an electronic device used as a server. Optionally, the method for processing file authorization provided in the embodiment of the present disclosure is executed by a server.
[0217] In some embodiments, the first file and the second file may be the first file and the second file in the above embodiment, respectively; the first user and the second user may be the first user and the second user in the above embodiment, respectively; the permission of the first file to the second file may be the permission of the first file to the second file in the above embodiment. For example, the first sub-permission and the second sub-permission may be the first sub-permission and the second sub-permission in the above embodiment, respectively.
[0218] In some embodiments, before step 21, the method further includes: determining that the first file references the second file.
[0219] In some embodiments, step 21 may further include: determining that the first file subscribes to the second file.
[0220] Optionally, the method may include: if it is determined that the first file is not granted permission for the second file, if the first file and the second file are online and the user accessing the first file is the first user, establishing a subscription between the first file and the second file.
[0221] Optionally, the method may include: in the case of determining that the first file is granted permission for the second file, if the first file and the second file are online, establishing a subscription between the first file and the second file. In the case of file authorization, regardless of whether the user accessing the first file is the first user or the second user, the establishment of a subscription between the first file and the second file can be triggered.
[0222] In some embodiments, the method further includes: obtaining a first request, wherein the first request is used to grant the first file permission to the second file; determining in step 22 whether to grant the first file permission to the second file includes: determining, based on the first request, to grant the first file permission to the second file.
[0223] Optionally, the first request is initiated by a first user, and the first user has access rights to the first file and the second file. Here, the first user may initiate the first request when accessing the first file.
[0224] In some embodiments, the method further includes: updating relevant content of the first file based on the modified content of the second file when it is determined that the user accessing the first file is the first user, wherein the first user has permission to access the first file and the second file.
[0225] In some embodiments, the method further includes: when it is determined that the user accessing the first file is a second user, updating the relevant content of the first file based on the content modified in the second file, wherein the second user does not have permission to access the second file.
[0226] In some embodiments, the method further comprises:
[0227] Determining that a user accessing the first file is a first user or a second user, wherein the first user has permission to access the first file and the second file, and the second user does not have permission to access the second file;
[0228] When it is determined that the first file is not granted permission for the second file, it is determined that the content related to the content modified based on the content of the second file is not updated in the first file. Here, no matter whether the first user or the second user accesses the first file, the content related to the content modified based on the content of the second file is not updated in the first file.
[0229] In some embodiments, the method further comprises:
[0230] Determining that a user accessing the first file is a first user or a second user, wherein the first user has permission to access the first file and the second file, and the second user does not have permission to access the second file;
[0231] When it is determined that the first file is not granted permission for the second file, the content in the first file related to the reference to the content of the second file is updated to first information, where the first information is used to indicate the referenced content of the second file.
[0232] In some embodiments, the method further comprises:
[0233] Determining that the only user accessing the first file is the second user, wherein the second user does not have permission to access the second file;
[0234] When it is determined that the first file is not granted the authority for the second file, the content in the first file that is related to the historical content of the second file is updated.
[0235] In some embodiments, the method further comprises:
[0236] Determining that users accessing the first file are a first user and a second user, wherein the first user has permission to access the first file and the second file, and the second user does not have permission to access the second file;
[0237] When it is determined that the first file is not granted permission for the second file, content related to the content in the first file that is modified based on the content of the second file is updated, and the update of the content related to the content that is modified based on the content of the second file is triggered by the first user.
[0238] In some embodiments, the method further includes: in a case where it is determined that the first file is not granted permission for the second file, sending a prompt message, wherein the prompt message is used to prompt that the second file is granted permission for the first file.
[0239] In some embodiments, the server determines to grant at least one first file permission for a second file. Optionally, the client determines to grant multiple first files permission for a second file. In this way, multiple files can be granted permission for one file.
[0240] In other embodiments, the server determines to grant a first file permission to at least one second file.
[0241] Optionally, the server determines to grant the first file permission for multiple second files, so that one file can grant permission for multiple files.
[0242] Optionally, the server determines to grant the first file permission for the first part of the content of the first second file, and to grant the first file permission for the second part of the content of the second second file. In this way, the granting control of one file for different parts of the content of multiple files can be implemented.
[0243] Optionally, the server determines to grant the first file a first sub-right for some of the second files among the multiple second files and a second sub-right for the other parts of the second files. Exemplarily, the server determines to grant the first file the rights for three second files; wherein, it is determined to grant the first file a first sub-right for the first second file, it is determined to grant the first file a second sub-right for the first part of the content of the second second file, and it is determined to grant the first file a second sub-right for the second part of the content of the third second file. In this way, it is possible to implement the authorization of a file to the entire contents of some files among multiple files and / or the authorization of partial contents of some files, thereby achieving more flexible file authorization management and control.
[0244] In order to further explain any embodiment of the present disclosure, several specific embodiments are provided below.
[0245] Example 1
[0246] like Figure 5 As shown, a method for processing file authorization is provided in an embodiment of the present disclosure, which is executed by a client and includes the following steps:
[0247] Step 31: Determine whether the first file is granted permission to the second file; if so, execute step 32; if not, execute step 33.
[0248] Step 32: If it is determined that the first file has been granted permission for the second file, then step 321 or step 322 is executed.
[0249] Step 321: When the user accessing the first file is the first user, the first file is displayed, and the first file displays content related to the content modified based on the content of the second file.
[0250] Step 322: When the user accessing the first file is the second user, the first file is displayed, and the first file displays content related to the content modified based on the content of the second file.
[0251] Step 33: If it is determined that the first file is not granted permission for the second file, then step 331 or step 332 is executed.
[0252] Step 331: When the user accessing the first file is only the second user, the first file is displayed, and the first file is displayed with content related to the historical content of the second file.
[0253] Step 332: When the users accessing the first file are the first user and the second user, the first file is displayed, and the first file displays content related to the content modified based on the content of the second file, and the content related to the content modified based on the content of the second file is triggered and generated by the first user.
[0254] In the disclosed embodiment, the content displayed by the first file can be analyzed based on determining whether the first file is granted permission for the second file. For example, if it is determined that the first file is granted permission for the second file, the content related to the content change of the second file can be displayed in the first file. For another example, if it is determined that the first file is not granted permission for the second file, the content related to the content change of the second file cannot be displayed in the first file. In this way, accurate and effective permission management and control of files can be achieved, such as effective management and control of the disclosure of non-private data to the outside and / or the strict confidentiality of private data to the outside.
[0255] Example 2
[0256] like Figure 6 As shown, a method for processing file authorization is provided in an embodiment of the present disclosure, which is executed by a client and includes the following steps:
[0257] Step 31: Determine whether the first file is granted permission to the second file; if so, execute step 32; if not, execute step 33.
[0258] Step 32: If it is determined that the first file has been granted permission for the second file, then step 323 or step 324 is executed.
[0259] Step 323: When the user accessing the first file is the first user, the first file is displayed, and the first file displays content related to the content modified based on the content of the second file.
[0260] Step 324: When the user accessing the first file is the second user, the first file is displayed, and the first file displays content related to the content modified based on the content of the second file.
[0261] Step 33: If it is determined that the first file is not granted permission for the second file, execute step 333.
[0262] Step 333: Display the first file, and display the content related to the content of the second file cited in the first file as the first information.
[0263] In the disclosed embodiment, if it is determined that the first file is not granted permission for the second file, the content of the first file that references the second file can be displayed as the first information, that is, the content that is not granted file permission is not referenced and displayed, thereby improving the security of private data.
[0264] Example 3
[0265] like Figure 7 As shown, a method for processing file authorization is provided in an embodiment of the present disclosure, comprising the following steps:
[0266] Step 41: The client logged in by the file manager initiates a first request to grant the first file permission to the second file. Optionally, the client logged in by the file manager has access rights to the first file and the second file.
[0267] Step 42: The client logged in by the collaborator accesses the first file. Optionally, the client logged in by the collaborator has access rights to the first file, but does not have access rights to the second file.
[0268] Step 43: The service of the first file sends a second request to the server.
[0269] Optionally, the second request is used to obtain the content of the second file. Optionally, the server may be the service end in the above embodiment.
[0270] Step 441: If the server determines that the first file has not been granted permission to access the second file, the server prompts the client logged in by the file manager to grant permission.
[0271] Optionally, if the server determines that the first file is not granted permission for the second file, the server does not send the second request to the service of the second file, and sets the content in the first file related to the second file to be displayed as the first information.
[0272] Step 442: If the server determines to grant the first file permission to the second file, the server sends a second request.
[0273] Step 45: The service of the second file sends the content of the second file to the server.
[0274] Step 46: The server sends the content of the second file to the service of the first file.
[0275] In the embodiment of the present disclosure, when the client logged in by the file manager references the second file in the first file, it is necessary to first associate the first file with the second file and grant the first file permission for the second file; if the first file is not granted permission for the second file, if the collaborator does not have access rights to the second file, the second file cannot be accessed, and the content related to the second file cannot be viewed in the first file. In one implementation, if the first file is not granted permission for the second file, the content related to the second file in the first file is set to be displayed as the first information, and the client logged in by the file manager is reminded to grant permission. If the first file is granted permission for the second file, the collaborator can view the content related to the second file in the first file even if he does not have permission to access the second file; the service of the first file can update the content related to the second file in the first file based on the content of the second file. That is to say, in the embodiment of the present disclosure, the user permission is actually judged in advance, and there is no need to judge the user permission again during the file update stage, which improves the efficiency of file updates and reduces the frequency of blocked updates.
[0276] like Figure 8 As shown, the embodiment of the present disclosure provides a device for processing file authorization, including:
[0277] A detection module 51 is configured to detect a first operation;
[0278] The first processing module 52 is configured to determine, in response to the first operation, to grant the first file permission for the second file; wherein, when the first file is granted permission for the second file, changes to the content of the second file can be updated and displayed in the first file.
[0279] A file authorization processing device provided by an embodiment of the present disclosure is applied in a client.
[0280] In some embodiments, the device also includes: a first sending module; wherein the first sending module is configured to send a first request initiated by the first user when the user accessing the first file is the first user, the first request being used to grant the first file permission to the second file, and the first user having permission to access the first file and the second file.
[0281] In some embodiments, the apparatus further comprises: a display module; wherein the first processing module 52 is configured to determine that the user accessing the first file is the second user, wherein the second user does not have permission to access the second file;
[0282] The display module is configured to trigger updating of content related to the content in the first file that has been changed based on the content of the second file, and / or display the first file, wherein the first file displays content related to the content that has been changed based on the content of the second file, when it is determined that the first file has been granted permission for the second file.
[0283] In some embodiments, the apparatus further comprises: a display module; wherein the first processing module 52 is configured to determine whether the user accessing the first file is the first user or the second user, wherein the first user has the authority to access the first file and the second file, and the second user does not have the authority to access the second file;
[0284] The display module is configured to display the first file when it is determined that the first file is not granted permission for the second file, and the content in the first file related to the referenced second file content is displayed as first information, and the first information is used to indicate the referenced second file content.
[0285] In some embodiments, the apparatus further comprises: a display module; wherein the first processing module 52 is configured to determine that the user accessing the first file is only the second user, wherein the second user does not have permission to access the second file;
[0286] The display module is configured to display the first file when it is determined that the first file is not granted permission for the second file, wherein the first file displays content related to historical content of the second file.
[0287] In some embodiments, the apparatus further comprises: a display module; wherein the first processing module 52 is configured to determine that the user accessing the first file is a first user and a second user, wherein the first user has the authority to access the first file and the second file, and the second user does not have the authority to access the second file;
[0288] The display module is configured to display the first file when it is determined that the first file is not granted permission to the second file, wherein the first file displays content related to content that is modified based on the content of the second file, and the content related to content that is modified based on the content of the second file is triggered and generated by the first user.
[0289] In some embodiments, the apparatus further includes: a first receiving module configured to obtain prompt information, wherein the prompt information is used to prompt the first file to grant permission to the second file;
[0290] The first sending module is configured to send a first request initiated by a first user based on the prompt information.
[0291] In some embodiments, the permission of the first file to the second file includes one of the following:
[0292] A first sub-right, wherein the first sub-right is used to indicate the permission of the first file to the entire content of the second file;
[0293] The second sub-right is used to indicate the permission of the first file to a predetermined portion of the content of the second file.
[0294] like Fig. 9 As shown, the embodiment of the present disclosure provides a device for processing file authorization, including:
[0295] The second processing module 61 is configured to determine whether to grant the first file permission for the second file;
[0296] The updating module 62 is configured to update the content related to the content modified based on the content of the second file in the first file when it is determined that the first file has been granted the permission to the second file.
[0297] A file authorization processing device provided by an embodiment of the present disclosure is applied in a server.
[0298] In some embodiments, the device further includes: a second receiving module configured to obtain a first request, wherein the first request is used to grant the first file permission to the second file; wherein the first request is initiated by a first user, and the first user has access rights to the first file and the second file;
[0299] The second processing module 61 is configured to determine, based on the first request, to grant the first file permission for the second file.
[0300] In some embodiments, the update module 62 is configured to update the content of the first file that is related to the content that has been modified based on the content of the second file when it is determined that the user accessing the first file is the second user, wherein the second user does not have permission to access the second file.
[0301] In some embodiments, the second processing module 61 is configured to determine whether the user accessing the first file is the first user or the second user, wherein the first user has the authority to access the first file and the second file, and the second user does not have the authority to access the second file;
[0302] The updating module 62 is configured to update the content in the first file related to the referenced second file content to first information when it is determined that the first file is not granted permission for the second file. The first information is used to indicate the referenced second file content.
[0303] In some embodiments, the second processing module 61 is configured to determine that the user accessing the first file is only the second user, wherein the second user does not have permission to access the second file;
[0304] The updating module 62 is configured to update the content in the first file that is related to the historical content of the second file when it is determined that the first file is not granted the permission for the second file.
[0305] In some embodiments, the second processing module 61 is configured to determine that the user accessing the first file is a first user and a second user, wherein the first user has permission to access the first file and the second file, and the second user does not have permission to access the second file;
[0306] The update module 62 is configured to update the content related to the content in the first file based on the changed content of the second file when it is determined that the first file is not granted permission for the second file, and the content related to the content based on the changed content of the second file is triggered to update by the first user.
[0307] In some embodiments, the device further includes: a second sending module configured to send a prompt message when it is determined that the first file is not granted permission for the second file, wherein the prompt message is used to prompt the second file to be granted permission for the first file.
[0308] In some embodiments, the permission of the first file on the second file includes one of the following:
[0309] A first sub-right, wherein the first sub-right is used to indicate the permission of the first file to the entire content of the second file;
[0310] The second sub-right is used to indicate the permission of the first file to a predetermined portion of the content of the second file.
[0311] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0312] An embodiment of the present disclosure further provides an electronic device, including:
[0313] processor;
[0314] a memory for storing processor-executable instructions;
[0315] The processor is configured to: implement the file authorization processing method of any embodiment of the present disclosure when running the executable instructions.
[0316] The electronic device may be the terminal in the above embodiment.
[0317] The memory may include various types of storage media, which are non-transitory computer storage media that can continue to remember information stored thereon after the communication device loses power.
[0318] The processor can be connected to the memory through a bus or the like to read the executable program stored in the memory, for example, to implement the following Figures 1 to 7 The method for processing the file authorization shown in any item.
[0319] like Fig.10 FIG. 1 is a diagram showing a structure of an electronic device 70 according to an exemplary embodiment. The electronic device 70 may be a terminal in the above embodiment. For example, the electronic device 70 may be provided as a network side device. Fig.10 The electronic device 70 includes a processing component 71, which further includes one or more processors, and a memory resource represented by a processor 72 for storing instructions executable by the processing component 71, such as an application. The application stored in the processor 72 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 71 is configured to execute instructions to perform any method of the aforementioned method applied in the base station.
[0320] The electronic device 70 may further include a power supply component 73 configured to perform power management of the electronic device 70, a wired or wireless network interface 74 configured to connect the electronic device 70 to a network, and an input / output (I / O) interface 75. The electronic device 70 may operate based on an operating system stored in the processor 72, such as Windows Server TM, MacOS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
[0321] The embodiments of the present disclosure further provide a computer-readable storage medium, wherein the computer-readable storage medium stores an executable program, wherein when the executable program is executed by a processor, the method for processing file authorization of any embodiment of the present disclosure is implemented. Figures 1 to 7 The method for processing the file authorization shown in any item.
[0322] An embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores an executable program, wherein when the executable program is executed by a processor, the method for processing file authorization provided by any of the aforementioned technical solutions is implemented.
[0323] The computer-readable storage medium may specifically be: a non-temporary computer-readable storage medium.
[0324] Exemplarily, such as a memory including an executable program, the above instructions can be executed by the processing component 71 of the electronic device to complete the above method.
[0325] The non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0326] An embodiment of the present disclosure provides a computer program product, which includes a computer program or instructions. When the computer program product or the instructions are processed and executed, the file authorization processing method provided by any one of the aforementioned technologies is implemented.
[0327] Those skilled in the art will readily appreciate other implementations of the disclosed embodiments after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the disclosed embodiments, which follow the general principles of the disclosed embodiments and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the disclosed embodiments are indicated by the following claims.
[0328] It should be understood that the embodiments of the present disclosure are not limited to the precise structures described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the embodiments of the present disclosure is limited only by the appended claims.
Claims
1. A method for processing file authorization, characterized in that: Executed by the client, including: A first operation is detected; In response to the first operation, the granting of permissions of the first file to the second file is determined; wherein, when the permissions of the first file to the second file are granted, changes in the content of the second file can be updated and displayed in the first file.
2. The method according to claim 1, characterized in that Before determining the granting of the permission of the first file to the second file, the method further includes: In the case that the user accessing the first file is a first user, a first request initiated by the first user is sent, where the first request is used to grant the first file permission for the second file, and the first user has permission to access the first file and the second file.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: Determining that a user accessing the first file is a second user, wherein the second user does not have permission to access the second file; In the case where it is determined that the first file has been granted permission for the second file, triggering an update of content in the first file related to content that has been changed based on content of the second file, and / or displaying the first file, wherein the first file displays content related to content that has been changed based on content of the second file.
4. The method according to claim 1 or 2, characterized in that: The method further comprises: Determining that a user accessing the first file is a first user or a second user, wherein the first user has permission to access the first file and the second file, and the second user does not have permission to access the second file; When it is determined that the first file is not granted permission for the second file, the first file is displayed, and the content in the first file related to the reference to the content of the second file is displayed as first information, where the first information is used to indicate the referenced content of the second file.
5. The method according to claim 1 or 2, characterized in that: The method further comprises: Determining that the only user accessing the first file is the second user, wherein the second user does not have permission to access the second file; In the case where it is determined that the first file is not granted authority for the second file, the first file is displayed, and the first file is displayed with content related to the historical content based on the second file.
6. The method according to claim 1 or 2, characterized in that: The method further comprises: Determining that users accessing the first file are a first user and a second user, wherein the first user has permission to access the first file and the second file, and the second user does not have permission to access the second file; When it is determined that the first file is not granted permission for the second file, the first file is displayed, wherein the first file displays content related to content modified based on content of the second file, and the content related to content modified based on content of the second file is triggered to be generated by the first user.
7. The method according to claim 2, characterized in that Before sending the first request initiated by the first user, the method further includes: obtaining prompt information, wherein the prompt information is used to prompt the first file to grant permission to the second file; The sending the first request initiated by the first user includes: sending the first request initiated by the first user based on the prompt information.
8. The method according to claim 1, characterized in that The permission of the first file on the second file includes one of the following: A first sub-right, wherein the first sub-right is used to indicate the permission of the first file to the entire content of the second file; The second sub-rights are used to indicate the rights of the first file to a predetermined portion of the content of the second file.
9. A method for processing file authorization, characterized in that: Executed by the server, including: Determine whether to grant the first file permission to the second file; In the case where it is determined that the first file has been granted permission for the second file, relevant content in the first file based on the modified content of the second file is updated.
10. The method according to claim 9, characterized in that The method further includes: obtaining a first request, wherein the first request is used to grant the first file permission to the second file; wherein the first request is initiated by a first user, and the first user has permission to access the first file and the second file; The determining whether to grant the first file permission for the second file includes: determining, based on the first request, to grant the first file permission for the second file.
11. The method according to claim 9 or 10, characterized in that: The method further comprises: In a case where it is determined that the user accessing the first file is a second user, relevant content of the first file based on the content modified in the second file is updated, wherein the second user does not have permission to access the second file.
12. The method according to claim 9 or 10, characterized in that: The method further comprises: Determining that a user accessing the first file is a first user or a second user, wherein the first user has permission to access the first file and the second file, and the second user does not have permission to access the second file; When it is determined that the first file is not granted permission for the second file, the content in the first file related to the reference to the content of the second file is updated to first information, where the first information is used to indicate the referenced content of the second file.
13. The method according to claim 9 or 10, characterized in that: The method further comprises: Determining that the only user accessing the first file is the second user, wherein the second user does not have permission to access the second file; In the case where it is determined that the first file is not granted the authority for the second file, content in the first file that is related to historical content of the second file is updated.
14. The method according to claim 9 or 10, characterized in that: The method further comprises: Determining that users accessing the first file are a first user and a second user, wherein the first user has permission to access the first file and the second file, and the second user does not have permission to access the second file; When it is determined that the first file is not granted permission for the second file, content related to the content in the first file that is changed based on the content of the second file is updated, and the update of the content related to the content in the second file that is changed is triggered by the first user.
15. A device for processing file authorization, characterized in that: The device comprises: A detection module, configured to detect a first operation; The first processing module is configured to determine, in response to the first operation, the granting of permissions of the first file to the second file; wherein, when the permissions of the first file to the second file are granted, changes in the content of the second file can be updated and displayed in the first file.
16. A device for processing file authorization, characterized in that: The device comprises: A second processing module is configured to determine whether to grant the first file permission for the second file; The updating module is configured to update the content related to the content in the first file that is modified based on the content of the second file when it is determined that the first file has been granted permission for the second file.
17. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: implement the file authorization processing method described in any one of claims 1 to 8 or claims 9 to 14 when running the executable instructions.
18. A readable storage medium, characterized in that: The readable storage medium stores an executable program, wherein the executable program, when executed by a processor, implements the file authorization processing method described in any one of claims 1 to 8 or claims 9 to 14.
19. A computer program product, comprising a computer program or instructions, characterized in that: When the computer program or instruction is executed by a processor, the method for processing file authorization described in any one of claims 1 to 8 or claims 9 to 14 is implemented.
Citation Information
Patent Citations
File management method and device, electronic equipment and storage medium
CN114676093A
Authority management method and device, electronic equipment and storage medium
CN115062335A
Method and device for realizing information processing, computer storage medium and terminal
CN115269614A
File updating method and device, computer equipment and storage medium
CN117370294A
Query indexing with permissions integration and federated search
EP3627350A1
Cited By
Method and system for inheriting and dynamically managing authority of reference content block in cooperation scene
CN122655137A
