public void finalizeArticle(Request aRequest, Session aSession, EntityContent anArticle) throws SessionExc, SessionFailure {
try {
- anArticle.setValueForProperty("is_published", "1");
- anArticle.setValueForProperty("is_produced", "0");
- anArticle.setValueForProperty("date", StringUtil.date2webdbDate(new GregorianCalendar()));
- anArticle.setValueForProperty("is_html", "0");
- anArticle.setValueForProperty("publish_path", StringUtil.webdbDate2path(anArticle. getValue("date")));
+ anArticle.setFieldValue("is_published", "1");
+ anArticle.setFieldValue("is_produced", "0");
+ anArticle.setFieldValue("date", StringUtil.date2webdbDate(new GregorianCalendar()));
+ anArticle.setFieldValue("is_html", "0");
+ anArticle.setFieldValue("publish_path", StringUtil.webdbDate2path(anArticle. getFieldValue("date")));
ModuleArticleType module = new ModuleArticleType(DatabaseArticleType.getInstance());
- anArticle.setValueForProperty("to_article_type", module.articleTypeIdForName(configuration.getString("Localizer.OpenSession.article.DefaultArticleType")));
- anArticle.setValueForProperty("to_publisher", "1");
+ anArticle.setFieldValue("to_article_type", module.articleTypeIdForName(configuration.getString("Localizer.OpenSession.article.DefaultArticleType")));
+ anArticle.setFieldValue("to_publisher", "1");
}
catch (Throwable t) {
throw new SessionFailure(t);