public DefaultI18nAuthoringSupport() { this.i18nContentSupport = I18nContentSupportFactory.getI18nSupport(); }
@Override public String getTitle() { try { return I18nContentSupportFactory.getI18nSupport().getProperty(this.getJCRNode(), "title").getString(); } catch (RepositoryException e) { log.error("An error occurred while trying to access title property from {}", this, e); return ""; } }
@Override protected boolean condition() { Content node = this.getFirstMatchingNode(); // if the tag is checking for a nodes existance if (StringUtils.isEmpty(this.nodeDataName)) { return node != null; } else { NodeData nodeData = I18nContentSupportFactory.getI18nSupport().getNodeData(node, this.nodeDataName); return (nodeData != null) && nodeData.isExist(); } }
@Override public String getTitle() { return I18nContentSupportFactory.getI18nSupport().getNodeData(this, "title").getString(); }
public String getTitle() { return I18nContentSupportFactory.getI18nSupport().getNodeData(this, "title").getString(); }
@Override protected boolean condition() { Content node = this.getFirstMatchingNode(); if (node == null) { return true; } if (StringUtils.isNotEmpty(this.getContentNodeCollectionName())) { return !node.hasChildren(); } // checking for node existence if(StringUtils.isEmpty(this.nodeDataName) && !node.hasChildren()){ return true; } NodeData nodeData = I18nContentSupportFactory.getI18nSupport().getNodeData(node, this.nodeDataName); if ((nodeData == null) || !nodeData.isExist() || StringUtils.isEmpty(nodeData.getString())) { return true; } return false; }
protected String getFilePropertyValue(Content contentNode) { NodeData nodeData = I18nContentSupportFactory.getI18nSupport().getNodeData(contentNode, this.getNodeDataName()); FileProperties props = new FileProperties(contentNode, nodeData.getName()); return props.getProperty(this.fileProperty); }
List<String> cssClasses = new ArrayList<String>(4); NodeData nodeData = I18nContentSupportFactory.getI18nSupport().getNodeData(child, NODEDATA_NAVIGATIONTITLE); String title = nodeData.getString(StringUtils.EMPTY); out.print(I18nContentSupportFactory.getI18nSupport().toI18NURI(child.getHandle())); out.print(".html\""); //$NON-NLS-1$
NodeData nodeData = I18nContentSupportFactory.getI18nSupport().getNodeData(contentNode, this.getNodeDataName()); FileProperties props = new FileProperties(contentNode, nodeData.getName()); String imgSrc = props.getProperty(FileProperties.PATH);
else if (I18nContentSupportFactory.getI18nSupport().isEnabled() && "true".equals(this.getConfigValue("i18n"))) || I18nContentSupportFactory.getI18nSupport().getFallbackLocale().equals(locale); if (!isFallbackLanguage)
NodeData nodeData = I18nContentSupportFactory.getI18nSupport().getNodeData(contentNode, this.getNodeDataName()); Locale locale; if (this.dateLanguage == null) { locale = I18nContentSupportFactory.getI18nSupport().getLocale();
final I18nContentSupport i18nSupport = I18nContentSupportFactory.getI18nSupport(); if (StringUtils.isNotEmpty(this.nodeDataName)) { Content currentPage = getCurrentPage();