CN112835870A - Content caching method and system based on user permission - Google Patents
Content caching method and system based on user permission Download PDFInfo
- Publication number
- CN112835870A CN112835870A CN202110120485.8A CN202110120485A CN112835870A CN 112835870 A CN112835870 A CN 112835870A CN 202110120485 A CN202110120485 A CN 202110120485A CN 112835870 A CN112835870 A CN 112835870A
- Authority
- CN
- China
- Prior art keywords
- content
- authority
- information
- user
- rights
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000008520 organization Effects 0.000 claims description 21
- 230000004048 modification Effects 0.000 claims description 6
- 238000012986 modification Methods 0.000 claims description 6
- 238000012163 sequencing technique Methods 0.000 claims description 6
- 238000010276 construction Methods 0.000 claims description 4
- 238000012217 deletion Methods 0.000 claims description 3
- 230000037430 deletion Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 3
- 239000002699 waste material Substances 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 239000002360 explosive Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 210000001503 joint Anatomy 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000002715 modification method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2379—Updates performed during online database operations; commit processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/242—Query formulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Mathematical Physics (AREA)
- Storage Device Security (AREA)
Abstract
The application discloses a content caching method and system based on user rights, which are used for solving the technical problems that the existing content is usually stored in a database, and when the system wants to acquire the content with the viewing rights, the system needs to inquire the content from the database, but the inquiry efficiency is extremely low. The method comprises the following steps: determining the release range of the released content, and storing the released content in a database; according to the content viewing authority information corresponding to the release range and the authority dimension in the content viewing authority information, respectively constructing an authority content list corresponding to the authority dimension according to a preset cache structure; respectively adding the published contents into corresponding authority content lists, and storing the published contents into a cache; and receiving a content viewing request of a user, acquiring a permission content list matched with the permission of the user from the cached permission content list, and determining whether the user is allowed to access the corresponding content. By the method, the query efficiency of the user is improved, and the time of the user is saved.
Description
Technical Field
The present application relates to the technical field of content query management of a content management system, and in particular, to a content caching method and system based on user rights.
Background
In a content management system, a large amount of content data is generally stored by a database. However, as business systems continue to operate, content data in content management systems exhibit explosive growth.
At present, when a service system is in butt joint with a content management system, the service system often has a requirement for acquiring content of which a current user has viewing permission. For the requirement, various content management systems usually perform joint check through a content table and a user authority and other related tables, and directly inquire the content table and the user authority from a database. However, when the data volume is large, due to the bottleneck of the database, the efficiency of the query method is extremely low, and the query method has high requirements on environment configuration and interface concurrency. Moreover, a large number of SQL sentences need to be compiled for realizing joint check query, the code compiling workload is large, and the maintenance is difficult.
Disclosure of Invention
The embodiment of the application provides a content caching method and system based on user rights, which are used for solving the technical problems that the existing content data are usually stored in a database, when the system wants to acquire a content list of which the current user has viewing rights, the system needs to query from the database, but when the data volume is large, the query efficiency is extremely low due to the bottleneck of the database.
In one aspect, an embodiment of the present application provides a content caching method based on user rights, including: determining the release range of the released content, and storing the released content in a database; according to the content viewing authority information corresponding to the release range and the authority dimension in the content viewing authority information, respectively constructing an authority content list corresponding to the authority dimension according to a preset cache structure; respectively adding the published contents into corresponding authority content lists, and storing the published contents into a cache; and receiving a content viewing request of a user, acquiring a permission content list matched with the permission of the user from the cached permission content list, and determining whether the user is allowed to access the corresponding content.
In an implementation manner of the present application, according to content viewing permission information corresponding to a release range and permission dimensions in the content viewing permission information, permission content lists corresponding to the permission dimensions are respectively constructed according to a preset cache structure, and the method specifically includes: determining authority dimensions contained in the content viewing authority information and specific dimension information corresponding to the authority dimensions according to the content viewing authority information corresponding to the release range; respectively constructing corresponding authority content lists according to the specific dimension information and a preset cache structure; and the specific dimension information corresponds to the authority content list one by one.
In an implementation manner of the present application, according to content viewing permission information corresponding to a release range and permission dimensions in the content viewing permission information, permission content lists corresponding to the permission dimensions are respectively constructed according to a preset cache structure, and the method specifically includes: according to the content viewing authority information corresponding to the release range, determining authority dimension of at least any one item of a user, an organization and a role contained in the content viewing authority information, and user information, organization information and role information corresponding to the authority dimension; and respectively constructing corresponding permission content lists according to the user information, the organization information and the role information and a preset cache structure.
In an implementation manner of the present application, adding the published content to the corresponding rights content list respectively specifically includes: determining an identity of published content; respectively adding the identifier of the published content to a corresponding authority content list; further comprising: determining to allow the user to access the corresponding content; and according to the identification corresponding to the content accessed by the user in the cache, acquiring the basic information of the content from the database and returning the basic information to the user.
In one implementation manner of the present application, the method further includes: determining published content contained in the matched authority content list; and combining the determined published contents, and deleting the repeated published contents.
In one implementation manner of the present application, the method further includes: determining modification of the content viewing permission information of the published content to obtain the modified content viewing permission information; and according to the modified content, checking specific dimension information in the authority information, and modifying the published content cached in the corresponding authority content list.
In one implementation manner of the present application, the method further includes: determining deleted specific dimension information and/or newly added specific dimension information according to the original content viewing permission information and the modified content viewing permission information; determining an authority content list corresponding to the deleted specific dimension information, and deleting the published content from the corresponding authority content list; and determining a permission content list corresponding to the newly added specific dimension information, and adding the published content to the corresponding permission content list.
In an implementation manner of the present application, before constructing the rights content lists corresponding to the rights dimensions, the method further includes: and determining that the permission content list corresponding to the permission dimension does not exist in the cache.
In one implementation manner of the present application, the method further includes: sequencing the released content after the deletion repetition according to a preset sequencing rule, wherein the sequencing rule at least comprises any one of the following items: browsing volume, attention volume, collection volume.
On the other hand, an embodiment of the present application further provides a content caching system based on user rights, and the system includes: the determining module is used for determining the release range of the released content and storing the released content to the database; the construction module is used for respectively constructing an authority content list corresponding to the authority dimension according to the content viewing authority information corresponding to the release range and the authority dimension in the content viewing authority information; the adding module is used for respectively adding the published contents to the corresponding authority content lists and storing the published contents to the cache; and the acquisition module is used for receiving a content viewing request of a user, acquiring an authority content list matched with the authority of the user from the cached authority content list and determining whether the user is allowed to access the corresponding content.
The embodiment of the application provides a content caching method and a content caching system based on user rights, which at least have the following beneficial effects: the method comprises the steps of acquiring the issuing range of the content when the content is issued, checking the authority dimension in the authority information according to the content corresponding to the issuing range, respectively building the corresponding authority content lists, respectively adding the issued content to the corresponding authority content lists, and storing the issued content to a cache; meanwhile, based on the content checking request of the user, the authority content list matched with the user authority is obtained from the cached authority content list, whether the user is allowed to access the corresponding content or not is determined, the efficiency and the safety of content inquiry can be guaranteed, the working efficiency of the user is improved, the time of user inquiry is shortened, and the service quality and the resource utilization rate are improved. In addition, published contents in the permission content list matched with the permission of the user are merged, and repeated contents are deleted, so that data redundancy and waste of storage space are effectively avoided, and the utilization rate of a cache space is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a content caching method based on user rights according to an embodiment of the present application;
fig. 2 is a schematic diagram of a rights content caching policy according to an embodiment of the present application;
fig. 3 is a flowchart of another content caching method based on user rights according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating a method for adding content to a cache according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a content query method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a content caching system based on user rights according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a content caching method and system based on user rights, according to the rights dimensions in content viewing rights information corresponding to a publishing range, according to a preset caching structure, rights content lists corresponding to the rights dimensions are respectively constructed, published contents are respectively added to the corresponding rights content lists, and therefore caching of the published contents is completed, and the technical problem that existing contents are usually stored in a database, when a system wants to acquire the contents of viewing rights of a current user, the contents need to be queried from the database, but when the data volume is large, the querying efficiency is extremely low due to the bottleneck of the database is solved.
The technical solutions proposed in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a content caching method based on user rights according to an embodiment of the present application. As shown in fig. 1, a content caching method based on user rights provided in an embodiment of the present application mainly includes the following steps:
s101, determining the distribution range of the distributed content, and storing the distributed content in a database.
Before content distribution, the server acquires basic information of the currently distributed content and a content distribution range configured by a system administrator or a content owner. When the content is released, the server determines which releasing ranges of the released content are specific, updates the state of the content, and stores the basic information and the releasing ranges of the released content in the database. The content may include news, information, articles, the basic information includes ID, title, text, and the distribution range indicates to which users the current content is distributed.
S102, according to the content viewing permission information corresponding to the release range and the permission dimension in the content viewing permission information, respectively constructing a permission content list corresponding to the permission dimension according to a preset cache structure.
When the basic information and the release range of the released content are stored in the database, the server determines content viewing authority information corresponding to the release range according to the content release range obtained when the content is released, and then according to the authority dimension in the content viewing authority information and a preset cache structure, an authority content list corresponding to the current authority dimension is respectively constructed and named. For example, the rights content list is named: permission dimension _ permission dimension identification. The content viewing permission information indicates which users are allowed to view the currently published content, and the preset cache structure indicates a format corresponding to the permission content list for caching the published content.
In one embodiment of the application, the server acquires a publishing range of the content when the content is published, and defines users allowed to view the currently published content in the publishing range, wherein the publishing range configured when the content is published corresponds to the content viewing authority information. Meanwhile, the content viewing permission information comprises the permission dimension of the user and specific dimension information corresponding to the permission dimension. Wherein the permission dimension represents a dimension for classifying the user.
And the server respectively constructs a corresponding authority content list according to the specific dimension information so as to determine the content which is allowed to be viewed by the user and corresponds to the specific dimension information. In this embodiment, the rights content lists are respectively constructed according to the specific dimension information corresponding to the rights dimensions, and therefore, the specific dimension information corresponds to the rights content lists one to one. Therefore, the content is processed according to the user right in the content management system, and the relationship between the user right and the content is maintained.
In an embodiment of the application, the server determines the content specifically included in the content viewing permission information according to the content viewing permission information corresponding to the content publishing range. The content viewing permission information comprises permission dimensions of at least any one of a user, an organization and a role, and each permission dimension respectively comprises corresponding user information, organization information and role information.
The server checks the authority dimension in the authority information according to the content corresponding to the release range, and respectively constructs an authority content list corresponding to the authority dimension according to a preset cache structure, and actually, respectively constructs the authority content list corresponding to the authority dimension according to user information, organization information and role information which specifically correspond to the authority dimension.
Specifically, fig. 2 is a schematic diagram of a rights content caching policy provided in an embodiment of the present application. As shown in fig. 2, the published content is cached as follows:
first, the server determines, through the distribution range configured at the time of content distribution, the user U003, the user U004, the organization ORG001, and the role R002 that are allowed to access the current content, thereby identifying the authority dimension: USER (USER), Organization (ORG), and ROLE (ROLE).
Secondly, the server, according to the authority dimension: the method comprises the steps that a USER (USER), an Organization (ORG) and a ROLE (ROLE) are respectively constructed, corresponding authority content lists are constructed, and the constructed authority content lists are determined to be USER _ U003, USER _ U004, ORG _ ORG001 and ROLE _ R002 according to specific dimension information.
And S103, adding the published contents into corresponding authority content lists respectively, and storing the contents into a cache.
The server finds the corresponding authority content list according to the specific user information, organization information and role information which are allowed to be checked in the content issuing range, and respectively adds the issued content to the corresponding authority content list and stores the issued content in the cache, so that when the current user has a content checking request, the content identification is directly obtained from the corresponding authority content list in the cache, and the query efficiency is improved.
In one embodiment of the application, before adding the published content to the corresponding rights content list, the server first determines the identifier of the published content, and then adds the identifier of the published content to the rights content list corresponding to the user information, the organization information and the role information, respectively. Therefore, the cache space can be saved, the utilization rate of resources is improved, the energy consumption of the whole network is reduced, and the efficiency of content query is improved.
Fig. 3 is a flowchart of another content caching method based on user rights according to an embodiment of the present application. As shown in fig. 3, before content distribution, a system administrator or a content owner configures a distribution range of content. When the content is released, the server updates the state of the content and stores the basic information and the release range of the released content in the database.
Meanwhile, the server creates a new thread and acquires the distribution range of the content determined when the content is distributed. And the server determines the authority dimension in the content viewing information according to the content viewing authority information corresponding to the issuing range, and respectively constructs an authority content list corresponding to the current authority dimension according to the specific dimension information corresponding to the current authority dimension. And the server adds the currently issued content to the corresponding authority content list and stores the content in the cache.
Specifically, fig. 4 is a schematic diagram of a method for adding content to a cache according to an embodiment of the present disclosure. As shown in fig. 4, the server obtains basic information of the released content and content right information, and determines the identifier of the current content and content viewing right information corresponding to the release range. The server caches the released content according to the authority content caching strategy, namely, the released content is respectively added to corresponding authority content lists in the cache according to the authority dimensionality corresponding to the released content.
S104, receiving a content viewing request of the user, acquiring an authority content list matched with the authority of the user from the cached authority content list, and determining whether the user is allowed to access corresponding content.
After receiving a content viewing request of a user, the server acquires an authority content list matched with the attribute of the current user from the cached authority content list, compares the identifier of the content requested to be viewed by the current user with the identifier of the content in the determined matched authority content list, and determines whether the identifier of the content requested to be viewed by the current user is in the authority content list matched with the authority of the user, namely determines whether the current content allows the current user to access. The user attribute is determined based on the authority dimension, the exemplary description of the authority dimension in S102 is used, the authority dimension includes a user, an organization, and a role, and the user attribute correspondingly includes user information, organization information, and role information.
And when the server determines that the current user is allowed to access the corresponding content, acquiring basic information of the current content from the database according to the identifier corresponding to the content accessed by the current user in the cache, and returning the basic information to the current user so as to ensure that the user can inquire the content under the condition that the current content allows the user to inquire.
In an embodiment of the present application, if there may be intersections among contents included in the respective rights content lists, the server first determines published contents included in the rights content list that matches the rights of the current user, then merges the published contents in the rights content list that matches the rights of the current user, and deletes repeated published contents in the rights content list after the merging to determine all valid contents that can be viewed by the user, so that data redundancy can be effectively avoided, faster query execution is facilitated, unnecessary time waste is reduced, and system efficiency is improved.
For example, fig. 5 is a schematic diagram of a content query method according to an embodiment of the present application. As shown in fig. 5, the server receives a content viewing request of a user, and determines a rights content list matching the rights of the current user from the cached rights content list according to the specific dimension information of the current user. And meanwhile, the server determines the published contents contained in the authority content list matched with the current user, merges the determined published contents and deletes the identification of the repeatedly appeared published contents.
Specifically, the server first obtains specific dimension information of the user, for example, the specific dimension information in fig. 5 is: user U003, affiliated organization ORG003, affiliated role R001.
Then, according to the specific dimension information of the user, a rights content list that the user has rights is found, for example, the rights content list that the user has rights in fig. 5 is: USER _ U003, ORG _ ORG002, roll _ R001.
Finally, merging the published contents in the authorized content list of the user, and deleting the repeated content identifiers, so as to obtain the authorized content list of the user, for example, the content identifiers in the authorized content list in fig. 5 are 0000001, 0000002, and 0000003.
In an embodiment of the application, after the content is published and when a system administrator or a content owner edits and modifies the content viewing permission information of the published content, the server obtains a modification request of the content viewing permission information, and determines that the system administrator or the content owner modifies the content viewing permission information of the published content when the content viewing permission information is monitored to be modified, so as to obtain the modified content viewing permission information. And the server modifies the published content cached in the authority content list corresponding to the content viewing authority information according to the specific dimension information in the modified content viewing authority information.
In an embodiment of the application, the server compares the original content viewing permission information of the published content with the modified content viewing permission information to obtain the specific dimension information deleted by the modified content viewing permission information and/or the newly added specific dimension information. On one hand, under the condition that the modified content viewing permission information deletes the specific dimension information, the server finds the permission content list corresponding to the deleted specific dimension information according to the specific dimension information deleted by the modified content viewing permission information, and deletes the published content in the permission content list corresponding to the deleted specific dimension information. On the other hand, under the condition that the modified content viewing permission information adds the specific dimension information, the server finds the permission content list corresponding to the newly added specific dimension information according to the newly added specific dimension information of the modified content viewing permission information, and adds the currently issued content to the permission content list corresponding to the newly added specific dimension information. According to the content viewing permission information modification method and device, under the condition that the content viewing permission information is modified, corresponding modification is conducted on the users allowed to view published content, so that the current content is only allowed to be accessed by the users corresponding to the content viewing permission information, and therefore the content viewing safety is guaranteed.
In an embodiment of the application, before the server checks the authority information according to the content corresponding to the release range and the authority dimension information in the content checking authority information, respectively, before constructing an authority content list corresponding to the authority dimension, or before adding the currently released content to an authority content list corresponding to newly added specific dimension information, it is necessary to determine whether an authority content list corresponding to the current authority dimension already exists in the cache, and when it is determined that the authority content list corresponding to the current authority dimension does not exist in the cache, respectively construct the authority content list corresponding to the current authority dimension, thereby ensuring the uniqueness of the authority content list.
In an embodiment of the present application, in addition to sorting according to a certain attribute of the conventional content, for example, sorting according to time, the server may sort the released content after deletion and duplication according to a preset sorting rule, for example, a browsing amount, an attention amount, a collection amount, and the like, so as to serve information requirements of each business system with high quality and improve quality of service.
According to the method and the device, the cache structure corresponding to the authority dimension is arranged, the content is cached according to the user authority, the structure and the order of content caching are enhanced, the relation between the user authority and the content is maintained, the content acquisition capacity of a service system is improved, and the query efficiency is improved; meanwhile, based on the content checking request of the user, the authority content list matched with the user authority is obtained from the cached authority content list, whether the user is allowed to access the corresponding content or not is determined, the efficiency and the safety of content inquiry can be guaranteed, the working efficiency of the user is improved, the time of user inquiry is shortened, and the service quality and the resource utilization rate are improved. In addition, published contents in the permission content list matched with the permission of the user are merged, and repeated contents are deleted, so that data redundancy and waste of storage space are effectively avoided, and the utilization rate of a cache space is improved.
It should be noted that the method shown in fig. 2, fig. 3, fig. 4, and fig. 5 is substantially the same as the method shown in fig. 1, and therefore, the parts not described in detail in fig. 2, fig. 3, fig. 4, and fig. 5 may specifically refer to the related description in fig. 1, and are not described again in this application.
The above is the method embodiment proposed by the present application. Based on the same inventive concept, the embodiment of the present application further provides a content caching system based on user rights, as shown in fig. 6.
Fig. 6 is a schematic structural diagram of a content caching system based on user rights according to an embodiment of the present application. As shown in fig. 6, the system includes a determination module 601, a construction module 602, an addition module 603, and an acquisition module 604.
In an embodiment of the present application, the determining module 601 is configured to determine a publishing scope of published content, and store the published content in a database; the construction module 602 is configured to respectively construct a permission content list corresponding to permission dimensions according to the content viewing permission information corresponding to the publishing range and the permission dimensions in the content viewing permission information; the adding module 603 is configured to add the published content to the corresponding permission content lists, and store the published content in a cache; the obtaining module 604 is configured to receive a content viewing request of a user, obtain a rights content list matching the rights of the user from the cached rights content list, and determine whether to allow the user to access corresponding content. The system completes the caching processing of the content according to the user permission, maintains the relation between the user permission and the content, ensures the security of content query, improves the efficiency of content query, saves the time for the user to query the content, can respond to the content viewing request of the user more quickly, and improves the quality of service.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A method for caching content based on user rights, the method comprising:
determining the release range of the released content, and storing the released content in a database;
according to the content viewing authority information corresponding to the release range and the authority dimension in the content viewing authority information, respectively constructing an authority content list corresponding to the authority dimension according to a preset cache structure;
respectively adding the issued contents to corresponding authority content lists and storing the issued contents to a cache;
and receiving a content viewing request of a user, acquiring a permission content list matched with the permission of the user from the cached permission content list, and determining whether the user is allowed to access corresponding content.
2. The content caching method based on the user rights according to claim 1, wherein a rights content list corresponding to the rights dimensions is respectively constructed according to content viewing rights information corresponding to the release range and the rights dimensions in the content viewing rights information and according to a preset caching structure, and specifically comprises:
according to the content viewing authority information corresponding to the release range, determining authority dimensions contained in the content viewing authority information and specific dimension information corresponding to the authority dimensions;
respectively constructing corresponding authority content lists according to the specific dimension information and a preset cache structure; and the specific dimension information corresponds to the authority content list one to one.
3. The content caching method based on the user rights according to claim 2, wherein a rights content list corresponding to the rights dimensions is respectively constructed according to content viewing rights information corresponding to the release range and the rights dimensions in the content viewing rights information and according to a preset caching structure, and specifically comprises:
determining authority dimension of at least any one item of a user, an organization and a role contained in the content viewing authority information and user information, organization information and role information corresponding to the authority dimension according to the content viewing authority information corresponding to the release range;
and respectively constructing corresponding permission content lists according to the user information, the organization information and the role information and a preset cache structure.
4. The content caching method based on user rights according to claim 1, wherein the step of adding the issued content to the corresponding rights content list respectively comprises:
determining an identity of the published content;
respectively adding the identifiers of the issued contents to corresponding authority content lists;
the method further comprises the following steps:
determining to allow the user to access the corresponding content;
and according to the identification corresponding to the content accessed by the user in the cache, acquiring the basic information of the content from the database and returning the basic information to the user.
5. The method for caching content based on user rights according to claim 1, wherein the method further comprises:
determining published content contained in the matched rights content list;
and combining the determined published contents, and deleting the repeated published contents.
6. The method for caching content based on user rights according to claim 2, wherein the method further comprises:
determining modification of the content viewing permission information of the issued content to obtain modified content viewing permission information;
and modifying the published content cached in the corresponding authority content list according to the specific dimension information in the modified content viewing authority information.
7. The method for caching content based on user rights according to claim 6, wherein the method further comprises:
determining deleted specific dimension information and/or newly added specific dimension information according to the original content viewing permission information and the modified content viewing permission information;
determining an authority content list corresponding to the deleted specific dimension information, and deleting the published content from the corresponding authority content list;
and determining a permission content list corresponding to the newly added specific dimension information, and adding the published content to the corresponding permission content list.
8. The method of claim 7, wherein before the step of building the rights content lists corresponding to the rights dimensions, the method further comprises:
and determining that the permission content list corresponding to the permission dimension does not exist in the cache.
9. The method for caching content based on user rights according to claim 5, wherein the method further comprises:
sequencing the released content after the deletion repetition according to a preset sequencing rule, wherein the sequencing rule at least comprises any one of the following items: browsing volume, attention volume, collection volume.
10. A content caching system based on user rights, characterized in that,
the determining module is used for determining the issuing range of the issued content and storing the issued content to the database;
the construction module is used for respectively constructing an authority content list corresponding to the authority dimension according to the content viewing authority information corresponding to the release range and the authority dimension in the content viewing authority information;
the adding module is used for respectively adding the published contents to corresponding authority content lists and storing the contents to a cache;
and the acquisition module is used for receiving a content viewing request of a user, acquiring an authority content list matched with the authority of the user from the cached authority content list, and determining whether the user is allowed to access corresponding content.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110120485.8A CN112835870B (en) | 2021-01-28 | 2021-01-28 | Content caching method and system based on user permission |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110120485.8A CN112835870B (en) | 2021-01-28 | 2021-01-28 | Content caching method and system based on user permission |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112835870A true CN112835870A (en) | 2021-05-25 |
CN112835870B CN112835870B (en) | 2023-01-24 |
Family
ID=75932373
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110120485.8A Active CN112835870B (en) | 2021-01-28 | 2021-01-28 | Content caching method and system based on user permission |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112835870B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050289127A1 (en) * | 2004-06-25 | 2005-12-29 | Dominic Giampaolo | Methods and systems for managing data |
CN101414253A (en) * | 2007-10-17 | 2009-04-22 | 华为技术有限公司 | Method and system for managing authority |
CN103853727A (en) * | 2012-11-29 | 2014-06-11 | 深圳中兴力维技术有限公司 | Method and system for improving large data volume query performance |
US20150281248A1 (en) * | 2014-03-25 | 2015-10-01 | Open Text S.A. | System and method for maintenance of transitive closure of a graph and user authentication |
CN105100050A (en) * | 2015-05-28 | 2015-11-25 | 交通银行股份有限公司 | User permission management method and system |
CN106776706A (en) * | 2016-11-16 | 2017-05-31 | 航天恒星科技有限公司 | Method for managing user right and device based on caching |
CN107622115A (en) * | 2017-09-19 | 2018-01-23 | 武大吉奥信息技术有限公司 | A kind of space querying result cache method towards WFS services |
CN108564351A (en) * | 2018-06-07 | 2018-09-21 | 河南尚和中知数据科技有限公司 | A kind of character management system and its operating method |
CN109189797A (en) * | 2018-09-06 | 2019-01-11 | 北京奇艺世纪科技有限公司 | A kind of data-updating method and system |
CN109218394A (en) * | 2018-07-27 | 2019-01-15 | 深圳市华讯方舟太赫兹科技有限公司 | Communication means and system applied to safe examination system |
CN109783581A (en) * | 2018-11-30 | 2019-05-21 | 平安科技(深圳)有限公司 | Right management method, device, electronic equipment and storage medium |
CN111199028A (en) * | 2020-01-06 | 2020-05-26 | 深圳壹账通智能科技有限公司 | Resource information access method and device, computer equipment and storage medium |
-
2021
- 2021-01-28 CN CN202110120485.8A patent/CN112835870B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050289127A1 (en) * | 2004-06-25 | 2005-12-29 | Dominic Giampaolo | Methods and systems for managing data |
CN101414253A (en) * | 2007-10-17 | 2009-04-22 | 华为技术有限公司 | Method and system for managing authority |
CN103853727A (en) * | 2012-11-29 | 2014-06-11 | 深圳中兴力维技术有限公司 | Method and system for improving large data volume query performance |
US20150281248A1 (en) * | 2014-03-25 | 2015-10-01 | Open Text S.A. | System and method for maintenance of transitive closure of a graph and user authentication |
CN105100050A (en) * | 2015-05-28 | 2015-11-25 | 交通银行股份有限公司 | User permission management method and system |
CN106776706A (en) * | 2016-11-16 | 2017-05-31 | 航天恒星科技有限公司 | Method for managing user right and device based on caching |
CN107622115A (en) * | 2017-09-19 | 2018-01-23 | 武大吉奥信息技术有限公司 | A kind of space querying result cache method towards WFS services |
CN108564351A (en) * | 2018-06-07 | 2018-09-21 | 河南尚和中知数据科技有限公司 | A kind of character management system and its operating method |
CN109218394A (en) * | 2018-07-27 | 2019-01-15 | 深圳市华讯方舟太赫兹科技有限公司 | Communication means and system applied to safe examination system |
CN109189797A (en) * | 2018-09-06 | 2019-01-11 | 北京奇艺世纪科技有限公司 | A kind of data-updating method and system |
CN109783581A (en) * | 2018-11-30 | 2019-05-21 | 平安科技(深圳)有限公司 | Right management method, device, electronic equipment and storage medium |
CN111199028A (en) * | 2020-01-06 | 2020-05-26 | 深圳壹账通智能科技有限公司 | Resource information access method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112835870B (en) | 2023-01-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11647097B2 (en) | Providing access to managed content | |
US6564218B1 (en) | Method of checking the validity of a set of digital information, and a method and an apparatus for retrieving digital information from an information source | |
US6820085B2 (en) | Web system having clustered application servers and clustered databases | |
CN100596353C (en) | Method and system for providing log service | |
CN102713865B (en) | Authorization data cache management | |
US5519855A (en) | Summary catalogs | |
US7895176B2 (en) | Entry group tags | |
CN103544261B (en) | A kind of magnanimity structuring daily record data global index's management method and device | |
CN104679898A (en) | Big data access method | |
CN104778270A (en) | Storage method for multiple files | |
US20220083618A1 (en) | Method And System For Scalable Search Using MicroService And Cloud Based Search With Records Indexes | |
CN106294695A (en) | A kind of implementation method towards the biggest data search engine | |
CN111680041A (en) | Safe and efficient access method for heterogeneous data | |
US8195700B2 (en) | Distributed storage for collaboration servers | |
CN109656958A (en) | Data query method and system | |
CN1717686A (en) | Automatic data consolidation | |
CN101408882A (en) | Method and system for searching authorisation document | |
WO2021004472A1 (en) | Air freight rate data caching method and system | |
KR102253841B1 (en) | Apparatus for Processing Transaction with Modification of Data in Large-Scale Distributed File System and Computer-Readable Recording Medium with Program | |
CN112835870B (en) | Content caching method and system based on user permission | |
CN116541427B (en) | Data query method, device, equipment and storage medium | |
US20130006920A1 (en) | Record operation mode setting | |
CN114840608B (en) | Distributed data access method, device and storage medium | |
CN110808964A (en) | Authority management method and device | |
EP3794457A1 (en) | Recommending secured content |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20221220 Address after: 250101 Inspur science and Technology Park, 1036 Inspur Road, hi tech Zone, Jinan City, Shandong Province Applicant after: Inspur Genersoft Co.,Ltd. Address before: 250101 Inspur science and Technology Park, 1036 Inspur Road, hi tech Zone, Jinan City, Shandong Province Applicant before: SHANDONG INSPUR GENESOFT INFORMATION TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |