Package org.ametys.plugins.blog
Class BlogXSLTHelper
- java.lang.Object
-
- org.ametys.plugins.blog.BlogXSLTHelper
-
- All Implemented Interfaces:
Serviceable
public class BlogXSLTHelper extends Object implements Serviceable
Helper component to be used from XSL stylesheets.
-
-
Field Summary
Fields Modifier and Type Field Description private static BlogPageHandler
_blogPageHandler
-
Constructor Summary
Constructors Constructor Description BlogXSLTHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
blogRootPath(String siteName, String lang)
Get the path in sitemap of the blog root pagestatic String
blogTagPage(String siteName, String lang, String tagName)
Get the id of the page holding the given tagvoid
service(ServiceManager smanager)
-
-
-
Field Detail
-
_blogPageHandler
private static BlogPageHandler _blogPageHandler
-
-
Constructor Detail
-
BlogXSLTHelper
public BlogXSLTHelper()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
blogRootPath
public static String blogRootPath(String siteName, String lang)
Get the path in sitemap of the blog root page- Parameters:
siteName
- The site namelang
- The sitemap map- Returns:
- The path in sitemap or null if there is no root blog page
-
blogTagPage
public static String blogTagPage(String siteName, String lang, String tagName)
Get the id of the page holding the given tag- Parameters:
siteName
- The site namelang
- The sitemap maptagName
- The tag's name- Returns:
- the id of the page or null if not found
-
-