use of com.agiletec.aps.system.services.pagemodel.Frame in project entando-core by entando.
the class PageModelAction method createPageModel.
protected PageModel createPageModel() throws Throwable {
PageModel model = null;
try {
if (ApsAdminSystemConstants.ADD == this.getStrutsAction()) {
model = new PageModel();
model.setCode(this.getCode());
} else {
model = this.getPageModel(this.getCode());
}
model.setDescription(this.getDescription());
String template = (!StringUtils.isBlank(this.getTemplate())) ? this.getTemplate() : null;
model.setTemplate(template);
// TO DELETE - start
String xml = this.getXmlConfiguration();
PageModelDOM dom = new PageModelDOM(xml, this.getWidgetTypeManager());
Frame[] configuration = dom.getConfiguration();
int mainFrame = dom.getMainFrame();
if (mainFrame > -1) {
model.setMainFrame(mainFrame);
}
model.setConfiguration(configuration);
// TO DELETE - end
} catch (Throwable t) {
_logger.error("error in creating page model", t);
throw t;
}
return model;
}
Aggregations