Class SiteMapConfigurationImpl
java.lang.Object
org.broadleafcommerce.common.config.domain.AbstractModuleConfiguration
org.broadleafcommerce.common.sitemap.domain.SiteMapConfigurationImpl
- All Implemented Interfaces:
Serializable,AbstractModuleConfigurationAdminPresentation,ModuleConfiguration,Status,SiteMapConfiguration
@Entity
public class SiteMapConfigurationImpl
extends AbstractModuleConfiguration
implements SiteMapConfiguration, AbstractModuleConfigurationAdminPresentation
- Author:
- Joshua Skorton (jskorton)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.broadleafcommerce.common.config.domain.AbstractModuleConfigurationAdminPresentation
AbstractModuleConfigurationAdminPresentation.GroupName, AbstractModuleConfigurationAdminPresentation.GroupOrder, AbstractModuleConfigurationAdminPresentation.TabName, AbstractModuleConfigurationAdminPresentation.TabOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Integerprotected Stringprotected List<SiteMapGeneratorConfiguration>Fields inherited from class org.broadleafcommerce.common.config.domain.AbstractModuleConfiguration
activeEndDate, activeStartDate, archiveStatus, auditable, configType, id, isDefault, moduleName, priority -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfixSiteUrlPath(String siteUrlPath) Ensure that the site URL path does not end with a "/"The name to use for the primary site map file when it contains indexed files.Returns the maximumUrlEntriesPerFile.The name to use for the primary site map file when it does not contain indexed files.Returns the list of SiteMapGeneratorConfigurations used by this SiteMapConfiguration.The name to use for the indexed sitemap files.voidsetIndexedSiteMapFileName(String fileName) Sets the name of the file to use when creating sitemaps and the system requires indexed files.voidsetIndexedSiteMapFilePattern(String indexedSiteMapFilePattern) Sets the name of the file to use when creating sitemaps and the system requires indexed files.voidsetMaximumUrlEntriesPerFile(Integer maximumSiteMapURLEntriesPerFile) Sets the maximumUrl Entries per sitemap file.voidsetSiteMapFileName(String siteMapFileName) Sets the value to be returned for the name of the sitemap file.voidsetSiteMapGeneratorConfigurations(List<SiteMapGeneratorConfiguration> siteMapGeneratorConfigurations) Sets the list of SiteMapGeneratorConfigurations.Methods inherited from class org.broadleafcommerce.common.config.domain.AbstractModuleConfiguration
getActiveEndDate, getActiveStartDate, getArchived, getAuditable, getId, getIsDefault, getModuleConfigurationType, getModuleName, getPriority, isActive, isDefault, setActiveEndDate, setActiveStartDate, setArchived, setAuditable, setId, setIsDefault, setModuleConfigurationType, setModuleName, setPriorityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.common.config.domain.ModuleConfiguration
getActiveEndDate, getActiveStartDate, getAuditable, getId, getIsDefault, getModuleConfigurationType, getModuleName, getPriority, isDefault, setActiveEndDate, setActiveStartDate, setAuditable, setId, setIsDefault, setModuleName, setPriority
-
Field Details
-
maximumURLEntriesPerFile
-
siteMapGeneratorConfigurations
-
siteMapFileName
-
indexedSiteMapFileName
-
indexedSiteMapFilePattern
-
-
Constructor Details
-
SiteMapConfigurationImpl
public SiteMapConfigurationImpl()
-
-
Method Details
-
getSiteMapGeneratorConfigurations
Description copied from interface:SiteMapConfigurationReturns the list of SiteMapGeneratorConfigurations used by this SiteMapConfiguration.- Specified by:
getSiteMapGeneratorConfigurationsin interfaceSiteMapConfiguration- Returns:
-
setSiteMapGeneratorConfigurations
public void setSiteMapGeneratorConfigurations(List<SiteMapGeneratorConfiguration> siteMapGeneratorConfigurations) Description copied from interface:SiteMapConfigurationSets the list of SiteMapGeneratorConfigurations.- Specified by:
setSiteMapGeneratorConfigurationsin interfaceSiteMapConfiguration
-
getMaximumUrlEntriesPerFile
Description copied from interface:SiteMapConfigurationReturns the maximumUrlEntriesPerFile. Defaults to 50000 per the sitemap.org schema requirement of a maximum of 50000 per file. Useful to override for testing purposes.Will allow values over 50000 but this would be considered invalid for the 0.9 version of the sitemap.org contract.
- Specified by:
getMaximumUrlEntriesPerFilein interfaceSiteMapConfiguration- Returns:
-
setMaximumUrlEntriesPerFile
Description copied from interface:SiteMapConfigurationSets the maximumUrl Entries per sitemap file. The sitemap.org contract (version 0.9) says that this number should be a maximum of 50000 but it may be helpful for some implementations to override the default for testing purposes.- Specified by:
setMaximumUrlEntriesPerFilein interfaceSiteMapConfiguration
-
fixSiteUrlPath
Description copied from interface:SiteMapConfigurationEnsure that the site URL path does not end with a "/"- Specified by:
fixSiteUrlPathin interfaceSiteMapConfiguration- Returns:
-
getSiteMapFileName
Description copied from interface:SiteMapConfigurationThe name to use for the primary site map file when it does not contain indexed files. Note that changing the name of the siteMap file should be reflected in robots.txt (See BroadleafRobotsController) if using Broadleaf to produce the robots.txt file.Returns "sitemap.xml" if no value is set.
- Specified by:
getSiteMapFileNamein interfaceSiteMapConfiguration- Returns:
-
setSiteMapFileName
Description copied from interface:SiteMapConfigurationSets the value to be returned for the name of the sitemap file.- Specified by:
setSiteMapFileNamein interfaceSiteMapConfiguration- See Also:
-
getIndexedSiteMapFileName
Description copied from interface:SiteMapConfigurationThe name to use for the primary site map file when it contains indexed files.Delegates to
SiteMapConfiguration.getSiteMapFileName()if not set. Be sure to update robots.txt if changing this value.- Specified by:
getIndexedSiteMapFileNamein interfaceSiteMapConfiguration- Returns:
- See Also:
-
setIndexedSiteMapFileName
Description copied from interface:SiteMapConfigurationSets the name of the file to use when creating sitemaps and the system requires indexed files.- Specified by:
setIndexedSiteMapFileNamein interfaceSiteMapConfiguration
-
getSiteMapIndexFilePattern
Description copied from interface:SiteMapConfigurationThe name to use for the indexed sitemap files.Defaults to the pattern of
SiteMapConfiguration.getSiteMapFileName()###. Where "###" is a token that will be replaced with the current index.For example, a file that required 2 indexed files would create the following two files: sitemap1.xml sitemap2.xml
- Specified by:
getSiteMapIndexFilePatternin interfaceSiteMapConfiguration- Returns:
- See Also:
-
setIndexedSiteMapFilePattern
Description copied from interface:SiteMapConfigurationSets the name of the file to use when creating sitemaps and the system requires indexed files.- Specified by:
setIndexedSiteMapFilePatternin interfaceSiteMapConfiguration
-