Package org.opencms.xml.content
Class CmsMappingResolutionContext
- java.lang.Object
-
- org.opencms.xml.content.CmsMappingResolutionContext
-
public class CmsMappingResolutionContext extends java.lang.Object
A class which represents the context for resolving all content value mappings of an XML content.Since the content handler instance is shared between all contents of the same XML content type, we can't use it to store data which is only relevant for resolving the mappings of a single XML content, so this class was created.
-
-
Constructor Summary
Constructors Constructor Description CmsMappingResolutionContext()
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commitUrlNameMappings()
Writes all the stored URL name mappings to the database.void
finalizeMappings()
Finalizes the mappings.void
setCmsObject(CmsObject cms)
Sets the CMS context to use.
-
-
-
Constructor Detail
-
CmsMappingResolutionContext
public CmsMappingResolutionContext()
Creates a new instance.
-
-
Method Detail
-
commitUrlNameMappings
public void commitUrlNameMappings() throws CmsException
Writes all the stored URL name mappings to the database.- Throws:
CmsException
- if something goes wrong
-
finalizeMappings
public void finalizeMappings() throws CmsException
Finalizes the mappings.- Throws:
CmsException
- if something goes wrong
-
setCmsObject
public void setCmsObject(CmsObject cms)
Sets the CMS context to use.- Parameters:
cms
- the CMS context
-
-