}
}
setServiceContext(fileName);
JournalArticle journalArticle =
JournalArticleLocalServiceUtil.addArticle(
userId, groupId, 0, 0, 0, getJournalId(fileName), false,
JournalArticleConstants.VERSION_DEFAULT,
getMap(articleDefaultLocale, title), descriptionMap, content,
"general", ddmStructureKey, ddmTemplateKey, StringPool.BLANK, 1,
1, 2010, 0, 0, 0, 0, 0, 0, 0, true, 0, 0, 0, 0, 0, true, true,
smallImage, smallImageURL, null, new HashMap<String, byte[]>(),
StringPool.BLANK, serviceContext);
JournalArticleLocalServiceUtil.updateStatus(
userId, groupId, journalArticle.getArticleId(),
journalArticle.getVersion(), WorkflowConstants.STATUS_APPROVED,
StringPool.BLANK, new HashMap<String, Serializable>(),
serviceContext);
}