CN113836105A - File sharing method, file display device and storage medium - Google Patents

File sharing method, file display device and storage medium Download PDF

Info

Publication number
CN113836105A
CN113836105A CN202111138705.6A CN202111138705A CN113836105A CN 113836105 A CN113836105 A CN 113836105A CN 202111138705 A CN202111138705 A CN 202111138705A CN 113836105 A CN113836105 A CN 113836105A
Authority
CN
China
Prior art keywords
file
shared
sharing
state
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111138705.6A
Other languages
Chinese (zh)
Inventor
张清森
陈俊灵
韩超龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lvlian Technology Co Ltd
Original Assignee
Shenzhen Lvlian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lvlian Technology Co Ltd filed Critical Shenzhen Lvlian Technology Co Ltd
Priority to CN202111138705.6A priority Critical patent/CN113836105A/en
Publication of CN113836105A publication Critical patent/CN113836105A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/156Query results presentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a file sharing method, a file display device and a storage medium, wherein the file sharing method comprises the following steps: establishing an attribute table of a shared file, wherein the attribute table comprises a file state, and the file state is shaping data; and when the shared file is shared, modifying the shaping data according to the received first setting instruction so as to modify the file state into a shared state and modify the read-write permission of the shared file. The embodiment of the application also discloses a method for displaying the file, which corresponds to the method for sharing the file.

Description

