本文整理匯總了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;
}