public class CmsContentTypeVisitor extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
CmsContentTypeVisitor.DisplayTypeEvaluator
Helper class to evaluate the widget display type.
|
protected static class |
CmsContentTypeVisitor.EvaluationRule
Widget display type evaluation rules.
|
| Constructor and Description |
|---|
CmsContentTypeVisitor(CmsObject cms,
CmsFile file,
java.util.Locale locale)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,CmsAttributeConfiguration> |
getAttributeConfigurations()
Returns the attribute configurations.
|
CmsObject |
getCmsObject()
Gets the CMS context.
|
java.util.List<I_CmsWidget> |
getCollectedWidgets()
Gets the list of widgets which have been processed by this visitor.
|
java.util.Map<java.lang.String,CmsComplexWidgetData> |
getComplexWidgetData()
Gets the map of complex widget configurations.
|
protected java.util.List<java.lang.String> |
getLocaleSynchronizations()
Returns the locale synchronized attribute names.
|
java.util.List<CmsTabInfo> |
getTabInfos()
Returns the tabInfos.
|
protected java.util.Map<java.lang.String,CmsType> |
getTypes()
Returns the types of the visited content definition.
|
protected java.util.Collection<CmsExternalWidgetConfiguration> |
getWidgetConfigurations()
Returns the external widget configurations.
|
boolean |
hasInvisibleFields()
Returns if the visited content has invisible fields.
|
boolean |
isDynamicallyLoaded(java.lang.String attributeName)
Returns
true if the value of the attribute is dynamically loaded. |
boolean |
isEditorCompatible(CmsXmlContentDefinition xmlContentDefinition)
Checks if the content type widgets are compatible with the new content editor.
|
void |
visitTypes(CmsXmlContentDefinition xmlContentDefinition,
java.util.Locale messageLocale)
Visits all types within the XML content definition.
|
public CmsContentTypeVisitor(CmsObject cms, CmsFile file, java.util.Locale locale)
cms - the CMS contextfile - the content filelocale - the content localepublic CmsObject getCmsObject()
public java.util.List<I_CmsWidget> getCollectedWidgets()
public java.util.Map<java.lang.String,CmsComplexWidgetData> getComplexWidgetData()
public java.util.List<CmsTabInfo> getTabInfos()
public boolean hasInvisibleFields()
true if the visited content has invisible fieldspublic boolean isDynamicallyLoaded(java.lang.String attributeName)
true if the value of the attribute is dynamically loaded.attributeName - the attribute to checktrue if the value of the attribute is dynamically loaded.public boolean isEditorCompatible(CmsXmlContentDefinition xmlContentDefinition) throws CmsXmlException
xmlContentDefinition - the content definitiontrue if the content type widgets are compatible with the new content editorCmsXmlException - if something goes wrong reading the type widgetpublic void visitTypes(CmsXmlContentDefinition xmlContentDefinition, java.util.Locale messageLocale)
xmlContentDefinition - the content definitionmessageLocale - the localeprotected java.util.Map<java.lang.String,CmsAttributeConfiguration> getAttributeConfigurations()
protected java.util.List<java.lang.String> getLocaleSynchronizations()
protected java.util.Map<java.lang.String,CmsType> getTypes()
protected java.util.Collection<CmsExternalWidgetConfiguration> getWidgetConfigurations()