File sharing method, file display device and storage medium
Technical Field
The embodiment of the application relates to the field of internet, in particular to a file sharing method, a file display device and a storage medium.
Background
With the development of internet technology, online office work and file sharing have been accepted by the public. Through the file sharing technology, people can acquire files shared by others on the network so as to meet the office requirements.
If a file sharer wants to share a file to multiple users, a group is generally required to be set, and the file is set as a group shared file, so that the multiple users can acquire the shared file.
However, frequently setting the group operation causes great trouble for the file sharer to share the shared file, which causes inconvenience in operation.
Disclosure of Invention
The embodiment of the application provides a method and a corresponding device for sharing a file, a method and a corresponding device for displaying the file, and a storage medium.
A method of sharing a file, comprising:
establishing an attribute table of a shared file, wherein the attribute table comprises a file state, and the file state is integer data;
and when the shared file is shared, modifying the integer data according to the received first setting instruction so as to modify the file state into a shared state and modify the read-write permission of the shared file.
Optionally, the sharing status includes a full member sharing and a designated user sharing.
Optionally, the attribute table further includes the user list, and the user list is text data.
Optionally, if the shared state is shared by a designated user, when the shared file is shared, the method further includes, after modifying the integer data according to the received first setting instruction to modify the file state to the shared state and modify the read-write permission of the shared file:
and writing the identification of the appointed user into the user list according to a second setting instruction, wherein the second setting instruction is an instruction for executing writing operation on the user list.
A method of presenting a document, comprising:
receiving a third setting instruction of a file sharing user, wherein the third setting instruction is an input instruction for file display;
inquiring the attribute of the candidate file according to the third setting instruction, and determining a target file;
judging whether the file state is the whole member sharing or not according to the attribute table of the target file, wherein the attribute table comprises the file state and a user list;
if yes, displaying the attribute of the target file;
if not, judging whether the file state is shared by the appointed user;
if the judgment result is yes, determining that the file state is shared by the appointed user;
and displaying the attribute of the target file according to the result.
Optionally, the target file is a shared file of which the file owner is one of a whole person, a designated user, or the file sharing user.
Optionally, if the target file is a shared file in which a file owner is a member or a designated user, and after the file state is determined to be shared by the designated user, before the attribute of the target file is displayed according to a result, the method further includes:
judging whether the identification of the file sharing user is in the user list or not;
and if the identifier of the file sharing user is in the user list, determining that the target file is a displayable file.
An apparatus for sharing files, comprising:
the device comprises an establishing unit, a processing unit and a processing unit, wherein the establishing unit is used for establishing an attribute table of a shared file, the attribute table comprises a file state, and the file state is shaping data;
and the modification unit is used for modifying the shaping data according to the received first setting instruction when the shared file is shared so as to modify the file state into a shared state and modify the read-write permission of the shared file.
An apparatus for displaying documents, comprising:
the receiving unit is used for receiving a third setting instruction of a file sharing user, wherein the third setting instruction is an input instruction for file display;
the determining unit is used for inquiring the attribute of the candidate file according to the third setting instruction and determining a target file;
the judging unit is used for judging whether the file state is the whole member sharing according to an attribute table of the target file, wherein the attribute table comprises the file state and a user list;
the display unit is used for displaying the attribute of the target file when the file state is full member sharing;
the judging unit is further used for judging whether the file state is shared by a designated user when the file state is not shared by all members;
the determining unit is further configured to determine that the file state is shared by the designated user when the file state is shared by the designated user;
the display unit is also used for displaying the attribute of the target file according to the result.
A terminal device, comprising:
the system comprises a central processing unit, a memory and an input/output interface;
the memory is a transient memory or a persistent memory;
the central processor is configured to communicate with the memory and execute the instruction operations in the memory to perform the aforementioned methods.
A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the aforementioned method.
According to the technical scheme, the embodiment of the application has the following advantages:
by establishing the attribute table of the file and setting the file sharing state to be the sharing state according to the instruction, the file owner can share the file to other users without groups, and convenience is brought to the file owner.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a file sharing method according to an embodiment of the present application;
FIG. 2 is a diagram of another embodiment of a file sharing method according to an embodiment of the present application;
FIG. 3 is a diagram of another embodiment of a file sharing method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an embodiment of a document presentation method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another embodiment of a document presentation method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of another embodiment of a document presentation method according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an embodiment of a file sharing apparatus according to an embodiment of the present application;
FIG. 8 is a schematic view of an embodiment of a document presentation apparatus according to an embodiment of the present application;
fig. 9 is a schematic diagram of an embodiment of a terminal device according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a file sharing method, a corresponding file sharing device, a file display method, a corresponding file display device and terminal equipment.
With the development of internet technology, more and more users can easily obtain the convenience of the network. The file sharing technology enables people to remotely acquire files shared by other people, so that the efficiency of production and life is improved, and great convenience is brought. The embodiment of the application is a method for realizing the authority management of a file through related operations of the file and a database based on a linux system.
The method and apparatus of the embodiments of the present application are described in detail below.
Referring to fig. 1, an embodiment of a file sharing method according to the embodiment of the present application includes:
101. establishing an attribute table of a shared file, wherein the attribute table comprises a file state, and the file state is shaping data;
and establishing a corresponding attribute table for the shared file in the database, wherein the attribute table comprises a file state. The file state can be divided into three types, namely cancel sharing, whole member sharing and appointed user sharing. The file state is the shaping data.
102. And when the shared file is shared, modifying the shaping data according to the received first setting instruction so as to modify the file state into a shared state and modify the read-write permission of the shared file.
When a file owner wants to share an owned file, a first setting instruction input by the file owner is received, so that the file state of the file shared by the file owner is set by operation according to the first setting instruction, the file state is modified into a sharing state, and the read-write permission of the shared file is modified. Wherein the sharing state comprises the sharing of the whole member and the sharing of the specified user.
In the embodiment of the application, the attribute table of the file is established, and the file sharing state is set to be the sharing state according to the instruction, so that the file owner can share the file to other users without groups, and convenience is brought to the file owner.
In the embodiment of the present application, the files to be shared by the file owner can be shared in two ways, which are described below:
firstly, sharing the whole members:
referring to fig. 2, another embodiment of the file sharing method in the embodiment of the present application includes:
201. establishing an attribute table of a shared file, wherein the attribute table comprises a file state, and the file state is integer data;
and establishing a corresponding attribute table for the shared file in the database, wherein the attribute table comprises a file state. The file state can be divided into three types, namely cancel sharing, whole member sharing and appointed user sharing. The file state is integer data.
Specifically, in the computer program, the data indicating the file state of the shared file is integer data, and the value of the integer data represents the selection of the file state. In this embodiment, if the file state is to be set to cancel sharing, the value of the integer data is set to 0, that is, 0 represents cancellation of sharing; if the file state is set to be the full-member sharing, namely, the file sharing is carried out on all the known users, the value of the integer data is set to be 1, namely 1 represents the full-member sharing; if the file status is to be set to designated user sharing, i.e. file sharing is performed for partially designated users, setting the value of the integer data to 2, i.e. 2 indicates sharing to the designated users.
202. When the shared file is shared, modifying the integer data according to a received first setting instruction so as to modify the file state into full member sharing and modify the read-write permission of the shared file;
before sharing the shared file, the attribute of the file can be read, and the attribute of the file is added into the database for storage. The attribute of the file plays a role in data solidification, and the change of the file state caused by data damage is avoided.
Specifically, the attribute of the file includes a file size, a file path, a file name, and the like, which is not limited herein.
When the file owner wants to share the owned file, a first setting instruction input by the file owner is received so as to perform subsequent sharing operation. The first setting instruction is an instruction for changing the file state of the shared file, and includes contents such as values of shaping data representing the file state.
After receiving the first setting instruction, performing operation setting on the file state of the file shared by the file owner according to the first setting instruction, modifying the file state into full-person sharing, and modifying the read-write permission of the shared file. In addition, if the attribute of the shared file is acquired and stored in the database, the attribute can be updated to realize the function of data solidification.
Specifically, the value of the integer data indicating the file status of the shared file takes 1 according to the first setting instruction, that is, the file status can be set to the full-person sharing. After receiving the first setting instruction, the attribute of the file changes, and a new attribute of the file needs to be stored, that is, the attribute needs to be updated. And setting the read-write permission of the shared file according to the first setting instruction. There are generally four ways to set permissions for shared files: setting a password for the shared file; setting the authority of the shared file as a read-only authority; setting readable, writable and executable authority of a shared file; and setting user grouping and group permission.
In this embodiment, the file state of the file shared by the file owner may be set to be shared by all members according to the first setting instruction, the attribute may be updated, and the read-write permission of the file may be set. Therefore, the shared file with the set authority can be shared to a whole person, the authority of the file is limited while the file is shared, and the risk that the file is tampered or leaked is reduced.
Secondly, specifying user sharing:
referring to fig. 3, another embodiment of the file sharing method in the embodiment of the present application includes:
301. establishing an attribute table of a shared file, wherein the attribute table comprises a file state, and the file state is integer data;
step 301 in this embodiment is similar to step 201 in the embodiment shown in fig. 2, and is not described here again.
302. When the shared file is shared, modifying the integer data according to a received first setting instruction so as to modify the file state to be shared by an appointed user and modify the read-write permission of the shared file;
before sharing the shared file, the attribute of the file can be read, and the attribute of the file is added into the database for storage. The attribute of the file plays a role in data solidification, and the change of the file state caused by data damage is avoided.
After receiving the first setting instruction, performing operation setting on the file state of the file shared by the file owner according to the first setting instruction, modifying the file state to be shared by the appointed user, and modifying the read-write permission of the shared file. In addition, if the attribute of the shared file is acquired and stored in the database, the attribute can be updated to realize the function of data solidification.
Specifically, the value of the integer data indicating the file state of the shared file is taken to be 2 according to the first setting instruction, that is, the file state can be set to be shared by the specified user. After receiving the first setting instruction, if the attribute of the file changes, the new attribute of the file needs to be saved, that is, the attribute is updated. And setting the read-write permission of the shared file according to the first setting instruction. There are generally four ways to set permissions for shared files: setting a password for the shared file; setting the authority of the shared file as a read-only authority; setting readable, writable and executable authority of a shared file; and setting user grouping and group permission.
In order to facilitate the operation of the file owner, some processing may be performed on the shared file in the sharing state of the specified user in the embodiment of the present application. And when the shared file is in the sharing state of the appointed user, canceling the last user, or deleting or canceling the user, and then canceling the sharing state of the file by default, wherein the value of the file state is changed from 2 to 0. In addition, when the file is in the sharing state of the specified user, the file is deleted and then the sharing is automatically cancelled, namely the value of the file state is 0, and even if the file with the same name is newly created, the file is defaulted to be in the sharing cancellation state.
303. And writing the identification of the appointed user into the user list according to a second setting instruction.
After the file state of the shared file is determined to be shared by the designated user, the designated user needs to be determined. And according to the second setting instruction, writing the ID of the specified user into the user list. The second setting instruction is an instruction for executing writing operation on the user list, the attribute table comprises the user list, and the user list is text data and is used for recording the identification of the specified user. Specifically, if the file status is designated user sharing, the ID of the designated user is written into the user list, for example, the ID of the designated user can be written into the user list by a program writing method of "$ user ID $$$$". And the data representing the user list is text data, the ID of the specified user is transcoded when the ID of the specified user is written, and the ID is packaged into a character string and then written into the user list.
In this embodiment, the shared file with the set permission can be shared to the designated user through the first setting instruction and the second setting instruction. The shared file can be shared to the designated user without sharing the file to the whole staff or setting a group and selecting the ID of the designated user who wants to share, so that the leakage of the file content is prevented.
The above is a description of a file sharing method in this embodiment, and a corresponding file display method in this embodiment is described in detail below.
Referring to fig. 4, an embodiment of a file displaying method in the embodiment of the present application includes:
401. receiving a third setting instruction of the file sharing user;
and when the file sharing user needs to display the file, receiving a third setting instruction of the file sharing user as a precondition for subsequent operation.
402. Inquiring the attribute of the candidate file according to the third setting instruction, and determining a target file;
and after a third setting instruction of the file sharing user is received, inquiring the attribute of the candidate file according to the third setting instruction, and determining the target file. The candidate files are all files known by the database, and the target file is a shared file of which the file owner is one of a whole member, a designated user or the file sharing user.
403. And judging whether the file state is the full member sharing according to the attribute table of the target file, if so, executing a step 404, and if not, executing a step 405. The attribute table comprises a file state and a user list;
404. displaying the attribute of the target file;
and when the file state of the target file is the full member sharing, showing the attribute of the target file. The attribute includes information such as a file name, a file size, and a file path.
405. Judging whether the file state is shared by a specified user, if so, executing steps 406 and 407;
406. determining the file state as shared by a designated user;
the file status of the target file is determined to be shared by the designated user, i.e., the value of the shaping data representing the file status of the target file is 2.
407. And displaying the attribute of the target file according to the result.
And when the file state of the target file is shared by the appointed user, displaying the attribute of the target file to the file sharing user.
In this embodiment, the file sharing user may display the attribute of the target file through a third setting instruction, that is, display the file shared by the whole member to the file sharing user, the file shared by the designated user to the file sharing user, and the file shared by the file sharing user to another person. Therefore, the file sharing user can conveniently check the corresponding file, and the user experience is improved.
In the embodiment of the present application, the files required by the file sharing user can be displayed in two ways, which are described below:
firstly, displaying files shared by a file sharing user to others:
referring to fig. 5, another embodiment of a file displaying method according to an embodiment of the present application includes:
501. receiving a third setting instruction of the file sharing user;
and when the file sharing user needs to display the file, receiving a third setting instruction of the file sharing user as a precondition for subsequent operation. Wherein the third setting instruction includes contents regarding a file state and an attribute.
502. Inquiring the attribute of the candidate file according to the third setting instruction, and determining a target file, wherein the target file is a shared file of which the file owner is the file sharing user;
and after a third setting instruction of the file sharing user is received, inquiring the attribute of the candidate file according to the third setting instruction, and determining the target file. Wherein the candidate files are all files known to the database. The target file is a shared file of which the file owner is the file sharing user, namely the target file is a file shared by the file sharing user to others. Specifically, the attribute of the candidate file is inquired according to the third setting instruction, and the file shared by the file sharing user to others is found.
503. And judging whether the file state is the all-member sharing according to the attribute table of the target file, if so, executing step 504, and if not, executing step 505. The attribute table comprises a file state and a user list;
504. displaying the attribute of the target file;
and when the file state of the target file is the full member sharing, showing the attribute of the target file. The attribute includes information such as a file name, a file size, and a file path.
505. Judging whether the file state is shared by a specified user, if so, executing steps 506 and 507;
506. determining the file state as shared by a designated user;
the file status of the target file is determined to be shared by the designated user, i.e., the value of the shaping data representing the file status of the target file is 2.
507. And displaying the attribute of the target file according to the result.
And when the file state of the target file is shared by the appointed user, displaying the attribute of the target file to the file sharing user.
In this embodiment, the attribute of the candidate file is queried through the third setting instruction, the target file is determined, the file state of the target file is then determined, and if the file state is full-person sharing or designated user sharing, that is, when the value of the shaping data indicating the file state is 1 or 2, the target file is displayed. Therefore, the inconvenience of searching for the required files in a large number of shared files can be avoided, and the user experience is improved.
Secondly, displaying the files shared by others to the file sharing user:
referring to fig. 6, another embodiment of the document display method in the embodiment of the present application includes:
601. receiving a third setting instruction of the file sharing user;
step 601 in this embodiment is similar to step 501 in the embodiment shown in fig. 5, and is not described here again.
602. Inquiring the attribute of the candidate file according to the third setting instruction, and determining a target file, wherein the target file is a shared file of which the file owner is one of a whole person or a designated user;
and after a third setting instruction of the file sharing user is received, inquiring the attribute of the candidate file according to the third setting instruction, and determining the target file. Wherein the candidate files are all files known to the database. The target file is a shared file of which the file owner is one of the whole person or the designated user, namely the target file is a file shared by the whole person or the designated user to the file sharing user. Specifically, the attribute of the candidate file is queried according to the third setting instruction, and the file shared by the whole member or the designated user to the file sharing user is found.
603. And judging whether the file state is the full member sharing according to the attribute table of the target file, if so, executing a step 404, and if not, executing a step 405. The attribute table comprises a file state and a user list;
604. displaying the attribute of the target file;
605. judging whether the file state is shared by a designated user, if so, executing steps 606 and 607;
606. determining the file state as shared by a designated user;
steps 603 to 606 in this embodiment are similar to steps 503 to 506 in the embodiment shown in fig. 5, and are not repeated here.
607. Judging whether the identifier of the file sharing user is in the user list, if so, executing step 608;
608. determining the target file as a displayable file;
when the identification of the file sharing user is in the user list, that is, the ID of the file sharing user is in the user list, the target file is determined to be exposable.
609. And displaying the attribute of the target file according to the result.
And after determining that the ID of the file sharing user is in the user list, displaying the attribute of the target file to the file sharing user.
In this embodiment, the file sharing user may find the file shared by the whole user or the file shared by the designated user to the file sharing user through the third setting instruction, and display the shared file, which may avoid the inconvenience of searching for the required file in a large number of shared files, and improve the user experience.
Referring to fig. 7, the apparatus in the embodiment of the present application is described in detail below, and an embodiment of the file sharing apparatus in the embodiment of the present application includes:
an establishing unit 701, configured to establish an attribute table of a shared file, where the attribute table includes a file state, and the file state is shaping data;
a modifying unit 702, configured to modify the shaping data according to the received first setting instruction when the shared file is shared, so as to modify a file state into a shared state, and modify the read-write permission of the shared file.
In this embodiment, the attribute table of the shared file is established by the establishing unit 701, and the file sharing state is set to the sharing state by the modifying unit 702 according to the instruction, so that the file owner can share the file to other users without a group, which brings convenience to the file owner.
The functions and processes executed by the units in the file sharing apparatus of this embodiment are similar to those executed by the file sharing apparatus in fig. 1 to 3, and are not described herein again.
Referring to fig. 8, an embodiment of a document display apparatus in an embodiment of the present application includes:
a receiving unit 801, configured to receive a third setting instruction of a file sharing user, where the third setting instruction is an input instruction for file display;
a determining unit 802, configured to query an attribute of the candidate file according to the third setting instruction, and determine a target file;
a determining unit 803, configured to determine whether a file state is full-member sharing according to an attribute table of the target file, where the attribute table includes the file state and a user list;
the display unit 804 is used for displaying the attribute of the target file when the file state is full member sharing;
the determining unit 803 is further configured to determine whether the file state is shared by a specified user when the file state is not shared by all members;
the determining unit 802 is further configured to determine that the file state is shared by a designated user when the file state is shared by the designated user;
the display unit 804 is further configured to display the attribute of the target file according to the result.
In this embodiment, the displaying unit 804 may display the attribute of the target file through a third setting instruction, that is, display the file shared by the whole member to the file sharing user, the file shared by the designated user to the file sharing user, and the file shared by the file sharing user to another person. Therefore, the file sharing user can conveniently check the corresponding file, and the user experience is improved.
The functions and processes executed by each unit in the file display apparatus of this embodiment are similar to those executed by the file display apparatus in fig. 4 to 6, and are not repeated here.
In the following, a detailed description is given of the terminal device in the embodiment of the present application, please refer to fig. 9,
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present application, where the terminal device 900 may include one or more Central Processing Units (CPUs) 901 and a memory 905, and one or more applications or data are stored in the memory 905.
Memory 905 may be volatile storage or persistent storage, among others. The program stored in the memory 905 may include one or more modules, each of which may include a sequence of instructions operating on the terminal device 900. Further, the central processor 901 may be arranged to communicate with the memory 905, and execute a series of instruction operations in the memory 905 on the terminal device 900.
Terminal apparatus 900 can also include one or more power supplies 902, one or more wired or wireless network interfaces 903, one or more input-output interfaces 904, and/or one or more operating systems, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The central processor 901 may perform the operations performed by the terminal device in the embodiments shown in fig. 1 to fig. 6, which are not described herein again.
The terminal device may be a network attached storage server (NAS). NAS devices are literally devices connected to a network and having a data storage function, and are therefore also called "network storage". The data storage server is a special data storage server, and takes data as a center, thoroughly separates storage equipment from the server, and centrally manages the data, thereby releasing bandwidth, improving performance and reducing cost. The NAS device may perform the file sharing method and the file displaying method in the embodiments shown in fig. 1 to fig. 6. The NAS device is only one of the terminal devices that can implement the file sharing method and the file displaying method in the embodiments of the present application, and the type of the terminal device is not specifically limited here.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.

