|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.googlesitemap.service.SiteMapService
@Singleton public class SiteMapService
Main SiteMapService. This service is responsible for: Searching the appropriate nodes (pages or VirtualUri) that should be displayed (for XML rendering or Editing). From the search nodes, create SiteMapEntrys (POJO containing preformated infos used for the rendering).
Constructor Summary | |
---|---|
SiteMapService(info.magnolia.module.templatingkit.sites.SiteManager siteManager,
GoogleSiteMapConfiguration configuration,
QueryUtil queryUtil)
Constructor for injection. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public SiteMapService(info.magnolia.module.templatingkit.sites.SiteManager siteManager, GoogleSiteMapConfiguration configuration, QueryUtil queryUtil)
siteManager:
- Injected.Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |