Uses of Class
org.opencms.xml.content.CmsXmlContent
Package
Description
Contains the ade configuration classes.
Classes for handling formatter configurations.
Contains the container page editor service classes.
Contains classes used for reading and caching inheritance groups.
Contains server side classes for the XML content editor.
Server side of the sitemap view.
The implementations of the core resource types for the VFS are located here.
HTML postprocessor, used to tag single words or phrases in the HTML output.
API classes for the configuration parsers of the search form support provided for server-side Solr search.
Helpers to convert the list configuration XML content into a suitable bean, used by the CmsSimpleSearchConfigurationParser and the List manager app.
Contains classes for the automatical notification of outdated, expiring or released content.
Contains the widget implementations, these are GUI elements used in editors and dialogs of the OpenCms workplace.
The base classes for the OpenCms Workplace
(standard dialog, tab dialog, report based dialog)
and the Workplace configuration classes are located here.
Base classes for the editors (WYSIWYG, plain text, XML content) used in the OpenCms Workplace.
Contains functions for the ADE main pages, commonly called "Container Pages" in OpenCms.
Contains functions for structured content storage using XML, commonly called "XML content" in OpenCms.
-
Uses of CmsXmlContent in org.opencms.ade.configuration
Modifier and TypeMethodDescriptionCmsConfigurationReader.parseConfiguration
(String basePath, CmsXmlContent content) Parses a configuration XML content and creates a configuration object from it. -
Uses of CmsXmlContent in org.opencms.ade.configuration.formatters
Modifier and TypeMethodDescriptionCmsFormatterBeanParser.parse
(CmsXmlContent content, String location, String id) Reads the formatter bean from the given XML content. -
Uses of CmsXmlContent in org.opencms.ade.configuration.plugins
Modifier and TypeMethodDescriptionstatic CmsSitePlugin
CmsSitePlugin.readSitePlugin
(CmsObject cms, CmsXmlContent content) Reads a list of plugins from the given XML content. -
Uses of CmsXmlContent in org.opencms.ade.containerpage
Modifier and TypeMethodDescriptionCmsElementUtil.createStringTemplateSource
(I_CmsFormatterBean formatter, com.google.common.base.Supplier<CmsXmlContent> contentSupplier) Helper method to create a string template source for a given formatter and content. -
Uses of CmsXmlContent in org.opencms.ade.containerpage.inherited
Modifier and TypeMethodDescriptionprotected CmsXmlContent
CmsContainerConfigurationWriter.saveInContentObject
(CmsObject cms, CmsXmlContent content, Locale locale, String name, CmsContainerConfiguration configuration) Saves a single container configuration in an XML content object, but doesn't write it to the VFS.Modifier and TypeMethodDescriptionprotected void
CmsInheritanceReferenceParser.parse
(CmsXmlContent content) Parses the given XML content.protected void
CmsContainerConfigurationWriter.removeExistingEntry
(CmsObject cms, CmsXmlContent content, Locale locale, String name) Removes an existing inheritance container entry with a given name from the configuration file.protected CmsXmlContent
CmsContainerConfigurationWriter.saveInContentObject
(CmsObject cms, CmsXmlContent content, Locale locale, String name, CmsContainerConfiguration configuration) Saves a single container configuration in an XML content object, but doesn't write it to the VFS. -
Uses of CmsXmlContent in org.opencms.ade.contenteditor
Modifier and TypeMethodDescriptionCmsDelayedDefaultChangeHandler.handleChange
(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths) CmsEditorChangeHandlerFormatterSelection.handleChange
(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths) Adjusts the added/removed formatters if "Remove all formatters" is checked/unchecked.CmsEditorChangeHandlerProperty.handleChange
(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths) Modifier and TypeMethodDescriptionvoid
CmsDynamicCategoryFieldList.ensureFields
(CmsObject cms, CmsXmlContent content) Tries to add the collected fields to all locales of the given content.void
CmsDynamicCategoryFieldList.ensureFields
(CmsObject cms, CmsXmlContent content, Locale locale) Tries to add the collected fields to one locale of the given content.CmsDelayedDefaultChangeHandler.handleChange
(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths) CmsEditorChangeHandlerFormatterSelection.handleChange
(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths) Adjusts the added/removed formatters if "Remove all formatters" is checked/unchecked.CmsEditorChangeHandlerProperty.handleChange
(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths) protected CmsEntity
CmsContentService.readEntity
(CmsXmlContent content, org.dom4j.Element element, Locale locale, String entityId, String parentPath, String typeName, CmsContentTypeVisitor visitor, boolean includeInvisible, CmsEntity editedLocalEntity) Parses the element into an entity.protected void
CmsContentService.synchronizeLocaleIndependentFields
(CmsFile file, CmsXmlContent content, Collection<String> skipPaths, Collection<CmsEntity> entities, Locale lastEdited) Synchronizes the locale independent fields. -
Uses of CmsXmlContent in org.opencms.ade.sitemap
Modifier and TypeMethodDescriptionCmsSitemapAttributeUpdater.getContent()
Gets the XML content which this object operates on.ModifierConstructorDescriptionCmsSitemapAttributeUpdater
(CmsObject cms, CmsXmlContent sitemapConfig) Creates a new instance. -
Uses of CmsXmlContent in org.opencms.file.types
Modifier and TypeMethodDescriptionprotected CmsLink
CmsResourceTypeXmlContent.getXsdLink
(CmsObject cms, CmsXmlContent xmlContent) Creates a new link object for the schema definition. -
Uses of CmsXmlContent in org.opencms.jsp.decorator
Modifier and TypeMethodDescriptionCmsDecoratorConfiguration.getDecorationDefinition
(CmsXmlContent configuration, int i) Builds a CmsDecorationDefintion from a given configuration file.I_CmsDecoratorConfiguration.getDecorationDefinition
(CmsXmlContent configuration, int i) Builds a CmsDecorationDefintion from a given configuration file. -
Uses of CmsXmlContent in org.opencms.jsp.search.config.parser
ModifierConstructorDescriptionCmsXMLSearchConfigurationParser
(CmsXmlContent xml, Locale locale) Constructor taking the XML content that should be read and the locale in which it should be read. -
Uses of CmsXmlContent in org.opencms.jsp.search.config.parser.simplesearch
Modifier and TypeMethodDescriptionstatic CmsXmlContent
CmsConfigParserUtils.updateBlackList
(CmsObject cms, CmsXmlContent content, CmsConfigurationBean configBean) Updates the black list entries in the provided xml content.Modifier and TypeMethodDescriptionstatic CmsXmlContent
CmsConfigParserUtils.updateBlackList
(CmsObject cms, CmsXmlContent content, CmsConfigurationBean configBean) Updates the black list entries in the provided xml content. -
Uses of CmsXmlContent in org.opencms.jsp.userdata
ModifierConstructorDescriptionCmsUserDataRequestConfig
(CmsObject cms, CmsXmlContent content, Locale locale) Creates a new instance. -
Uses of CmsXmlContent in org.opencms.notification
Modifier and TypeFieldDescriptionprotected CmsXmlContent
A_CmsNotification.m_mailContent
The xml-content to read subject, header and footer of the notification. -
Uses of CmsXmlContent in org.opencms.ugc
Modifier and TypeMethodDescriptionprotected CmsXmlContent
CmsUgcSession.addContentValues
(CmsFile file, Map<String, String> contentValues) Adds the given values to the content document.Modifier and TypeMethodDescriptionprotected void
CmsUgcSession.addContentValue
(CmsXmlContent content, Locale locale, String path, String value) Adds the given value to the content document.protected void
CmsUgcSession.addContentValues
(CmsXmlContent content, Locale locale, Map<String, String> contentValues) Adds the given values to the content document.protected void
CmsUgcSession.deleteContentValue
(CmsXmlContent content, Locale locale, String path) Deletes the given value path from the content document.CmsUgcSession.getContentValues
(CmsXmlContent content, Locale locale) Returns the content values of the requested locale. -
Uses of CmsXmlContent in org.opencms.ui.apps.resourcetypes
Modifier and TypeMethodDescriptionprotected void
CmsNewResourceTypeDialog.createParentXmlElements
(CmsXmlContent xmlContent, String xmlPath, Locale l) Creates the parents of nested XML elements if necessary. -
Uses of CmsXmlContent in org.opencms.widgets
Modifier and TypeMethodDescriptionA_CmsFormatterWidget.getSelectedInFile
(CmsConfigurationReader reader, CmsXmlContent content) Gets the values which have already been selected in the edited resource on the VFS.CmsAddFormatterWidget.getSelectedInFile
(CmsConfigurationReader reader, CmsXmlContent content) CmsRemoveFormatterWidget.getSelectedInFile
(CmsConfigurationReader reader, CmsXmlContent content) -
Uses of CmsXmlContent in org.opencms.workplace
Modifier and TypeMethodDescriptionprotected CmsXmlContent
CmsLoginUserAgreement.getConfigurationContent()
Returns the user agreement configuration content. -
Uses of CmsXmlContent in org.opencms.workplace.editors
Modifier and TypeMethodDescriptionprotected void
CmsDialogCopyLanguage.transferContents
(CmsXmlContent content, Locale sourceLocale, List<Locale> destLocales) Copies the contents from a source locale to a number of destination locales by overwriting them. -
Uses of CmsXmlContent in org.opencms.xml.containerpage
Modifier and TypeClassDescriptionclass
Implementation of a object used to access and manage the xml data of a container page.class
Implementation of a object used to access and manage the xml data of a group container.Modifier and TypeMethodDescriptionCmsADESessionCache.getCacheXmlContent
(CmsUUID structureId) Returns the cached XML content document.Modifier and TypeMethodDescriptionprotected Locale
CmsDynamicFunctionParser.getLocaleToUse
(CmsObject cms, CmsXmlContent xmlContent) Gets the locale to use for parsing the dynamic function.CmsDynamicFunctionParser.parseFunctionBean
(CmsObject cms, CmsXmlContent content) Parses a dynamic function bean from an in-memory XML content object.CmsHtmlRedirectHandler.prepareForWrite
(CmsObject cms, CmsXmlContent content, CmsFile file) CmsListConfigContentHandler.prepareForWrite
(CmsObject cms, CmsXmlContent content, CmsFile file) CmsXmlContainerPageHandler.prepareForWrite
(CmsObject cms, CmsXmlContent content, CmsFile file) void
CmsADESessionCache.setCacheXmlContent
(CmsUUID structureId, CmsXmlContent xmlContent) Caches the given XML content document.protected void
CmsXmlContainerPageHandler.validateNames
(CmsObject cms, I_CmsXmlContentValue value, CmsXmlContent content) Validates container names, so that they are unique in the page. -
Uses of CmsXmlContent in org.opencms.xml.content
Modifier and TypeMethodDescriptionCmsXmlContent.clone()
static CmsXmlContent
CmsXmlContentFactory.createDocument
(CmsObject cms, Locale locale, String modelUri) Create a new instance of an XML content based on the given default content, hat will have all language nodes of the default content and ensures the presence of the given locale.static CmsXmlContent
CmsXmlContentFactory.createDocument
(CmsObject cms, Locale locale, String encoding, CmsXmlContentDefinition contentDefinition) Create a new instance of an XML content based on the given content definiton, that will have one language node for the given locale all initialized with default values.static CmsXmlContent
CmsXmlContentFactory.createDocument
(CmsObject cms, Locale locale, CmsResourceTypeXmlContent resourceType) Creates a new XML content based on a resource type.I_CmsXmlContentEditorChangeHandler.handleChange
(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths) Handles the content change.CmsDefaultXmlContentHandler.prepareForUse
(CmsObject cms, CmsXmlContent content) I_CmsXmlContentHandler.prepareForUse
(CmsObject cms, CmsXmlContent content) Prepares the given XML content to be used after it was read from the OpenCms VFS.static CmsXmlContent
CmsXmlContentFactory.unmarshal
(String xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a XML content instance from a String that contains XML data.static CmsXmlContent
CmsXmlContentFactory.unmarshal
(CmsObject cms, byte[] xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a XML content instance from a byte array that contains XML data.static CmsXmlContent
CmsXmlContentFactory.unmarshal
(CmsObject cms, String xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a XML content instance from a String that contains XML data.static CmsXmlContent
CmsXmlContentFactory.unmarshal
(CmsObject cms, org.dom4j.Document document, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a XML content instance from a XML document.static CmsXmlContent
Factory method to unmarshal (read) a XML content instance from a OpenCms VFS file that contains XML data.static CmsXmlContent
Factory method to unmarshal (read) a XML content instance from a OpenCms VFS file that contains XML data, using wither the encoding set in the XML file header, or the encoding set in the VFS file property.static CmsXmlContent
CmsXmlContentFactory.unmarshal
(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req) Factory method to unmarshal (read) a XML content instance from a resource, using the request attributes as cache.Modifier and TypeMethodDescriptionboolean
CmsDefaultXmlContentHandler.applyReverseAvailabilityMapping
(CmsObject cms, CmsXmlContent content, CmsMappingResolutionContext.AttributeType attr, List<Locale> resourceLocales, long valueToSet) boolean
I_CmsXmlContentHandler.applyReverseAvailabilityMapping
(CmsObject cms, CmsXmlContent content, CmsMappingResolutionContext.AttributeType attr, List<Locale> locales, long value) Writes an availability date back to the content, if a mapping is defined for it.static CmsMacroResolver
CmsXmlContentPropertyHelper.getMacroResolverForProperties
(CmsObject cms, I_CmsXmlContentHandler contentHandler, CmsXmlContent content, Function<String, String> stringtemplateSource, CmsResource containerPage) Creates and configures a new macro resolver for resolving macros which occur in property definitions.CmsDefaultXmlContentHandler.getPreview
(CmsObject cms, CmsXmlContent content, String resourcename) I_CmsXmlContentHandler.getPreview
(CmsObject cms, CmsXmlContent content, String resourcename) Returns the preview URI for the given XML content value object to be displayed in the editor.CmsDefaultXmlContentHandler.getTitleMapping
(CmsObject cms, CmsXmlContent document, Locale locale) I_CmsXmlContentHandler.getTitleMapping
(CmsObject cms, CmsXmlContent document, Locale locale) Returns the "Title" mapping set for the given XML content document in the given Locale.I_CmsXmlContentEditorChangeHandler.handleChange
(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths) Handles the content change.void
CmsDefaultXmlContentHandler.invalidateBrokenLinks
(CmsObject cms, CmsXmlContent document) void
I_CmsXmlContentHandler.invalidateBrokenLinks
(CmsObject cms, CmsXmlContent document) Performs a check of the given XML document.CmsDefaultXmlContentHandler.prepareForUse
(CmsObject cms, CmsXmlContent content) I_CmsXmlContentHandler.prepareForUse
(CmsObject cms, CmsXmlContent content) Prepares the given XML content to be used after it was read from the OpenCms VFS.CmsDefaultXmlContentHandler.prepareForWrite
(CmsObject cms, CmsXmlContent content, CmsFile file) I_CmsXmlContentHandler.prepareForWrite
(CmsObject cms, CmsXmlContent content, CmsFile file) Prepares the given XML content to be written to the OpenCms VFS.CmsXmlContentPropertyHelper.readProperties
(CmsXmlContent xmlContent, Locale locale, org.dom4j.Element element, String elemPath, CmsXmlContentDefinition elemDef) Reads the properties from property-enabled xml content values.protected void
CmsDefaultXmlContentHandler.removeEmptyMappings
(CmsObject cms, CmsFile file, CmsXmlContent content) Removes property values on resources for non-existing, optional elements.protected void
CmsDefaultXmlContentHandler.resolveDefaultMappings
(CmsObject cms, CmsFile file, CmsXmlContent content) Resolves those mappings for which no content value exists and useDefault is set to true.void
CmsDefaultXmlContentHandler.resolveMapping
(CmsObject cms, CmsXmlContent content, I_CmsXmlContentValue value) void
I_CmsXmlContentHandler.resolveMapping
(CmsObject cms, CmsXmlContent content, I_CmsXmlContentValue value) Resolves the value mappings of the given XML content value, according to the rules of this XML content handler.protected CmsFile
CmsDefaultXmlContentHandler.writeCategories
(CmsObject cms, CmsFile file, CmsXmlContent content) Writes the categories if a category widget is present.Modifier and TypeMethodDescriptionstatic Map<String,
CmsXmlContentProperty> CmsXmlContentPropertyHelper.resolveMacrosForPropertyInfo
(CmsObject cms, CmsResource page, CmsResource resource, com.google.common.base.Supplier<CmsXmlContent> contentGetter, Function<String, String> stringtemplateSource, Map<String, CmsXmlContentProperty> propertiesConf) Resolves macros in the given property information for the given resource (type) AND the current user.ModifierConstructorDescriptionCmsMappingResolutionContext
(CmsXmlContent content, boolean hasAttributeMappings) Creates a new instance.CmsXmlContentValueSequence
(String path, Locale locale, CmsXmlContent content) Generates a new content sequence element from the given type, content and content definition. -
Uses of CmsXmlContent in org.opencms.xml.xml2json
ModifierConstructorDescriptionCmsXmlContentTree
(CmsXmlContent content, Locale locale) Creates a new instance and initializes the full tree for the given locale. -
Uses of CmsXmlContent in org.opencms.xml.xml2json.document
Modifier and TypeFieldDescriptionprotected CmsXmlContent
CmsJsonDocumentXmlContent.m_xmlContent
The XML content.ModifierConstructorDescriptionCmsJsonDocumentContainerPage
(CmsJsonRequest jsonRequest, CmsXmlContent xmlContent) Creates a new container page JSON document.CmsJsonDocumentContainerPage
(CmsJsonRequest jsonRequest, CmsXmlContent xmlContent, boolean embedLinkedModelgroups) Creates a new container page JSON document.CmsJsonDocumentEmbeddedXmlContent
(CmsJsonRequest jsonRequest, CmsXmlContent xmlContent) Creates a new JSON document.CmsJsonDocumentList
(CmsJsonRequest jsonRequest, CmsXmlContent xmlContent) Creates a new JSON document.CmsJsonDocumentXmlContent
(CmsJsonRequest jsonRequest, CmsXmlContent xmlContent) Creates a new JSON document.CmsJsonDocumentXmlContent
(CmsJsonRequest jsonRequest, CmsXmlContent xmlContent, boolean embedLinkedModelgroup) Creates a new JSON document. -
Uses of CmsXmlContent in org.opencms.xml.xml2json.handler
-
Uses of CmsXmlContent in org.opencms.xml.xml2json.renderer
Modifier and TypeMethodDescriptionCmsJsonRendererXmlContent.render
(CmsXmlContent content, Locale locale) I_CmsJsonRendererXmlContent.render
(CmsXmlContent content, Locale locale) Converts the XML content for a single locale to a JSON objectstatic JSONObject
CmsJsonRendererXmlContent.renderAllLocales
(CmsXmlContent content, I_CmsJsonRendererXmlContent renderer) Helper method to apply renderer to all locales of an XML content, and put the resulting objects into a JSON object with the locales as keys.