Claims (11)

1. A method of sharing a file, comprising:
establishing an attribute table of a shared file, wherein the attribute table comprises a file state, and the file state is integer data;
and when the shared file is shared, modifying the integer data according to the received first setting instruction so as to modify the file state into a shared state and modify the read-write permission of the shared file.
2. The method of sharing files of claim 1, wherein the sharing state includes a full member share and a designated user share.
3. The method for sharing files according to claim 1 or 2, wherein the attribute table further comprises the user list, and the user list is text data.
4. The method according to claim 3, wherein if the sharing status is designated user sharing, when the shared file is shared, the method further comprises, after modifying the integer data according to the received first setting instruction to modify the file status to the sharing status and modify the read/write permission of the shared file:
and writing the identification of the appointed user into the user list according to a second setting instruction, wherein the second setting instruction is an instruction for executing writing operation on the user list.
5. A method of presenting a document, comprising:
receiving a third setting instruction of a file sharing user, wherein the third setting instruction is an input instruction for file display;
inquiring the attribute of the candidate file according to the third setting instruction, and determining a target file;
judging whether the file state is the whole member sharing or not according to the attribute table of the target file, wherein the attribute table comprises the file state and a user list;
if yes, displaying the attribute of the target file;
if not, judging whether the file state is shared by the appointed user;
if the judgment result is yes, determining that the file state is shared by the appointed user;
and displaying the attribute of the target file according to the result.
6. The method of claim 5, wherein the target file is a shared file with a file owner being one of a whole person, a designated user, or the file sharing user.
7. The method of claim 6, wherein if the target file is a shared file with a file owner being one of a whole person or a designated user, and after determining that the file status is shared by the designated user, and before displaying the attribute of the target file according to the result, the method further comprises:
judging whether the identification of the file sharing user is in the user list or not;
and if the identifier of the file sharing user is in the user list, determining that the target file is a displayable file.
8. An apparatus for sharing files, comprising:
the device comprises an establishing unit, a processing unit and a processing unit, wherein the establishing unit is used for establishing an attribute table of a shared file, the attribute table comprises a file state, and the file state is shaping data;
and the modification unit is used for modifying the shaping data according to the received first setting instruction when the shared file is shared so as to modify the file state into a shared state and modify the read-write permission of the shared file.
9. An apparatus for displaying documents, comprising:
the receiving unit is used for receiving a third setting instruction of a file sharing user, wherein the third setting instruction is an input instruction for file display;
the determining unit is used for inquiring the attribute of the candidate file according to the third setting instruction and determining a target file;
the judging unit is used for judging whether the file state is the whole member sharing according to an attribute table of the target file, wherein the attribute table comprises the file state and a user list;
the display unit is used for displaying the attribute of the target file when the file state is full member sharing;
the judging unit is further used for judging whether the file state is shared by a designated user when the file state is not shared by all members;
the determining unit is further configured to determine that the file state is shared by the designated user when the file state is shared by the designated user;
the display unit is also used for displaying the attribute of the target file according to the result.
10. A terminal device, comprising:
the system comprises a central processing unit, a memory and an input/output interface;
the memory is a transient memory or a persistent memory;
the central processor is configured to communicate with the memory and execute the instructions in the memory to perform the method of sharing a file as claimed in any one of claims 1 to 4, or the method of presenting a file as claimed in any one of claims 5 to 7.
11. A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of sharing a file according to any one of claims 1 to 4, or the method of presenting a file according to any one of claims 5 to 7.
CN202111138705.6A 2021-09-27 2021-09-27 File sharing method, file display device and storage medium Pending CN113836105A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111138705.6A CN113836105A (en) 2021-09-27 2021-09-27 File sharing method, file display device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111138705.6A CN113836105A (en) 2021-09-27 2021-09-27 File sharing method, file display device and storage medium

