activityStreamService.addActivity(activity);
}
protected void initializeDummyDocumentRelatedActivities() {
DateTime now = new DateTime();
Activity activity = new ActivityImpl();
activity.setActor(benderActivityObject);
activity.setObject("doc:default:docId1");
activity.setVerb(DOCUMENT_CREATED);
activity.setPublishedDate(now.toDate());
activityStreamService.addActivity(activity);
activity = new ActivityImpl();
activity.setActor(benderActivityObject);
activity.setObject("doc:default:docId1");
activity.setVerb(DOCUMENT_UPDATED);
activity.setPublishedDate(now.plusHours(1).toDate());
activityStreamService.addActivity(activity);
activity = new ActivityImpl();
activity.setActor(benderActivityObject);
activity.setObject("doc:default:docId1");
activity.setVerb(DOCUMENT_REMOVED);
activity.setPublishedDate(now.plusHours(4).toDate());
activityStreamService.addActivity(activity);
}