Package org.opencms.xml.content
Class CmsSynchronizationSpec
java.lang.Object
org.opencms.xml.content.CmsSynchronizationSpec
A class representing the value synchronization configuration from a schema (or set of schemas).
-
Constructor Summary
ConstructorDescriptionCreates a new instance based on a map of synchronization modes. -
Method Summary
Modifier and TypeMethodDescriptionasMap()
Gets an immutable map view of the synchronizations mode by xpath.Gets the set of paths for which synchronization is turned on in this configuration.
-
Constructor Details
-
CmsSynchronizationSpec
public CmsSynchronizationSpec(LinkedHashMap<String, I_CmsXmlContentHandler.SynchronizationMode> synchMap) Creates a new instance based on a map of synchronization modes.Note the map given as argument is used as-is and not copied, so modifying it later may lead to problems.
- Parameters:
synchMap
- the map of synchronization modes
-
-
Method Details
-
asMap
Gets an immutable map view of the synchronizations mode by xpath.- Returns:
- a map from xpaths to synchronization modes
-
getSynchronizationPaths
Gets the set of paths for which synchronization is turned on in this configuration.- Returns:
- the set of synchronization paths
-