Publications (1)

Publication Number Publication Date
CN113836105A true CN113836105A (en) 2021-12-24

Family

ID=78970710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111138705.6A Pending CN113836105A (en) 2021-09-27 2021-09-27 File sharing method, file display device and storage medium

Country Status (1)

Country Link
CN (1) CN113836105A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301420A (en) * 2014-10-23 2015-01-21 中国运载火箭技术研究院 Distributed file sharing system and method supporting multiple clients
CN104750372A (en) * 2013-12-25 2015-07-01 华为技术有限公司 File sharing method and device
CN106503579A (en) * 2016-09-29 2017-03-15 维沃移动通信有限公司 A kind of method and device of access target file
CN107180102A (en) * 2017-05-25 2017-09-19 北京环境特性研究所 The storage method and system of a kind of target characteristic data
CN109408476A (en) * 2018-09-19 2019-03-01 腾讯科技(深圳)有限公司 A kind of file-sharing management method, equipment and storage medium
CN110138801A (en) * 2019-05-31 2019-08-16 北京金山云网络技术有限公司 File sharing method, device, system, server, terminal and storage medium
CN111680308A (en) * 2020-05-25 2020-09-18 数篷科技(深圳)有限公司 File sharing method, control method for shared file, device and terminal thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750372A (en) * 2013-12-25 2015-07-01 华为技术有限公司 File sharing method and device
CN104301420A (en) * 2014-10-23 2015-01-21 中国运载火箭技术研究院 Distributed file sharing system and method supporting multiple clients
CN106503579A (en) * 2016-09-29 2017-03-15 维沃移动通信有限公司 A kind of method and device of access target file
CN107180102A (en) * 2017-05-25 2017-09-19 北京环境特性研究所 The storage method and system of a kind of target characteristic data
CN109408476A (en) * 2018-09-19 2019-03-01 腾讯科技(深圳)有限公司 A kind of file-sharing management method, equipment and storage medium
CN110138801A (en) * 2019-05-31 2019-08-16 北京金山云网络技术有限公司 File sharing method, device, system, server, terminal and storage medium
CN111680308A (en) * 2020-05-25 2020-09-18 数篷科技(深圳)有限公司 File sharing method, control method for shared file, device and terminal thereof

