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 private static String__WELCOME_DIRECTORY_ROOT_PATHRoot path for che welcome folderprotected SourceResolver_resolverSource Resolverstatic StringROLEThe Avalon role
-
Constructor Summary
Constructors Constructor Description WelcomeHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetXsltPath(Map<String,Object> contextualParameters)Get the path of XSLT file for the welcome tool or null if not foundStringgetXsltPath(Parameters parameters)Get the path of XSLT file for the welcome tool or null if not foundvoidservice(ServiceManager manager)-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
__WELCOME_DIRECTORY_ROOT_PATH
private static final String __WELCOME_DIRECTORY_ROOT_PATH
Root path for che welcome folder- See Also:
- Constant Field Values
-
_resolver
protected SourceResolver _resolver
Source Resolver
-
-
Constructor Detail
-
WelcomeHelper
public WelcomeHelper()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein 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
-
-