@Singleton public class SiteMapService extends Object
Constructor and Description |
---|
SiteMapService(info.magnolia.module.site.SiteManager siteManager,
GoogleSiteMapConfiguration configuration,
QueryUtil queryUtil)
Constructor for injection.
|
Modifier and Type | Method and Description |
---|---|
Iterator<SiteMapEntry> |
getSiteMapBeans(javax.jcr.Node siteMapNode)
Get Site and virtualUri informations if they are defined as components.
|
List<SiteMapEntry> |
getSiteMapBeans(javax.jcr.Node siteMapNode,
boolean isForVirtualUri,
boolean isForEdit)
Create the SiteMapEntry List corresponding to
- uriMapping if isForVirtualUri = true or - for all child's of the rootNode that are of type MgnlNodeType.NT_CONTENT otherwise. |
javax.jcr.Node |
updatePageNode(SiteMapEntry entry)
Based on a
SiteMapEntry bean, update the related page property. |
javax.jcr.Node |
updateVirtualUriNode(SiteMapEntry entry) |
@Inject public SiteMapService(info.magnolia.module.site.SiteManager siteManager, GoogleSiteMapConfiguration configuration, QueryUtil queryUtil)
siteManager:
- Injected.public List<SiteMapEntry> getSiteMapBeans(javax.jcr.Node siteMapNode, boolean isForVirtualUri, boolean isForEdit) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public Iterator<SiteMapEntry> getSiteMapBeans(javax.jcr.Node siteMapNode) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public javax.jcr.Node updatePageNode(SiteMapEntry entry) throws javax.jcr.RepositoryException
SiteMapEntry
bean, update the related page property. javax.jcr.RepositoryException
public javax.jcr.Node updateVirtualUriNode(SiteMapEntry entry) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2017 Magnolia International Ltd.. All rights reserved.