|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActivityStream
Manages the activity stream.
| Method Summary | |
|---|---|
void |
addActivityEvent(ActivityEvent event,
com.xpn.xwiki.XWikiContext context)
Adding an activity event. |
void |
addActivityEvent(java.lang.String streamName,
java.lang.String type,
java.lang.String title,
java.util.List<java.lang.String> params,
com.xpn.xwiki.XWikiContext context)
Adding an activity event. |
void |
addActivityEvent(java.lang.String streamName,
java.lang.String type,
java.lang.String title,
com.xpn.xwiki.XWikiContext context)
Adding an activity event. |
void |
addDocumentActivityEvent(java.lang.String streamName,
com.xpn.xwiki.doc.XWikiDocument doc,
java.lang.String type,
int priority,
java.lang.String title,
java.util.List<java.lang.String> params,
com.xpn.xwiki.XWikiContext context)
Adding an activity event. |
void |
addDocumentActivityEvent(java.lang.String streamName,
com.xpn.xwiki.doc.XWikiDocument doc,
java.lang.String type,
int priority,
java.lang.String title,
com.xpn.xwiki.XWikiContext context)
Adding an activity event. |
void |
addDocumentActivityEvent(java.lang.String streamName,
com.xpn.xwiki.doc.XWikiDocument doc,
java.lang.String type,
java.lang.String title,
java.util.List<java.lang.String> params,
com.xpn.xwiki.XWikiContext context)
Adding an activity event. |
void |
addDocumentActivityEvent(java.lang.String streamName,
com.xpn.xwiki.doc.XWikiDocument doc,
java.lang.String type,
java.lang.String title,
com.xpn.xwiki.XWikiContext context)
Adding an activity event. |
void |
deleteActivityEvent(ActivityEvent event,
com.xpn.xwiki.XWikiContext context)
Delete the given event from the database. |
java.util.List<ActivityEvent> |
getEvents(boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
Get events from the activity stream. |
java.util.List<ActivityEvent> |
getEvents(java.lang.String streamName,
boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
Get events from a particular activity stream. |
java.util.List<ActivityEvent> |
getEventsForSpace(java.lang.String space,
boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
Get events from the activity stream of a space. |
java.util.List<ActivityEvent> |
getEventsForSpace(java.lang.String streamName,
java.lang.String space,
boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
Get events from the given activity stream which happened in a particular space. |
java.util.List<ActivityEvent> |
getEventsForUser(java.lang.String user,
boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
Get events from the activity stream of a user. |
java.util.List<ActivityEvent> |
getEventsForUser(java.lang.String streamName,
java.lang.String user,
boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
Get events from the given activity stream which have been fired by a particular user. |
com.sun.syndication.feed.synd.SyndFeed |
getFeed(java.util.List<ActivityEvent> events,
java.lang.String author,
java.lang.String title,
java.lang.String description,
java.lang.String copyright,
java.lang.String encoding,
java.lang.String url,
java.lang.String suffix,
com.xpn.xwiki.XWikiContext context)
Get a feed from the given events. |
com.sun.syndication.feed.synd.SyndFeed |
getFeed(java.util.List<ActivityEvent> events,
java.lang.String author,
java.lang.String title,
java.lang.String description,
java.lang.String copyright,
java.lang.String encoding,
java.lang.String url,
com.xpn.xwiki.XWikiContext context)
Get a feed from the given events. |
com.sun.syndication.feed.synd.SyndFeed |
getFeed(java.util.List<ActivityEvent> events,
java.lang.String suffix,
com.xpn.xwiki.XWikiContext context)
Get a feed from the given events. |
com.sun.syndication.feed.synd.SyndFeed |
getFeed(java.util.List<ActivityEvent> events,
com.xpn.xwiki.XWikiContext context)
Get a feed from the given events. |
com.sun.syndication.feed.synd.SyndEntry |
getFeedEntry(ActivityEvent event,
java.lang.String suffix,
com.xpn.xwiki.XWikiContext context)
Get the feed entry for the given event. |
com.sun.syndication.feed.synd.SyndEntry |
getFeedEntry(ActivityEvent event,
com.xpn.xwiki.XWikiContext context)
Get the feed entry for the given event. |
java.lang.String |
getFeedOutput(java.util.List<ActivityEvent> events,
java.lang.String author,
java.lang.String title,
java.lang.String description,
java.lang.String copyright,
java.lang.String encoding,
java.lang.String url,
java.lang.String type,
java.lang.String suffix,
com.xpn.xwiki.XWikiContext context)
Get the string representation of a feed from the given events. |
java.lang.String |
getFeedOutput(java.util.List<ActivityEvent> events,
java.lang.String author,
java.lang.String title,
java.lang.String description,
java.lang.String copyright,
java.lang.String encoding,
java.lang.String url,
java.lang.String type,
com.xpn.xwiki.XWikiContext context)
Get the string representation of a feed from the given events. |
java.lang.String |
getFeedOutput(com.sun.syndication.feed.synd.SyndFeed feed,
java.lang.String type)
|
java.util.List<ActivityEvent> |
getRelatedEvents(ActivityEvent event,
com.xpn.xwiki.XWikiContext context)
Get events that have the same requestId as the event passed as parameter. |
java.lang.String |
getStreamName(java.lang.String space,
com.xpn.xwiki.XWikiContext context)
Tranforms space name into stream name. |
void |
init(com.xpn.xwiki.XWikiContext context)
Init method, must be called on plugin init. |
java.util.List<ActivityEvent> |
searchEvents(java.lang.String hql,
boolean filter,
boolean globalSearch,
int nb,
int start,
java.util.List<java.lang.Object> parameterValues,
com.xpn.xwiki.XWikiContext context)
Search events. |
java.util.List<ActivityEvent> |
searchEvents(java.lang.String hql,
boolean filter,
boolean globalSearch,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
Search events. |
java.util.List<ActivityEvent> |
searchEvents(java.lang.String hql,
boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
Search events. |
java.util.List<ActivityEvent> |
searchEvents(java.lang.String fromHql,
java.lang.String hql,
boolean filter,
boolean globalSearch,
int nb,
int start,
java.util.List<java.lang.Object> parameterValues,
com.xpn.xwiki.XWikiContext context)
Search events. |
java.util.List<ActivityEvent> |
searchEvents(java.lang.String fromHql,
java.lang.String hql,
boolean filter,
boolean globalSearch,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
Search events. |
java.util.List<ActivityEvent> |
searchEvents(java.lang.String fromHql,
java.lang.String hql,
boolean filter,
int nb,
int start,
java.util.List<java.lang.Object> parameterValues,
com.xpn.xwiki.XWikiContext context)
Search events. |
java.util.List<ActivityEvent> |
searchEvents(java.lang.String fromHql,
java.lang.String hql,
boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
Search events. |
java.util.List<java.lang.Object[]> |
searchUniquePages(java.lang.String optionalWhereClause,
int maxItems,
int startAt,
com.xpn.xwiki.XWikiContext context)
Get unique pages with events sorted by date. |
java.util.List<java.lang.Object[]> |
searchUniquePages(java.lang.String optionalWhereClause,
java.util.List<java.lang.Object> parametersValues,
int maxItems,
int startAt,
com.xpn.xwiki.XWikiContext context)
Get unique pages with events sorted by date. |
| Method Detail |
|---|
void init(com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
context - the XWiki context
com.xpn.xwiki.XWikiException - if the init of the activity stream failed
java.lang.String getStreamName(java.lang.String space,
com.xpn.xwiki.XWikiContext context)
space - space to transformcontext - the XWiki context
void addActivityEvent(ActivityEvent event,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
event - event to add to the streamcontext - the XWiki context
ActivityStreamException - if the addition to the stream fails
void addActivityEvent(java.lang.String streamName,
java.lang.String type,
java.lang.String title,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
streamName - name of the stream to use for the additiontype - type of the eventtitle - title of the eventcontext - the XWiki context
ActivityStreamException - if the addition to the stream fails
void addActivityEvent(java.lang.String streamName,
java.lang.String type,
java.lang.String title,
java.util.List<java.lang.String> params,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
streamName - name of the stream to use for the additiontype - type of the eventtitle - title of the eventparams - parameters of the eventcontext - the XWiki context
ActivityStreamException - if the addition to the stream fails
void addDocumentActivityEvent(java.lang.String streamName,
com.xpn.xwiki.doc.XWikiDocument doc,
java.lang.String type,
java.lang.String title,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
streamName - name of the stream to use for the additiondoc - which fired the eventtype - type of the eventtitle - title of the eventcontext - the XWiki context
ActivityStreamException - if the addition to the stream fails
void addDocumentActivityEvent(java.lang.String streamName,
com.xpn.xwiki.doc.XWikiDocument doc,
java.lang.String type,
int priority,
java.lang.String title,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
streamName - name of the stream to use for the additiondoc - which fired the eventtype - type of the eventpriority - priority of the eventtitle - title of the eventcontext - the XWiki context
ActivityStreamException - if the addition to the stream fails
void addDocumentActivityEvent(java.lang.String streamName,
com.xpn.xwiki.doc.XWikiDocument doc,
java.lang.String type,
java.lang.String title,
java.util.List<java.lang.String> params,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
streamName - name of the stream to use for the additiondoc - which fired the eventtype - type of the eventtitle - title of the eventparams - parameters of the eventcontext - the XWiki context
ActivityStreamException - if the addition to the stream fails
void addDocumentActivityEvent(java.lang.String streamName,
com.xpn.xwiki.doc.XWikiDocument doc,
java.lang.String type,
int priority,
java.lang.String title,
java.util.List<java.lang.String> params,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
streamName - name of the stream to use for the additiondoc - which fired the eventtype - type of the eventpriority - priority of the eventtitle - title of the eventparams - parameters of the eventcontext - the XWiki context
ActivityStreamException - if the addition to the stream fails
void deleteActivityEvent(ActivityEvent event,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
event - the event to deletecontext - the XWiki context
ActivityStreamException - if the delete of the event fails
java.util.List<ActivityEvent> searchEvents(java.lang.String hql,
boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
hql - HQL where query statementfilter - true if the events should be filtered by prioritynb - number of events to retrievestart - query offsetcontext - the XWiki context
ActivityStreamException - if the search query fails
java.util.List<ActivityEvent> searchEvents(java.lang.String hql,
boolean filter,
boolean globalSearch,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
hql - HQL where query statementfilter - true if the events should be filtered by priorityglobalSearch - true if the request must be performed on the main databasenb - number of events to retrievestart - query offsetcontext - the XWiki context
ActivityStreamException - if the search query fails
java.util.List<ActivityEvent> searchEvents(java.lang.String hql,
boolean filter,
boolean globalSearch,
int nb,
int start,
java.util.List<java.lang.Object> parameterValues,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
hql - HQL where query statementfilter - true if the events should be filtered by priorityglobalSearch - true if the request must be performed on the main databasenb - number of events to retrievestart - query offsetparameterValues - values of the parametrized querycontext - the XWiki context
ActivityStreamException - if the search query fails
java.util.List<ActivityEvent> searchEvents(java.lang.String fromHql,
java.lang.String hql,
boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
fromHql - HQL from query statementhql - HQL where query statementfilter - true if the events should be filtered by prioritynb - number of events to retrievestart - query offsetcontext - the XWiki context
ActivityStreamException - if the search query fails
java.util.List<ActivityEvent> searchEvents(java.lang.String fromHql,
java.lang.String hql,
boolean filter,
boolean globalSearch,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
fromHql - HQL from query statementhql - HQL where query statementfilter - true if the events should be filtered by priorityglobalSearch - true if the request must be performed on the main databasenb - number of events to retrievestart - query offsetcontext - the XWiki context
ActivityStreamException - if the search query fails
java.util.List<ActivityEvent> searchEvents(java.lang.String fromHql,
java.lang.String hql,
boolean filter,
int nb,
int start,
java.util.List<java.lang.Object> parameterValues,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
fromHql - HQL from query statementhql - HQL where query statementfilter - true if the events should be filtered by prioritynb - number of events to retrievestart - query offsetparameterValues - values of the parametrized querycontext - the XWiki context
ActivityStreamException - if the search query fails
java.util.List<ActivityEvent> searchEvents(java.lang.String fromHql,
java.lang.String hql,
boolean filter,
boolean globalSearch,
int nb,
int start,
java.util.List<java.lang.Object> parameterValues,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
fromHql - HQL from query statementhql - HQL where query statementfilter - true if the events should be filtered by priorityglobalSearch - true if the request must be performed on the main databasenb - number of events to retrievestart - query offsetparameterValues - values of the parametrized querycontext - the XWiki context
ActivityStreamException - if the search query fails
java.util.List<ActivityEvent> getEvents(boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
filter - true if the events should be filtered by prioritynb - number of events to retrievestart - query offsetcontext - the XWiki context
ActivityStreamException - if the retrieval fails
java.util.List<ActivityEvent> getEventsForSpace(java.lang.String space,
boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
space - space to retrieve the events fromfilter - true if the events should be filtered by prioritynb - number of events to retrievestart - query offsetcontext - the XWiki context
ActivityStreamException - if the retrieval fails
java.util.List<ActivityEvent> getEventsForUser(java.lang.String user,
boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
user - user to retrieve the events fromfilter - true if the events should be filtered by prioritynb - number of events to retrievestart - query offsetcontext - the XWiki context
ActivityStreamException - if the retrieval fails
java.util.List<ActivityEvent> getEvents(java.lang.String streamName,
boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
streamName - name of the activity stream to retrieve the events fromfilter - true if the events should be filtered by prioritynb - number of events to retrievestart - query offsetcontext - the XWiki context
ActivityStreamException - if the retrieval fails
java.util.List<ActivityEvent> getEventsForSpace(java.lang.String streamName,
java.lang.String space,
boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
streamName - name of the activity stream to retrieve the events fromspace - space to retrieve the events fromfilter - true if the events should be filtered by prioritynb - number of events to retrievestart - query offsetcontext - the XWiki context
ActivityStreamException - if the retrieval fails
java.util.List<ActivityEvent> getEventsForUser(java.lang.String streamName,
java.lang.String user,
boolean filter,
int nb,
int start,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
streamName - name of the activity stream to retrieve the events fromuser - user to retrieve the events fromfilter - true if the events should be filtered by prioritynb - number of events to retrievestart - query offsetcontext - the XWiki context
ActivityStreamException - if the retrieval fails
com.sun.syndication.feed.synd.SyndEntry getFeedEntry(ActivityEvent event,
com.xpn.xwiki.XWikiContext context)
event - event to get the entry forcontext - the XWiki context
com.sun.syndication.feed.synd.SyndEntry getFeedEntry(ActivityEvent event,
java.lang.String suffix,
com.xpn.xwiki.XWikiContext context)
event - event to get the entry forsuffix - suffix to add to entry title and body stringscontext - the XWiki context
com.sun.syndication.feed.synd.SyndFeed getFeed(java.util.List<ActivityEvent> events,
com.xpn.xwiki.XWikiContext context)
events - events to create the feed fromcontext - the XWiki context
com.sun.syndication.feed.synd.SyndFeed getFeed(java.util.List<ActivityEvent> events,
java.lang.String suffix,
com.xpn.xwiki.XWikiContext context)
events - events to create the feed fromsuffix - suffix to add to entries title and body stringscontext - the XWiki context
com.sun.syndication.feed.synd.SyndFeed getFeed(java.util.List<ActivityEvent> events,
java.lang.String author,
java.lang.String title,
java.lang.String description,
java.lang.String copyright,
java.lang.String encoding,
java.lang.String url,
com.xpn.xwiki.XWikiContext context)
events - events to create the feed fromauthor - author to set in the feed metadatatitle - title to set in the feed metadatadescription - description to set in the feed metadatacopyright - copyright to set in the feed metadataencoding - encoding to set in the feed metadataurl - URL to set in the feed metadatacontext - the XWiki context
com.sun.syndication.feed.synd.SyndFeed getFeed(java.util.List<ActivityEvent> events,
java.lang.String author,
java.lang.String title,
java.lang.String description,
java.lang.String copyright,
java.lang.String encoding,
java.lang.String url,
java.lang.String suffix,
com.xpn.xwiki.XWikiContext context)
events - events to create the feed fromauthor - author to set in the feed metadatatitle - title to set in the feed metadatadescription - description to set in the feed metadatacopyright - copyright to set in the feed metadataencoding - encoding to set in the feed metadataurl - URL to set in the feed metadatasuffix - suffix to add to entries title and body stringscontext - the XWiki context
java.lang.String getFeedOutput(java.util.List<ActivityEvent> events,
java.lang.String author,
java.lang.String title,
java.lang.String description,
java.lang.String copyright,
java.lang.String encoding,
java.lang.String url,
java.lang.String type,
com.xpn.xwiki.XWikiContext context)
events - events to create the feed fromauthor - author to set in the feed metadatatitle - title to set in the feed metadatadescription - description to set in the feed metadatacopyright - copyright to set in the feed metadataencoding - encoding to set in the feed metadataurl - URL to set in the feed metadatatype - the feed type (syntax) to use, null if none. It can be any version of RSS or Atom. Some
possible values are "rss_1.0", "rss_2.0" and "atom_1.0"context - the XWiki context
java.lang.String getFeedOutput(java.util.List<ActivityEvent> events,
java.lang.String author,
java.lang.String title,
java.lang.String description,
java.lang.String copyright,
java.lang.String encoding,
java.lang.String url,
java.lang.String type,
java.lang.String suffix,
com.xpn.xwiki.XWikiContext context)
events - events to create the feed fromauthor - author to set in the feed metadatatitle - title to set in the feed metadatadescription - description to set in the feed metadatacopyright - copyright to set in the feed metadataencoding - encoding to set in the feed metadataurl - URL to set in the feed metadatatype - the feed type (syntax) to use, null if none. It can be any version of RSS or Atom. Some
possible values are "rss_1.0", "rss_2.0" and "atom_1.0"suffix - suffix to add to entries title and body stringscontext - the XWiki context
java.lang.String getFeedOutput(com.sun.syndication.feed.synd.SyndFeed feed,
java.lang.String type)
feed - the feed to get the string representation fortype - the feed type (syntax) to use, null if none. It can be any version of RSS or Atom. Some
possible values are "rss_1.0", "rss_2.0" and "atom_1.0"
java.util.List<ActivityEvent> getRelatedEvents(ActivityEvent event,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
event - the event for which to look for related eventscontext - the XWiki context
ActivityStreamException - if the retrieval fails
java.util.List<java.lang.Object[]> searchUniquePages(java.lang.String optionalWhereClause,
int maxItems,
int startAt,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
optionalWhereClause - optional HQL where query statementmaxItems - maximum number of documents to retrievestartAt - query offsetcontext - the XWiki context
ActivityStreamException - if the search fails
java.util.List<java.lang.Object[]> searchUniquePages(java.lang.String optionalWhereClause,
java.util.List<java.lang.Object> parametersValues,
int maxItems,
int startAt,
com.xpn.xwiki.XWikiContext context)
throws ActivityStreamException
optionalWhereClause - optional HQL where query statementparametersValues - values for the query parametersmaxItems - maximum number of documents to retrievestartAt - query offsetcontext - the XWiki context
ActivityStreamException - if the search fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||