Uses of Class
org.opencms.xml.CmsXmlException
Packages that use CmsXmlException
Package
Description
Contains server side classes for the XML content editor.
Reads and writes the XML based OpenCms configuration files.
Contains functions to import and export resources from the OpenCms VFS.
OpenCms modules provide a powerful, standardized way to extend
the core OpenCms functionality.
Utility functions for String manipulation and other often used tasks.
Base classes for the editors (WYSIWYG, plain text, XML content) used in the OpenCms Workplace.
Basic XML functionality and utilities used by OpenCms to maintain XML documents and content.
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.
Contains functions for unstructured content storage using XML, commonly called "XML pages" in OpenCms.
-
Uses of CmsXmlException in org.opencms.ade.contenteditor
Methods in org.opencms.ade.contenteditor that throw CmsXmlExceptionModifier and TypeMethodDescriptionbooleanCmsContentTypeVisitor.isEditorCompatible(CmsXmlContentDefinition xmlContentDefinition) Checks if the content type widgets are compatible with the new content editor.protected voidCmsContentService.synchronizeLocaleIndependentFields(CmsFile file, CmsXmlContent content, Collection<String> skipPaths, Collection<CmsEntity> entities, Locale lastEdited) Synchronizes the locale independent fields. -
Uses of CmsXmlException in org.opencms.configuration
Methods in org.opencms.configuration that throw CmsXmlExceptionModifier and TypeMethodDescriptionstatic Map<String, CmsParameterStore.WeightedValue> Helper method for parsing a parameter file from a byte array. -
Uses of CmsXmlException in org.opencms.importexport
Methods in org.opencms.importexport that throw CmsXmlExceptionModifier and TypeMethodDescriptionstatic CmsXmlPageCmsXmlPageConverter.convertToXmlPage(CmsObject cms, byte[] content, Locale locale, String encoding) Deprecated.Converts the contents of a page into an xml page.voidCmsImport.importData(CmsImportParameters parameters) Imports the resources and writes them to the cms VFS, even if there already exist files with the same name.voidCmsImportExportManager.importData(CmsObject cms, String importFile, String importPath, I_CmsReport report) Deprecated.voidCmsImportExportManager.importData(CmsObject cms, I_CmsReport report, CmsImportParameters parameters) Checks if the current user has permissions to import data into the Cms, and if so, creates a new import handler instance that imports the data.voidCmsImportVersion2.importData(CmsObject cms, I_CmsReport report, CmsImportParameters params) Deprecated.voidCmsImportVersion3.importData(CmsObject cms, I_CmsReport report, CmsImportParameters params) Deprecated.voidCmsImportVersion4.importData(CmsObject cms, I_CmsReport report, CmsImportParameters params) Deprecated.voidCmsImportVersion5.importData(CmsObject cms, I_CmsReport report, CmsImportParameters params) Deprecated.voidCmsVfsImportExportHandler.importData(CmsObject cms, String importFile, String importPath, I_CmsReport report) Deprecated.voidCmsVfsImportExportHandler.importData(CmsObject cms, I_CmsReport report) voidI_CmsImport.importData(CmsObject cms, I_CmsReport report, CmsImportParameters parameters) Imports the data.voidI_CmsImportExportHandler.importData(CmsObject cms, String importFile, String importPath, I_CmsReport report) Deprecated.voidI_CmsImportExportHandler.importData(CmsObject cms, I_CmsReport report) Imports the data into the Cms. -
Uses of CmsXmlException in org.opencms.module
Methods in org.opencms.module that throw CmsXmlExceptionModifier and TypeMethodDescriptionvoidCmsModuleImportExportHandler.importData(CmsObject cms, String importFile, String importPath, I_CmsReport report) Deprecated.voidCmsModuleImportExportHandler.importData(CmsObject cms, I_CmsReport report) -
Uses of CmsXmlException in org.opencms.ugc
Methods in org.opencms.ugc that throw CmsXmlExceptionModifier and TypeMethodDescriptionprotected voidCmsUgcSession.addContentValues(CmsXmlContent content, Locale locale, Map<String, String> contentValues) Adds the given values to the content document.Constructors in org.opencms.ugc that throw CmsXmlExceptionModifierConstructorDescriptionCmsUgcValueTranformHandler(CmsObject cms, CmsResource resource) Creates the value transformer instance for the provided resource. -
Uses of CmsXmlException in org.opencms.util
Methods in org.opencms.util that throw CmsXmlExceptionModifier and TypeMethodDescriptionCmsMacroResolver.getBundleMapFromResources(Properties resourceBundle, CmsResource descriptor, CmsObject clonedCms) Reads a bundle (key, value, descriptor) from Descriptor Resource and property resource.static StringCmsXsltUtil.transformCsvContent(CmsObject cms, String xsltFile, String csvContent, String delimiter) Changes content from CSV to xml/html.static StringCmsXsltUtil.transformXmlContent(CmsObject cms, String xsltFile, String xmlContent) Applies a XSLT Transformation to the content. -
Uses of CmsXmlException in org.opencms.workplace.editors
Methods in org.opencms.workplace.editors that throw CmsXmlExceptionModifier and TypeMethodDescriptionvoidCmsXmlContentEditor.setEditorValues(Locale locale) Sets the editor values for the locale with the parameters from the request. -
Uses of CmsXmlException in org.opencms.xml
Methods in org.opencms.xml that throw CmsXmlExceptionModifier and TypeMethodDescriptionCmsXmlContentTypeManager.addContentType(Class<?> clazz) Adds a XML content schema type class to the registered XML content types.voidAdds the given locale to this XML document.voidCmsXmlContentDefinition.addType(I_CmsXmlSchemaType type) Adds the given content type.voidA_CmsXmlDocument.copyLocale(List<Locale> possibleSources, Locale destination) voidA_CmsXmlDocument.copyLocale(Locale source, Locale destination) voidI_CmsXmlDocument.copyLocale(List<Locale> possibleSources, Locale destination) Copies the content from the first matching source locale that exists in this XML document to the given destination locale in this XML document.voidI_CmsXmlDocument.copyLocale(Locale source, Locale destination) Copies the content of the given source locale to the given destination locale in this XML document.A_CmsXmlDocument.correctXmlStructure(CmsObject cms) Corrects the structure of this XML document.CmsXmlContentTypeManager.getContentHandler(String className, String schemaLocation) Returns the XML content handler instance class for the specified class name.CmsXmlContentTypeManager.getContentType(org.dom4j.Element typeElement, Set<CmsXmlContentDefinition> nestedDefinitions) Generates an initialized instance of a XML content type definition from the given XML schema element.CmsXmlContentTypeManager.getFreshContentHandler(String className) Returns a fresh XML content handler instance for the specified class name.I_CmsXmlDocument.getStringValue(CmsObject cms, String path, Locale locale) Returns the first content value for the given path as a String, ornullif no such value exists.I_CmsXmlDocument.getStringValue(CmsObject cms, String path, Locale locale, int index) Returns the content value for the given path and the selected index as a String, ornullif no such value exists.byte[]A_CmsXmlDocument.marshal()Marshals (writes) the content of the current XML document into a byte array using the selected encoding.protected OutputStreamA_CmsXmlDocument.marshal(OutputStream out, String encoding) Marshals (writes) the content of the current XML document into an output stream.static OutputStreamCmsXmlUtils.marshal(org.dom4j.Document document, OutputStream out, String encoding) Marshals (writes) an XML document into an output stream using XML pretty-print formatting.static StringMarshals (writes) an XML document to a String using XML pretty-print formatting.static StringMarshals (writes) an XML node into an output stream using XML pretty-print formatting.voidA_CmsXmlDocument.moveLocale(Locale source, Locale destination) voidI_CmsXmlDocument.moveLocale(Locale source, Locale destination) Moves the content of the given source locale to the given destination locale in this XML document.voidA_CmsXmlDocument.removeLocale(Locale locale) voidI_CmsXmlDocument.removeLocale(Locale locale) Removes the given locale from this XML document.static CmsXmlContentDefinitionCmsXmlContentDefinition.unmarshal(byte[] xmlData, String schemaLocation, EntityResolver resolver) Factory method to unmarshal (read) a XML content definition instance from a byte array that contains XML data.static CmsXmlContentDefinitionCmsXmlContentDefinition.unmarshal(String xmlData, String schemaLocation, EntityResolver resolver) Factory method to unmarshal (read) a XML content definition instance from a String that contains XML data.static CmsXmlContentDefinitionCmsXmlContentDefinition.unmarshal(String schemaLocation, EntityResolver resolver) Factory method to unmarshal (read) a XML content definition instance from a given XML schema location.static CmsXmlContentDefinitionFactory method to unmarshal (read) a XML content definition instance from a XML document.static CmsXmlContentDefinitionFactory method to unmarshal (read) a XML content definition instance from the OpenCms VFS resource name.static CmsXmlContentDefinitionCmsXmlContentDefinition.unmarshal(InputSource source, String schemaLocation, EntityResolver resolver) Factory method to unmarshal (read) a XML content definition instance from a XML InputSource.static org.dom4j.DocumentCmsXmlUtils.unmarshalHelper(byte[] xmlData, EntityResolver resolver) Helper to unmarshal (read) xml contents from a byte array into a document.static org.dom4j.DocumentCmsXmlUtils.unmarshalHelper(byte[] xmlData, EntityResolver resolver, boolean validate) Helper to unmarshal (read) xml contents from a byte array into a document.static org.dom4j.DocumentCmsXmlUtils.unmarshalHelper(String xmlData, EntityResolver resolver) Helper to unmarshal (read) xml contents from a String into a document.static org.dom4j.DocumentCmsXmlUtils.unmarshalHelper(InputSource source, EntityResolver resolver) Helper to unmarshal (read) xml contents from an input source into a document.static org.dom4j.DocumentCmsXmlUtils.unmarshalHelper(InputSource source, EntityResolver resolver, boolean validate) Helper to unmarshal (read) xml contents from an input source into a document.protected static StringCmsXmlContentDefinition.validateAttribute(org.dom4j.Element element, String attributeName, String requiredValue) Validates if a given attribute exists at the given element with an (optional) specified value.protected static voidCmsXmlContentDefinition.validateAttributesExists(org.dom4j.Element element, String[] requiredAttributes, String[] optionalAttributes) Validates if a given element has exactly the required attributes set.protected static org.opencms.xml.CmsXmlComplexTypeSequenceCmsXmlContentDefinition.validateComplexTypeSequence(org.dom4j.Element element, Set<CmsXmlContentDefinition> includes) Validates the given element as a complex type sequence.voidA_CmsXmlDocument.validateXmlStructure(EntityResolver resolver) Validates the XML structure of the document with the DTD or XML schema used by the document.static voidCmsXmlUtils.validateXmlStructure(byte[] xmlData, EntityResolver resolver) Validates the structure of a XML document contained in a byte array with the DTD or XML schema used by the document.static voidCmsXmlUtils.validateXmlStructure(InputStream xmlStream, EntityResolver resolver) Validates the structure of a XML document contained in a byte array with the DTD or XML schema used by the document.static voidCmsXmlUtils.validateXmlStructure(org.dom4j.Document document, String encoding, EntityResolver resolver) Validates the structure of a XML document with the DTD or XML schema used by the document. -
Uses of CmsXmlException in org.opencms.xml.containerpage
Methods in org.opencms.xml.containerpage that throw CmsXmlExceptionModifier and TypeMethodDescriptionvoidCmsXmlGroupContainer.clearLocales()Removes all locales from the element group XML.static CmsXmlContainerPageCmsXmlContainerPageFactory.unmarshal(CmsObject cms, byte[] xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a container page instance from a byte array that contains XML data.static CmsXmlContainerPageCmsXmlContainerPageFactory.unmarshal(CmsObject cms, String xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a container page instance from a String that contains XML data.static CmsXmlContainerPageFactory method to unmarshal (read) a container page instance from a OpenCms VFS file that contains XML data.static CmsXmlContainerPageFactory method to unmarshal (read) a container page 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 CmsXmlContainerPageCmsXmlContainerPageFactory.unmarshal(CmsObject cms, CmsFile file, boolean keepEncoding, boolean noCache) Factory method to unmarshal (read) a container page 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 CmsXmlContainerPageCmsXmlContainerPageFactory.unmarshal(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req) Factory method to unmarshal (read) a container page instance from a resource, using the request attributes as cache.static CmsXmlGroupContainerCmsXmlGroupContainerFactory.unmarshal(CmsObject cms, byte[] xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a group container instance from a byte array that contains XML data.static CmsXmlGroupContainerCmsXmlGroupContainerFactory.unmarshal(CmsObject cms, String xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a group container instance from a String that contains XML data.static CmsXmlGroupContainerFactory method to unmarshal (read) a group container instance from a OpenCms VFS file that contains XML data.static CmsXmlGroupContainerFactory method to unmarshal (read) a group container 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 CmsXmlGroupContainerCmsXmlGroupContainerFactory.unmarshal(CmsObject cms, CmsResource resource, javax.servlet.ServletRequest req) Factory method to unmarshal (read) a group container instance from a resource, using the request attributes as cache.protected voidCmsXmlContainerPageHandler.validateNames(CmsObject cms, I_CmsXmlContentValue value, CmsXmlContent content) Validates container names, so that they are unique in the page. -
Uses of CmsXmlException in org.opencms.xml.content
Methods in org.opencms.xml.content that throw CmsXmlExceptionModifier and TypeMethodDescriptionprotected voidCmsDefaultXmlContentHandler.addCheckRule(CmsXmlContentDefinition contentDefinition, String elementName, String invalidate, String type) Adds a check rule for a specified element.protected voidCmsDefaultXmlContentHandler.addConfiguration(CmsXmlContentDefinition contentDefinition, String elementName, String configurationValue) Adds a configuration value for an element widget.protected voidCmsDefaultXmlContentHandler.addDefault(CmsXmlContentDefinition contentDefinition, String elementName, String defaultValue, String resolveMacrosValue) Adds a default value for an element.protected voidCmsDefaultXmlContentHandler.addDefaultCheckRules(CmsXmlContentDefinition rootContentDefinition, I_CmsXmlSchemaType schemaType, String elementPath) Adds all needed default check rules recursively for the given schema type.protected voidCmsDefaultXmlContentHandler.addDisplayType(CmsXmlContentDefinition contentDefinition, String elementName, I_CmsXmlContentHandler.DisplayType displayType) Adds the given element to the compact view set.voidprotected voidCmsDefaultXmlContentHandler.addMapping(CmsXmlContentDefinition contentDefinition, String elementName, String mapping, String useDefault) Adds an element mapping.protected voidCmsDefaultXmlContentHandler.addNestedFormatter(String elementName, CmsXmlContentDefinition contentDefinition) Adds a nested formatter element.protected voidCmsDefaultXmlContentHandler.addSearchSetting(CmsXmlContentDefinition contentDefinition, String elementName, I_CmsXmlContentValue.CmsSearchContentConfig value) Adds a search setting for an element.protected voidCmsDefaultXmlContentHandler.addSimpleSearchSetting(CmsXmlContentDefinition contentDef, String name, String value) Adds search settings as defined by 'simple' syntax in fields.protected voidCmsDefaultXmlContentHandler.addValidationRule(CmsXmlContentDefinition contentDefinition, String elementName, String regex, String message, boolean isWarning) Adds a validation rule for a specified element.protected voidCmsDefaultXmlContentHandler.addWidget(CmsXmlContentDefinition contentDefinition, String elementName, String name) Adds a GUI widget for a specified element.voidCmsXmlContent.copyLocale(Locale source, Locale destination, Set<String> elements) Copies the content of the given source locale to the given destination locale in this XML document.static CmsXmlContentCmsXmlContentFactory.createDocument(CmsObject cms, Locale locale, CmsResourceTypeXmlContent resourceType) Creates a new XML content based on a resource type.I_CmsXmlContentHandler.getWidget(I_CmsXmlSchemaType value) Deprecated.protected voidCmsDefaultXmlContentHandler.initDefaultValues(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the default values for this content handler.protected voidCmsDefaultXmlContentHandler.initField(org.dom4j.Element elem, CmsXmlContentDefinition contentDef) Processes a single field definition.protected voidCmsDefaultXmlContentHandler.initFields(org.dom4j.Element parent, CmsXmlContentDefinition contentDef) Processes all field declarations in the schema.voidCmsDefaultXmlContentHandler.initialize(org.dom4j.Element appInfoElement, CmsXmlContentDefinition contentDefinition) voidI_CmsXmlContentHandler.initialize(org.dom4j.Element appInfoElement, CmsXmlContentDefinition contentDefinition) Initializes this content handler for the given XML content definition by analyzing the "appinfo" node.protected voidCmsDefaultXmlContentHandler.initLayouts(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the layout for this content handler.protected voidCmsDefaultXmlContentHandler.initMappings(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the element mappings for this content handler.protected voidCmsDefaultXmlContentHandler.initModelFolder(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the folder containing the model file(s) for this content handler.protected voidCmsDefaultXmlContentHandler.initNestedFormatters(org.dom4j.Element element, CmsXmlContentDefinition contentDefinition) Initializes the nested formatter fields.protected voidCmsDefaultXmlContentHandler.initPreview(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the preview location for this content handler.protected voidCmsDefaultXmlContentHandler.initRelations(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the relation configuration for this content handler.protected voidCmsDefaultXmlContentHandler.initResourceBundle(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition, boolean single) Initializes the resource bundle to use for localized messages in this content handler.protected voidCmsDefaultXmlContentHandler.initSearchSettings(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the search exclusions values for this content handler.protected voidCmsDefaultXmlContentHandler.initValidationRules(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the validation rules this content handler.static CmsXmlContentCmsXmlContentFactory.unmarshal(String xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (generate) a XML content instance from a String that contains XML data.static CmsXmlContentCmsXmlContentFactory.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 CmsXmlContentCmsXmlContentFactory.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 CmsXmlContentFactory method to unmarshal (read) a XML content instance from a OpenCms VFS file that contains XML data.static CmsXmlContentFactory 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 CmsXmlContentCmsXmlContentFactory.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.protected voidCmsDefaultXmlContentHandler.validateAppinfoElement(org.dom4j.Element appinfoElement) Validates if the givenappinfoelement node from the XML content definition schema is valid according the the capabilities of this content handler. -
Uses of CmsXmlException in org.opencms.xml.page
Methods in org.opencms.xml.page that throw CmsXmlExceptionModifier and TypeMethodDescriptionvoidvoidCmsXmlPage.setStringValue(CmsObject cms, String name, Locale locale, String content) Sets the data of an already existing value.static CmsXmlPageCmsXmlPageFactory.unmarshal(byte[] xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (read) a XML page instance from a byte array that contains XML data.static CmsXmlPageCmsXmlPageFactory.unmarshal(String xmlData, String encoding, EntityResolver resolver) Factory method to unmarshal (read) a XML page instance from a String that contains XML data.static CmsXmlPageFactory method to unmarshal (read) a XML page instance from a OpenCms VFS file that contains XML data.static CmsXmlPageFactory method to unmarshal (read) a XML page 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.
CmsImportExportManager.importData(CmsObject, I_CmsReport, CmsImportParameters)instead