Similar Documents

Publication Publication Date Title
US9558218B2 (en) Truncating data associated with objects in a multi-tenant database
CN102132273B (en) Annotating webpage content
US11375015B2 (en) Dynamic routing of file system objects
US6513047B1 (en) Management of user-definable databases
WO2019134340A1 (en) Salary calculation method, application server, and computer readable storage medium
CN103810212A (en) Automated database index creation method and system
CN108134696A (en) A kind of micro services configuration update method and device
CN109522332A (en) Customer profile data merging method, device, equipment and readable storage medium storing program for executing
CN112912870A (en) Tenant identifier conversion
CN112528067A (en) Graph database storage method, graph database reading method, graph database storage device, graph database reading device and graph database reading equipment
US20200379982A1 (en) Information processing system and method of controlling information processing system
CN107241312B (en) A kind of right management method and device
CN107895044A (en) A kind of database data processing method, device and system
CN113836105A (en) File sharing method, file display device and storage medium
KR20130126012A (en) Method and apparatusfor providing report of business intelligence
AU2019350694A1 (en) Identification of records for post-cloning tenant identifier translation
CN112100168A (en) Method and device for determining data association relationship
US7844506B2 (en) Method, system, and program product for automatically populating a field of a record
CN103870603A (en) Directory management method and electronic device
US10496603B2 (en) Method and an apparatus and a computer program product for storing electronic objects for offline use
CN111459907B (en) Method, system and storage medium for configuring main data through model
CN114880678A (en) Authority management method, device, equipment and storage medium
CN112632266B (en) Data writing method and device, computer equipment and readable storage medium
US20200125325A1 (en) Identification of users across multiple platforms
KR102417236B1 (en) Method for identifying conctent writer and apparatus implementing the same method

Legal Events

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