Package org.ametys.web.source
Class WebViewSelector
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.cms.source.DefaultViewSelector
-
- org.ametys.web.source.WebViewSelector
-
- All Implemented Interfaces:
ViewSelector
,LogEnabled
,Serviceable
public class WebViewSelector extends DefaultViewSelector
Web implementation ofViewSelector
. First looks the wanted file in the skin. If it's not present, it will look in the web plugin, then in the context, then in the cms plugin.
-
-
Field Summary
-
Fields inherited from class org.ametys.cms.source.DefaultViewSelector
_resolver
-
Fields inherited from interface org.ametys.cms.source.ViewSelector
ROLE
-
-
Constructor Summary
Constructors Constructor Description WebViewSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>
_getDefaultSourceURIs(String pluginName, String filePath)
Get the default URIsprotected List<String>
getLocations(String pluginName, String filePath)
Returns the ordered list of URI to be tested to find the corresponding view.-
Methods inherited from class org.ametys.cms.source.DefaultViewSelector
getSource, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
WebViewSelector
public WebViewSelector()
-
-
Method Detail
-
getLocations
protected List<String> getLocations(String pluginName, String filePath)
Description copied from class:DefaultViewSelector
Returns the ordered list of URI to be tested to find the corresponding view.- Overrides:
getLocations
in classDefaultViewSelector
- Parameters:
pluginName
- The current plugin namefilePath
- the requested location.- Returns:
- a list of possible URIs for the resource.
-
_getDefaultSourceURIs
protected List<String> _getDefaultSourceURIs(String pluginName, String filePath)
Description copied from class:DefaultViewSelector
Get the default URIs- Overrides:
_getDefaultSourceURIs
in classDefaultViewSelector
- Parameters:
pluginName
- The current plugin namefilePath
- the requested location.- Returns:
- a list of URIs
-
-