String[] publishInode = req.getParameterValues("publishInode");
if (publishInode == null)
return;
ActionRequestImpl reqImpl = (ActionRequestImpl) req;
for (int i = 0; i < publishInode.length; i++) {
HTMLPage htmlpage = (HTMLPage) InodeFactory.getInode(publishInode[i], HTMLPage.class);
if (InodeUtils.isSet(htmlpage.getInode())) {
// calls the asset factory edit
try {
PublishFactory.publishAsset(htmlpage, reqImpl.getHttpServletRequest());
ActivityLogger.logInfo(PublishFactory.class, "Publishing HTMLpage action", "User " + user + " publishing page " + htmlpage.getTitle(), HostUtil.hostNameUtil(req, _getUser(req)));
SessionMessages.add(reqImpl.getHttpServletRequest(), "message", "message.htmlpage_list.published");
} catch (WebAssetException wax) {
Logger.error(this, wax.getMessage(), wax);
SessionMessages.add(reqImpl.getHttpServletRequest(), "error", "message.webasset.published.failed");
}
}
}
}