本文整理汇总了Java中com.liferay.journal.service.JournalArticleLocalServiceUtil类的典型用法代码示例。如果您正苦于以下问题:Java JournalArticleLocalServiceUtil类的具体用法?Java JournalArticleLocalServiceUtil怎么用?Java JournalArticleLocalServiceUtil使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JournalArticleLocalServiceUtil类属于com.liferay.journal.service包,在下文中一共展示了JournalArticleLocalServiceUtil类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPrivacyJournalArticle
import com.liferay.journal.service.JournalArticleLocalServiceUtil; //导入依赖的package包/类
public static JournalArticle getPrivacyJournalArticle(
long groupId, String articleId) {
if (Validator.isNull(articleId) || Validator.isNull(groupId)) {
return null;
}
try {
return JournalArticleLocalServiceUtil.fetchArticle(
groupId, articleId);
}
catch (Exception e) {
_log.error(e, e);
}
return null;
}
示例2: getArticleByArticleID
import com.liferay.journal.service.JournalArticleLocalServiceUtil; //导入依赖的package包/类
public static JournalArticle getArticleByArticleID(final String articleId, final long groupId)
throws SystemException {
JournalArticle article = null;
article = JournalArticleLocalServiceUtil.fetchLatestArticle(groupId, articleId,
WorkflowConstants.STATUS_APPROVED);
return article;
}
示例3: getAddClass
import com.liferay.journal.service.JournalArticleLocalServiceUtil; //导入依赖的package包/类
@Override
protected Class<?> getAddClass() throws ClassNotFoundException {
return JournalArticleLocalServiceUtil.class;
}
示例4: getUpdateClass
import com.liferay.journal.service.JournalArticleLocalServiceUtil; //导入依赖的package包/类
@Override
protected Class<?> getUpdateClass() throws ClassNotFoundException {
return JournalArticleLocalServiceUtil.class;
}