info.magnolia.module.googlesitemap.app.subapp.sitemapdetail.contentconnector
Class SitemapContentConnector

java.lang.Object
  extended by info.magnolia.module.googlesitemap.app.subapp.sitemapdetail.contentconnector.SitemapContentConnector
All Implemented Interfaces:
info.magnolia.ui.vaadin.integration.contentconnector.ContentConnector

public class SitemapContentConnector
extends Object
implements info.magnolia.ui.vaadin.integration.contentconnector.ContentConnector

ContentConnector implementation capable of handling SiteMapEntry objects.


Field Summary
static String SEPARATOR
           
 
Constructor Summary
SitemapContentConnector(SitemapContentConnectorDefinition definition, SiteMapService siteMapService, info.magnolia.ui.api.app.SubAppContext subAppContext)
           
 
Method Summary
 boolean canHandleItem(Object itemId)
           
 SiteMapEntryContainer getContainer()
           
 Object getDefaultItemId()
           
 com.vaadin.data.Item getItem(Object itemId)
           
 SiteMapEntry getItemId(com.vaadin.data.Item item)
           
 SiteMapEntry getItemIdByUrlFragment(String urlFragment)
           
 String getItemUrlFragment(Object itemId)
           
 String getSitemapPath()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEPARATOR

public static final String SEPARATOR
See Also:
Constant Field Values
Constructor Detail

SitemapContentConnector

@Inject
public SitemapContentConnector(SitemapContentConnectorDefinition definition,
                                      SiteMapService siteMapService,
                                      info.magnolia.ui.api.app.SubAppContext subAppContext)
Method Detail

getItemUrlFragment

public String getItemUrlFragment(Object itemId)
Specified by:
getItemUrlFragment in interface info.magnolia.ui.vaadin.integration.contentconnector.ContentConnector

getItemIdByUrlFragment

public SiteMapEntry getItemIdByUrlFragment(String urlFragment)
Specified by:
getItemIdByUrlFragment in interface info.magnolia.ui.vaadin.integration.contentconnector.ContentConnector

getDefaultItemId

public Object getDefaultItemId()
Specified by:
getDefaultItemId in interface info.magnolia.ui.vaadin.integration.contentconnector.ContentConnector

getItem

public com.vaadin.data.Item getItem(Object itemId)
Specified by:
getItem in interface info.magnolia.ui.vaadin.integration.contentconnector.ContentConnector

getItemId

public SiteMapEntry getItemId(com.vaadin.data.Item item)
Specified by:
getItemId in interface info.magnolia.ui.vaadin.integration.contentconnector.ContentConnector

canHandleItem

public boolean canHandleItem(Object itemId)
Specified by:
canHandleItem in interface info.magnolia.ui.vaadin.integration.contentconnector.ContentConnector

getSitemapPath

public String getSitemapPath()

getContainer

public SiteMapEntryContainer getContainer()


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.