/** * Adds a bookmark for the given value.<p> * * @param value the value to bookmark * @param path the lookup path to use for the bookmark * @param locale the locale to use for the bookmark * @param enabled if true, the value is enabled, if false it is disabled */ protected void addBookmarkForValue(I_CmsXmlContentValue value, String path, Locale locale, boolean enabled) { addBookmark(path, locale, enabled, value); }
addBookmark(path, locale, true, value);
/** * Creates a new bookmark for the given element.<p> * * @param element the element to create the bookmark for * @param locale the locale * @param parent the parent node of the element * @param parentPath the parent's path * @param parentDef the parent's content definition */ protected void addBookmarkForElement( Element element, Locale locale, Element parent, String parentPath, CmsXmlContentDefinition parentDef) { int elemIndex = CmsXmlUtils.getXpathIndexInt(element.getUniquePath(parent)); String elemPath = CmsXmlUtils.concatXpath( parentPath, CmsXmlUtils.createXpathElement(element.getName(), elemIndex)); I_CmsXmlSchemaType elemSchemaType = parentDef.getSchemaType(element.getName()); I_CmsXmlContentValue elemValue = elemSchemaType.createValue(this, element, locale); addBookmark(elemPath, locale, true, elemValue); }
addBookmark(path, locale, true, value);