The present invention relates to the communication field, and in particular, to a method, apparatus, and system for providing and reading Feed files.
RSS is an acronym of Rich Site Summary or Really Simple Syndication, and is an eXtensible Markup Language (XML) format for sharing news titles and other web contents. Although RSS is an acronym of different expressions and is interpreted differently by different technical groups, the development of RSS is not hindered. With the popularity of blogs, RSS is supported by more and more websites and blog software as a basic function, and becomes an XML application most widely used at present.
In the process of implementing the present invention, however, the inventor finds the following defect in the prior art: The RSS system is based on the RSS2.0 protocol, without any measures to restrict the reading of a user. For example, for a multi-user management system such as a blog system, any user may read all contents in the blog system through subscription. That is, even if the person who uploads the content in the blog system sets the content to be inaccessible to other users in the blog space, other users can still read the content through RSS subscription. Therefore, inconvenience or even if great losses are imposed onto the person who uploads the content in the blog system.
A method, apparatus, and system for providing and reading Feed files are disclosed in embodiments of the present invention to set rights of accessing contents of a Feed file and to display the contents of the Feed file according to the rights information.
To achieve such objectives, a method for an RSS server to provide Feed files is disclosed in an embodiment of the present invention. The method includes:
generating a Feed file according to user data and content data;
setting content authorization of accessing contents of the Feed file according to authorization information provided by a user; and
sending the Feed file to an RSS reader on a client.
Accordingly, a method for reading Feed files provided by an RSS server is disclosed in an embodiment of the present invention. The method includes:
obtaining a Feed file;
resolving content authorization of the Feed file; and
displaying contents of the Feed file according to the resolved content authorization.
Accordingly, an RSS server is disclosed in an embodiment of the present invention. The RSS server includes:
a Feed generating module, adapted to generate a Feed file according to user data and content data;
a authorization setting module, adapted to set content authorization of accessing contents of the Feed file according to authorization information provided by a user; and
a Feed sending module, adapted to send the Feed file to an RSS reader on a client.
Accordingly, an RSS reader is disclosed in an embodiment of the present invention. The RSS reader includes:
an obtaining module, adapted to obtain a Feed file provided by an RSS server;
a resolving module, adapted to resolve content authorization of the Feed file; and
a displaying module, adapted to display the contents of the Feed file according to the content authorization of the Feed file.
Accordingly, an RSS system is disclosed in an embodiment of the present invention. The RSS system includes an RSS server and an RSS reader.
The RSS server includes:
a Feed generating module, adapted to generate a Feed file according to user data and content data;
an authorization setting module, adapted to set content authorization of accessing contents of the Feed file according to authorization information provided by a user; and
a Feed sending module, adapted to send the Feed file to the RSS reader on a client.
The RSS reader includes:
an obtaining module, adapted to obtain the Feed file provided by the RSS server;
a resolving module, adapted to resolve content rights information of the Feed file; and
a displaying module, adapted to display the contents of the Feed file according to the content rights information of the Feed file.
In the embodiments of the present invention, the standard RSS2.0 protocol adopted by the existing RSS system is extended. While the RSS server generates a Feed file, rights of accessing the contents of the Feed file are set. Accordingly, after the RSS reader obtains the Feed file, the content rights information of the Feed file is resolved, and the contents of the Feed file are displayed to the user according to the content rights information. The present invention enables a user to filter the rights of accessing the Feed file, and meets the user requirements.
A method, apparatus, and system for providing and reading Feed files are disclosed in the embodiments of the present invention. The content authorization of accessing the contents of a Feed file is set in an RSS server. An RSS reader resolves the content authorization of the Feed file and displays the contents of the Feed file according to the content authorization.
The present invention is hereinafter described in detail with reference to exemplary embodiments and accompanying drawings.
As shown in
a Feed generating module 231, adapted to generate a Feed file according to user data 21 and content data 22;
an authorization setting module 232, adapted to set content authorization of accessing contents of the Feed file according to authorization information provided by a user;
a Feed sending module 233, adapted to send the Feed file to an RSS reader 24 on a client;
a user and content managing module 234, adapted to manage the user data 21 and the content data 22; and
a Feed updating module 235, adapted to update the Feed file according to the user data or content data or authorization information modified by the user.
As shown in
The obtaining module 241 is adapted to obtain the Feed file provided by the RSS server 23. Specifically, the obtaining module 241 sends a request to the RSS server 23, and the RSS server 23 sends a Feed file to the obtaining module 241 according to the request, or the RSS server 23 sends a Feed file to the obtaining module 241 actively.
The resolving module 242 is adapted to resolve the Feed file and the content authorization.
The displaying module 243 is adapted to display the contents of the Feed file according to the content authorization of the Feed file.
In the embodiments of the present invention, the content authorization includes “private”, “public”, and “visible to specified users”. If the content authorization is “private”, the contents of the Feed file are accessible to the provider of the contents of the Feed file only; if the content authorization is “public”, the contents of the Feed file are accessible to all users; and, if the content authorization is “visible to specified users”, the contents of the Feed file are accessible to specified users only.
A method for an RSS server to provide a Feed file according to an embodiment of the present invention is detailed below with reference to
Step S401: A Feed file is generated in the RSS server according to user data and content data.
An exemplary Feed file in the RSS 2.0 format is given below:
Step S402: The content authorization of accessing contents of the Feed file is set according to authorization information provided by a user.
The content authorization includes “private”, “public”, and “visible to specified users”. If the content authorization is “private”, the RSS reader displays the contents of the Feed file to the provider of the contents of the Feed file only; if the content authorization is “public”, the RSS reader displays the contents of the Feed file to all users; and, if the content authorization is “visible to specified users”, the RSS reader displays the contents of the Feed file to specified users only.
It is assumed that user A has three contents (picture a, document b and picture c) in the system; the authorization information to picture a is “private”, the authorization information to document b is “visible to specified users (such as user B and user C)”, and the authorization information to picture c is “public”. After the content authorization setting, a part of the Feed file is as follows:
Step S403: Through management of the user data and the content data, if the user uploads a new content or modifies an existing content in the system or modifies the authorization information, the system updates the Feed file accordingly, and the process returns to step S401; otherwise, the process proceeds to step S404.
Step S404: The Feed file is sent to the RSS reader on the client.
A method for reading a Feed file provided by an RSS server according to an embodiment of the present invention is detailed below with reference to
Step S501: The RSS reader obtains a Feed file provided by the RSS server. Specifically, the RSS reader sends a request to the RSS server, and the RSS server sends the Feed file to the RSS reader upon receiving the request; or sends the Feed file to the RSS reader actively.
Step S502: The RSS reader resolves the Feed file and the content authorization.
Step S503: The RSS reader displays the contents of the Feed file according to the content authorization of the Feed file.
If the content authorization of the Feed file is <auth>‘A’</auth>, it indicates that the content is visible to user A only. In this case, the resolving module in the RSS reader needs to judge whether the browse request is sent by user A. If the browse request is sent by user A, the displaying module displays the content to user A; and, if the browse request is not sent by user A, the content is discarded, that is, not displayed. If the content authorization of the Feed file is <auth>‘B′C’</auth>, it indicates the content is visible to user B and user C only. In this case, the resolving module needs to judge whether the browse request is sent by user B or user C. If the browse request is sent by user B or user C, the displaying module displays the content to user B or user C; and, if the browse request is not sent by user B or user C, the content is discarded, that is, not displayed. If the content authorization of the Feed file is <auth>public</auth>, it indicates that the content is visible to all users, and the displaying module displays the content to the user directly.
The foregoing embodiments enable a user to filter the authorization of reading the Feed file, and meet the user requirements.
As shown in
a checking module 236, adapted to check whether a user is authorized to read the Feed file generated by the Feed generating module 231; and a triggering module 237, adapted to: trigger the Feed sending module 233 to send the Feed file to the RSS reader of the user when the checking module 236 finds that the user is authorized, and complete filtering of the authorization of reading the Feed file.
A method for reading a Feed file provided by an RSS server according to another embodiment of the present invention is detailed below with reference to
Step S701: A Feed file is generated in the RSS server according to user data and content data.
This step is the same as that of the foregoing embodiment, and is not described further.
Step S702: The content authorization of accessing contents of the Feed file is set according to authorization information provided by a user.
This step is the same as that of the foregoing embodiment, and is not described further.
Step S703: Through management of the user data and the content data, if the user uploads a new content or modifies an existing content in the system or modifies the authorization information, the system updates the Feed file accordingly, and the process returns to step S701; otherwise, the process proceeds to step S704.
Step S704: The RSS server checks whether the user who sends a request for reading the Feed file is authorized to read the contents of the Feed file.
The RSS server resolves the content authorization of the Feed file, and checks whether the user who sends a request for reading the Feed file is authorized to read the contents of the Feed file according to the content authorization. If the user is authorized, the user is allowed to read the Feed file, and the process proceeds to step 5705; otherwise, the process proceeds to step 5706.
Step 5705: The RSS server sends the Feed file to the RSS reader of the user who is authorized to read the contents of the Feed file. The RSS reader receives the Feed file after the authorization filtering, and displays the Feed file to the user.
Step 5706: The process ends.
As seen from the foregoing embodiments, the RSS server filters authorization to check whether the user has the right of reading the Feed file. Therefore, the contents of the Feed file are never sent to the users who are not authorized. That is, the embodiments relieve the load of transmitting information on the channel, save the communication bandwidth, and improve the system performance.
Through the foregoing description about the embodiments of the present invention, those skilled in the art are clearly aware that the present invention may be implemented through hardware, or through software in addition to a necessary universal hardware platform. Therefore, the technical solution under the present invention may be embodied as a software product. The software product may be stored in a computer-readable storage medium (such as a CD-ROM, a USB flash disk, or a mobile hard disk), and may include several instructions that enable a computer device (such as a personal computer, a server, or a network device) to perform the methods provided in the embodiments of the present invention.
To sum up, in the embodiments of the present invention, content authorization are set for a Feed file, and the RSS server checks whether the user is authorized to read the contents of the Feed file according to the resolved content authorization; if the user is authorized, the contents of the Feed file are displayed to the user. Thus, the embodiments of the present invention overcome the inability of authorization filtering in the prior art which is based on the standard RSS2.0 protocol, help the users to better manage their own data, and meet the user requirements.
Although the invention is described through exemplary embodiments, the invention is not limited to such embodiments. It is apparent that those skilled in the art can make modifications and variations to the invention without departing from the spirit and scope of the invention. The invention is intended to cover the modifications and variations provided that they fall in the scope of protection defined by the following claims or their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
200710032867.5 | Dec 2007 | CN | national |
This application is a continuation of International Application No. PCT/CN2008/073676, filed on Dec. 24, 2008, which claims priority to Chinese Patent Application No. 200710032867.5, filed on Dec. 25, 2007, both of which are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2008/073676 | Dec 2008 | US |
Child | 12820747 | US |