Package com.liferay.portlet.journal.model

Examples of com.liferay.portlet.journal.model.JournalArticle


      }
    }

    setServiceContext(fileName);

    JournalArticle journalArticle =
      JournalArticleLocalServiceUtil.addArticle(
        userId, groupId, 0, 0, 0, journalArticleId, false,
        JournalArticleConstants.VERSION_DEFAULT, titleMap,
        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);
  }
View Full Code Here


      }
    }

    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);
  }
View Full Code Here

TOP

Related Classes of com.liferay.portlet.journal.model.JournalArticle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.