protected void addMakeDocumentPublicActivity(DocumentModel doc,
Principal principal) {
String socialWorkspaceActivityObject = ActivityHelper.createDocumentActivityObject(socialWorkspace.getDocument());
ActivityStreamService activityStreamService = Framework.getLocalService(ActivityStreamService.class);
Activity activity = new ActivityBuilder().verb(
MAKE_DOCUMENT_PUBLIC_VERB).actor(
ActivityHelper.createUserActivityObject(principal)).displayActor(
ActivityHelper.generateDisplayName(principal)).object(
ActivityHelper.createDocumentActivityObject(doc)).displayObject(
ActivityHelper.getDocumentTitle(doc)).target(