use of com.xpn.xwiki.plugin.activitystream.api.ActivityStreamException in project xwiki-platform by xwiki.
the class DefaultEventStatusManager method saveEventStatusInStore.
private void saveEventStatusInStore(ActivityEventStatus eventStatus) throws ActivityStreamException {
XWikiContext context = contextProvider.get();
XWikiHibernateStore hibernateStore = context.getWiki().getHibernateStore();
try {
hibernateStore.beginTransaction(context);
Session session = hibernateStore.getSession(context);
session.save(eventStatus);
hibernateStore.endTransaction(context, true);
} catch (XWikiException e) {
hibernateStore.endTransaction(context, false);
throw new ActivityStreamException(e);
}
}
Aggregations