コード例 #1
0
  @Override
  protected BaseModel<?> updateBaseModel(long primaryKey, ServiceContext serviceContext)
      throws Exception {

    JournalArticle article = JournalArticleLocalServiceUtil.getArticle(primaryKey);

    return JournalTestUtil.updateArticle(
        article,
        "Content: Enterprise. Open Source. For Life.",
        article.getContent(),
        false,
        true,
        serviceContext);
  }
コード例 #2
0
  @Override
  protected void moveBaseModelToTrash(long primaryKey) throws Exception {
    JournalArticle article = JournalArticleLocalServiceUtil.getArticle(primaryKey);

    JournalArticleLocalServiceUtil.moveArticleToTrash(TestPropsValues.getUserId(), article);
  }
コード例 #3
0
 @Override
 protected BaseModel<?> getBaseModel(long primaryKey) throws Exception {
   return JournalArticleLocalServiceUtil.getArticle(primaryKey);
 }