Package org.ametys.cms.welcome
Class WelcomeHelper
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.cms.welcome.WelcomeHelper
-
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
- Direct Known Subclasses:
WelcomeHelper
public class WelcomeHelper extends AbstractLogEnabled implements Serviceable, Component
Helper for the welcome button / tool / page
-
-
Field Summary
Fields Modifier and Type Field Description protected SourceResolver
_resolver
Source Resolverstatic String
ROLE
The Avalon role
-
Constructor Summary
Constructors Constructor Description WelcomeHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getXsltPath(Map<String,Object> contextualParameters)
Get the path of XSLT file for the welcome tool or null if not foundString
getXsltPath(Parameters parameters)
Get the path of XSLT file for the welcome tool or null if not foundvoid
service(ServiceManager manager)
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_resolver
protected SourceResolver _resolver
Source Resolver
-
-
Constructor Detail
-
WelcomeHelper
public WelcomeHelper()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getXsltPath
public String getXsltPath(Parameters parameters)
Get the path of XSLT file for the welcome tool or null if not found- Parameters:
parameters
- the sitemap parameters- Returns:
- the XSLT file path or null if not found
-
getXsltPath
public String getXsltPath(Map<String,Object> contextualParameters)
Get the path of XSLT file for the welcome tool or null if not found- Parameters:
contextualParameters
- the contextual parameters- Returns:
- the XSLT file path or null if not found
-
-