|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsrc.server.ModuleClass
src.modules.RSSModule
Provides some basic RSS functionality. The user can choose between several predefined RSS feeds and add additional ones (only visable to that user). The module supports both quering for the latest news (by default the latest 10 days), and registering to get the latest news as an alert. Using the second method means that new news is sent to the user when the news appears. The news can be sent in two fashions, short: Date, Title and the Link or long: Date, Title and the contents of the news. Example queries:
| Constructor Summary | |
RSSModule()
Constructor for RSSModule. |
|
| Method Summary | |
boolean |
isValidCache(ModuleQuery query,
java.lang.String cachedUserId,
long cacheAge)
Checks if a cached result is valid or not based on how long ago the result was cached. |
Package |
processQuery(ModuleQuery query)
Process a user sent query. |
Package |
processSettingRequest(QueryPackage query)
This is the default setting handler. |
void |
triggerEvent(java.lang.String eventId)
Triggers an event with a specific id. |
| Methods inherited from class src.server.ModuleClass |
getModuleMeta, processSettingRequest, setModuleMeta |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RSSModule()
throws java.lang.IllegalStateException
| Method Detail |
public boolean isValidCache(ModuleQuery query,
java.lang.String cachedUserId,
long cacheAge)
Module
isValidCache in interface Modulequery - The user query that resulted in the cached result. The
user's query parameters are identical to the cached query parameters.cachedUserId - The userId of the query that is cached.cacheAge - The number of seconds that has elapsed since the cached
version was cached.
public Package processQuery(ModuleQuery query)
Module
processQuery in interface Modulequery - The user sent query.
public void triggerEvent(java.lang.String eventId)
EventReceiver
triggerEvent in interface EventReceivereventId - The event's id as defined when the event was registered.public Package processSettingRequest(QueryPackage query)
ModuleClass
processSettingRequest in interface ModuleprocessSettingRequest in class ModuleClassquery - The query to be processed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||