Package org.opencms.xml.containerpage
Class CmsMacroFormatterBean
java.lang.Object
org.opencms.xml.containerpage.CmsFormatterBean
org.opencms.xml.containerpage.CmsMacroFormatterBean
- All Implemented Interfaces:
Cloneable
,I_CmsFormatterBean
Formatter configuration for macro formatters.
-
Field Summary
Fields inherited from class org.opencms.xml.containerpage.CmsFormatterBean
DEFAULT_CONFIGURATION_RANK, DEFAULT_SCHEMA_RANK, m_aliasKeys, m_containerTypes, m_cssHeadIncludes, m_description, m_displayType, m_id, m_inlineCss, m_inlineJavascript, m_isAutoEnabled, m_isDetail, m_isFromFormatterConfigFile, m_isPreviewFormatter, m_javascriptHeadIncludes, m_jspRootPath, m_jspStructureId, m_key, m_location, m_matchAll, m_maxWidth, m_metaMappings, m_minWidth, m_nestedFormatterSettings, m_niceName, m_plugins, m_rank, m_resourceTypeNames, m_search, m_strictContainers, m_useMetaMappingsForNormalElements, PREVIEW_TYPE, PREVIEW_WIDTH, WILDCARD_TYPE
-
Constructor Summary
ConstructorDescriptionCmsMacroFormatterBean
(Set<String> containerTypes, String jspRootPath, CmsUUID jspStructureId, int minWidth, int maxWidth, boolean searchContent, String location, String niceName, String description, Collection<String> resourceTypeNames, int rank, String id, String defaultContentRootPath, CmsUUID defaultContentStructureId, CmsSettingConfiguration settingConfig, boolean isAutoEnabled, boolean isDetail, String displayType, boolean isAllowsSettingsInEditor, String macroInput, String placeholderMacroInput, Map<String, CmsUUID> referencedFormatters, boolean online, List<CmsMetaMapping> metaMappings, boolean useMetaMappingsForNormalElements) Constructor for creating a new formatter configuration with resource structure id. -
Method Summary
Modifier and TypeMethodDescriptionReturns the root path to the default content.Returns the UUID of the default content.Returns the macro input.Returns the placeholder macro input.The referenced formatters.getSettings
(CmsADEConfigData config) Gets the defined settings.Methods inherited from class org.opencms.xml.containerpage.CmsFormatterBean
getAliasKeys, getAllKeys, getAttributes, getContainerTypes, getCssHeadIncludes, getDescription, getDisplayType, getId, getInlineCss, getInlineJavascript, getJavascriptHeadIncludes, getJspRootPath, getJspStructureId, getKey, getLocation, getMaxWidth, getMetaMappings, getMinWidth, getNiceName, getRank, getResourceTypeNames, getTemplatePlugins, hashCode, hasNestedFormatterSettings, isAllowsSettingsInEditor, isAutoEnabled, isDetailFormatter, isDisplayFormatter, isFromFormatterConfigFile, isMatchAll, isPreviewFormatter, isPreviewType, isSearchContent, isStrictContainers, isTypeFormatter, setJspStructureId, toString, useMetaMappingsForNormalElements, withKeys
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opencms.xml.containerpage.I_CmsFormatterBean
getKeyOrId
-
Constructor Details
-
CmsMacroFormatterBean
public CmsMacroFormatterBean(Set<String> containerTypes, String jspRootPath, CmsUUID jspStructureId, int minWidth, int maxWidth, boolean searchContent, String location, String niceName, String description, Collection<String> resourceTypeNames, int rank, String id, String defaultContentRootPath, CmsUUID defaultContentStructureId, CmsSettingConfiguration settingConfig, boolean isAutoEnabled, boolean isDetail, String displayType, boolean isAllowsSettingsInEditor, String macroInput, String placeholderMacroInput, Map<String, CmsUUID> referencedFormatters, boolean online, List<CmsMetaMapping> metaMappings, boolean useMetaMappingsForNormalElements) Constructor for creating a new formatter configuration with resource structure id.- Parameters:
containerTypes
- the formatter container typesjspRootPath
- the formatter JSP VFS root pathjspStructureId
- the structure id of the formatter JSPminWidth
- the formatter min widthmaxWidth
- the formatter max widthsearchContent
- indicates if the content should be searchable in the online index when this formatter is usedlocation
- the location where this formatter was defined, should be an OpenCms VFS resource pathniceName
- the configuration display namedescription
- the descriptionresourceTypeNames
- the resource type namesrank
- the configuration rankid
- the configuration iddefaultContentRootPath
- the root path to the default contentdefaultContentStructureId
- the UUID of the default content resourcesettingConfig
- the settings configurationisDetail
-true
if detail formatterisAutoEnabled
-true
if auto enableddisplayType
- the display typeisAllowsSettingsInEditor
- whether this formatter allows settings to be edited in the content editormacroInput
- the macro inputplaceholderMacroInput
- the placeholder macro inputreferencedFormatters
- the referenced formattersonline
- if this is the online versionmetaMappings
- the meta mappingsuseMetaMappingsForNormalElements
- if true, meta mappings will be evaluated for normal container elements, not just detail elements
-
-
Method Details
-
getDefaultContentRootPath
Returns the root path to the default content.- Returns:
- the root path to the default content
-
getDefaultContentStructureId
Returns the UUID of the default content.- Returns:
- the UUID of the default content
-
getMacroInput
Returns the macro input.- Returns:
- the macro input
-
getPlaceholderMacroInput
Returns the placeholder macro input.- Returns:
- the placeholder macro input
-
getReferencedFormatters
The referenced formatters.- Returns:
- the reference formatters
-
getSettings
Description copied from interface:I_CmsFormatterBean
Gets the defined settings.- Specified by:
getSettings
in interfaceI_CmsFormatterBean
- Overrides:
getSettings
in classCmsFormatterBean
- Parameters:
config
- the sitemap configuration for which the settings should be retrieved- Returns:
- the defined settings
- See Also:
-